Hi Damon,
On 2015-06-14 21:32:26, you wrote to me:
WV>> What shell is /bin/sh on your system? Have you tried explicitly
WV>> setting #!/bin/bash for instance?
DAG> I have not. I'm not sure what exactly /bin/sh is on this system.
DAG> It's CentOS, so whatever that's commonly using...
On my opensuse it's easy to find out with:
# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Feb 26 14:49 /bin/sh -> bash
DAG> I normally default to /bin/sh instead of bash or something of the
DAG> sort because I'm used to catering to environments where /bin/sh
DAG> exists in /bin but bash lives in /usr/local/bin or /usr/bin or
DAG> something of the sort. Vestigial urges to keep my stuff working in
DAG> the most minimal environment possible, I guess.
That's good practice!
WV>> I do however always use -e 'ssh -o BatchMode=yes' ... YMMV ...
DAG> I suppose I'll have to break out the man page and take a look to find
DAG> out what exactly that changes behaviorally now. :)
Please look at Andrew Clarks response to your message. He did a much better
analysis of your script than I did! ;)
Bye, Wilfred.
--- FMail-W32-1.69.6.114-B20150605
* Origin: FMail development HQ (2:280/464)
|