TIP: Click on subject to list as thread! ANSI
echo: linux
to: DAMON A. GETSMAN
from: WILFRED VAN VELZEN
date: 2015-06-15 10:36:00
subject: Re: Shell script issue; r

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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.