[Dshield] CAUTION email about shell scripting...

Frank Knobbe frank at knobbe.us
Wed Oct 13 21:04:11 GMT 2004


On Wed, 2004-10-13 at 14:29, Schneelocke wrote:
> > #!/bin/bash
> > [ -x /bin/ps ] && PS_CMD=/bin/ps || mail -s "problem finding ps binary"
> > foo at foo.com
> 
> Shouldn't you do something similar for mail, too, before using it? ;)

And since "[" is usually a hard link to "test", you might as well
reference that with a full path. ;)

Cheers,
Frank

 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://www.dshield.org/pipermail/list/attachments/20041013/0bba4b3a/attachment.bin


More information about the list mailing list