• 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: Martin Orpen <email@hidden>
  • Date: Wed, 16 Feb 2005 17:47:21 +0000

on 16/2/05 4:43 pm, Stephen Jonke at email@hidden wrote:

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

I guess that the ampersand indicates that we aren't dealing with files but
with some kind of I/O stream.

You can test this by dispensing with the "1" & "2" altogether :-)

So you can redirect both stdout:

    ls >& testfile

And stderror

    kill blah >& testfile

There are probably good reasons not to do this, but I've used it with CRON
jobs for years without a problem... I think...

--
Martin Orpen


 _______________________________________________
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: 
 >Re: do shell script without blocking? (From: Stephen Jonke <email@hidden>)

  • Prev by Date: Re: do shell script without blocking?
  • 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