Re: ping with Applescript
Re: ping with Applescript
- Subject: Re: ping with Applescript
- From: Chris Janton <email@hidden>
- Date: Tue, 21 May 2002 07:23:18 -0700
No /sbin, therefore, no plain ping. That path is more inclusive than I'd
really like to see, for safety (there are too many easily wrongly spelt
command names).
For those who care to only execute the "best" applications ;-) When
scripting one can be extremely defensive by either being explicit about
the application
/sbin/ping xyz
or by defending against odd PATH variables
PATH=/sbin:/bin ; ping xyz
It's much less surprising when you limit your PATH...and it *sort of*
documents that you intend to use a command that probably was included with
your system...
Oh, yeah, if you still use one of the c-shell variants you would do
setenv PATH /sbin:/bin ; ping xyz
For the extremely paranoid - to be avoided ;-)
unsetenv * ; /sbin/ping xyz
8)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.