Re: do shell script with administrator privileges & shell commands
Re: do shell script with administrator privileges & shell commands
- Subject: Re: do shell script with administrator privileges & shell commands
- From: Sander Tekelenburg <email@hidden>
- Date: Wed, 14 Aug 2002 19:14:54 +0200
At 16:15 -0700 UTC, on 8/13/02, Chris Espinosa wrote:
[...]
>
do shell script "command > /dev/null 2>&1 &"
>
>
(The > /dev/null redirects standard output, the 2>&1 redirects
>
standard error, and the final & puts the command in the background.)
Could you explain "2>&1"?
If I understand correctly what /dev/null is (a sort of 'trash'), then I would
guess that redirecting standard error to "2>&1" is the same idea: ignore all
errors. Is that correct?
--
Sander Tekelenburg, <
http://www.euronet.nl/~tekelenb/>
_______________________________________________
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.