• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: do shell script with administrator privileges & shell commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: do shell script with administrator privileges & shell commands
      • From: Christopher Nebel <email@hidden>
    • Re: do shell script with administrator privileges & shell commands
      • From: garbanzito <email@hidden>
References: 
 >do shell script with administrator privileges & shell commands (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Mount Volume in 9?
  • Next by Date: Re: Extracting a list from an item in a list
  • Previous by thread: Re: do shell script with administrator privileges & shell commands
  • Next by thread: Re: do shell script with administrator privileges & shell commands
  • Index(es):
    • Date
    • Thread