Re: terminal works, do shell script doesn't
Re: terminal works, do shell script doesn't
- Subject: Re: terminal works, do shell script doesn't
- From: Stephen Jonke <email@hidden>
- Date: Sun, 27 Jul 2003 02:04:15 -0400
At least in the case of shorten, it *does* send its help to standard error, which is why that's happening when called with do shell script as well! :) I just installed shorten via fink to see what the deal was, and trying (at the Terminal) to redirect stdout to a file ("shorten -h > test.txt") produces nothing in the file, while on screen you still see the help. Redirecting stderr as well ("shorten -h >& test.txt") puts the help into the file. As for behavior of the tool being different on different machines, this may be due to having different versions on the different machines. The version of shorten is shown in the help info, so check that on each machine.
Steve
On Sunday, July 27, 2003, at 00:58AM, Scott C. Brown 02 <email@hidden> wrote:
>
one simple example is the unix program "shorten." Typing "shorten -h" in the
>
terminal gives me the help screen. if I
>
>
do shell script "/usr/local/bin/shorten -h"
>
>
then the help screen does not go to standard output but standard error. no idea
>
why, as it goes to std out from the shell in terminal
_______________________________________________
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.