Search Results

Search: Posts Made By: amrutha0303
94,263
Posted By neutronscott
"./test" in this case was meant to be replaced...
"./test" in this case was meant to be replaced with your scriptname: chmod a+x ./test.sh (if that is indeed still the name)
Also, "env" almost ALWAYS lives in /usr/bin so a way to invoke bash...
94,263
Posted By Corona688
Solved it how? What did you do? You should...
Solved it how? What did you do?

You should find out where bash is, and put that into your #!/bin/bash line instead of /bin/bash so you can run it with ./scriptname
94,263
Posted By radoulov
If you're running and old bash version, you'll...
If you're running and old bash version, you'll need a bit different syntax:

$ bash -c 'echo $BASH_VERSION; (( c++ ))'
2.03.0(1)-release
bash: ((: c++ : syntax error: operand expected (error...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy