• 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 without blocking?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script without blocking?


  • Subject: Re: do shell script without blocking?
  • From: Stephen Jonke <email@hidden>
  • Date: Wed, 16 Feb 2005 11:43:19 -0500

What does the & mean in that context?  2>&1 as opposed to 2>1?

Steve

On Feb 16, 2005, at 10:24 AM, Martin Orpen wrote:
1 = stdout (output)
2 = stderr (error)

2>&1 sends ouput 2 to the same destination as output 1

You'll often see that 2 (and sometimes 1) is redirected to /dev/null which
is also known as the bitbucket and means that you don't get bothered by
error messages littering your logs and script output.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: do shell script without blocking?
      • From: Paul Berkowitz <email@hidden>
    • Re: do shell script without blocking?
      • From: Martin Orpen <email@hidden>
    • Re: do shell script without blocking?
      • From: "Adam K. Wuellner" <email@hidden>
References: 
 >Re: do shell script without blocking? (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: Determine image mode
  • Next by Date: Re: do shell script without blocking?
  • Previous by thread: Re: do shell script without blocking?
  • Next by thread: Re: do shell script without blocking?
  • Index(es):
    • Date
    • Thread