Re: do shell script, redirected piped and backgrounded
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.