• 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: Bill Briggs <email@hidden>
  • Date: Wed, 16 Feb 2005 11:36:30 -0400

At 9:34 AM -0500 2/16/05, Stephen Jonke wrote:
Unix question, then: I know what the "> filename" does, but what does the "2>&1" do?

From a post I made yesterday.

"...shell redirection. The shell has three "files" it uses, apart from the files you explicitly name in your file system. Standard Input is 0, Standard Output is 1, Standard Error is 2. You can redirect these, and in this case you want to redirect Std Error back to Standard Output so it'll be fed back to the Script Editor (which I assume at this point only gets fed Std Out when the script completes (or not))."

the "2>&1" bit redirects standard error to standard output. That way you see any error generated.

- web
_______________________________________________
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


References: 
 >do shell script without blocking? (From: Stephen Jonke <email@hidden>)
 >Re: do shell script without blocking? (From: "Adam K. Wuellner" <email@hidden>)
 >Re: do shell script without blocking? (From: Stephen Jonke <email@hidden>)

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