• 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, redirected piped and backgrounded
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script, redirected piped and backgrounded


  • Subject: Re: do shell script, redirected piped and backgrounded
  • From: Harald E Brandt <email@hidden>
  • Date: Sat, 6 Dec 2003 17:29:43 +0100

+--> Randal L. Schwartz wrote 03-12-06:
>>>>> "Harald" == Harald E Brandt <email@hidden> writes:

Harald> do shell script "command 2>&1 | tr '\\n' '\\r' > file_path &"

This is correct from a shell perspective, so if it isn't working from
"do shell script", something is amiss.
+-

Perhaps I should clarify exactly WHAT is not working with expression: The whole operation is not run in background! Otherwise it works.

If you compare with Chris' original line in TN 2065:
do shell script "command > file_path 2>&1 &"
you see that I have exchanged the normal redirection and the redirection of standard err to std out, since I need to put my filter after the 'std err to std out redirect', and the output of the pipe must go into the file. However, the backgrounding only occurs if the redirections occur in the order as in TN 2065!?

-heb
_______________________________________________
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, redirected piped and backgrounded
      • From: Christopher Nebel <email@hidden>
References: 
 >Reading resource forks (From: Graff <email@hidden>)
 >Re: Reading resource forks (From: Christopher Nebel <email@hidden>)
 >do shell script, redirected piped and backgrounded (From: Harald E Brandt <email@hidden>)

  • Prev by Date: RE: Simple substring help
  • Next by Date: Re: Select certain items
  • Previous by thread: do shell script, redirected piped and backgrounded
  • Next by thread: Re: do shell script, redirected piped and backgrounded
  • Index(es):
    • Date
    • Thread