Strange script error - any ideas (bash hanging)
This is on all of my Ubuntu 8.10 machines - but I think it is the version of bash (3.2.39) rather than Ubuntu.
Try the following...
Create a file containing a command, for example ls
echo ls > foo
Make it executable
chmod +x foo
Run it - it will work (as it should).
Now ssh to your local machine using, (assumes you have openssh-server installed on your local machine).
Now run the script again. It will hang, taking 100% cpu. Kill it with control-\ (or kill from another console).
You can fix it by putting #!/bin/bash on the first line, but it shouldn't be necessary.
It worked fine for me - bash version 3.1.17(2)
|All times are GMT -5. The time now is 06:15 AM.|