Re: do shell script flaw
Re: do shell script flaw
- Subject: Re: do shell script flaw
- From: Doug McNutt <email@hidden>
- Date: Sat, 5 Dec 2009 19:46:44 -0700
At 02:41 +0100 12/6/09, Emmanuel LEVY wrote:
>Hi Axel, thanks for tactfully giving me an occasion to make myself clearer.
>
>My script runs on idle. It does:
>
>1. do shell script "top"
>2. do shell script "ifconfig"
>3. do shell script "mkdir"
>
>Usually it works all right. Sometimes, what I observe is:
The top tool doesn't normally terminate until the user enters CONTROL C.
I thought AppleScript would wait forever for the termination but perhaps it is timing out after an interval that isn't uniform. You are ignoring the output from top. Isn't that what you're looking for? You say it runs all right sometimes. How do you observe the output from top?
Does top have an option to run just once? The info in man top seems to insist on an interactive display on a TTY.
--
--> A fair tax is one that you pay but I don't <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden