-1
votes
1answer
84 views

Multiply 2 array index variables shell programming [closed]

How do i multiply 2 array index variables given the following foo=(1 2) bar=(0.1 0.2) foobar=$((foo[1]*price[1])) # this is wrong echo "$foobar" Current output : 0 Correct/Expected output : 0.4
0
votes
1answer
269 views

weird shell script error: invalid option return: usage: return [n]

This programme checks if a certain book title exist by matching user input of book title and book author. function removebook_option() { echo -n "Title : " read title_input2 echo -n ...
2
votes
1answer
626 views

How can I know the usb port?

I'm working on a project with an ATmega1280 (Atmel) board. I want to take a look at the stack, so I'm trying to do an OCD (On Chip Debugging). In the tutorial is written: Use this AVRDUDE command ...
1
vote
1answer
2k views

How do I start Firefox with debug output at the command line?

Firefox is freezing now and again, and I want to know why. I thought I could get some debug output by starting Firefox with the -g option, but it just comes to some kind of prompt and then stops. ...
21
votes
4answers
2k views

Can one pick up a running application from terminal?

Sometime I need to run an application from terminal for debugging. If I am sure the bug will occur short after launching the application, I can run this application from the Terminal. However, bugs ...
2
votes
2answers
114 views

Print numbered arguments in Command Line Tool

Is there a packaged program that shows command line arguments? I often find it helpful to have users run this type of program to either help them understand what their shell commands do, or to get ...