Re: do shell script flaw
Re: do shell script flaw
- Subject: Re: do shell script flaw
- From: Axel Luttgens <email@hidden>
- Date: Sun, 6 Dec 2009 18:20:58 +0100
Le 6 déc. 2009 à 16:36, Paul Skinner a écrit :
> Since top is normally interactive and you don't need that I'd use the -l flag to run it only once. The tech note for do shell script even cites this interactive shell app as an example of problems and limits of these apps.
> And I get the same result from...
>
> do shell script "top -tl 2 -o cpu -p '$aaaaaa $cccc ^bbbbbbbbbbbbbbbb'"
>
> as I do from...
>
> do shell script "top -l1 -tl 2 -o cpu -p '$aaaaaa $cccc ^bbbbbbbbbbbbbbbb'"
>
> Does that help the issue?
>
> Paul
Which OS version is this?
Seems to be 10.5.x, since it's the only one that came with a top command allowing for both -t and -p options.
On the other hand, doesn't the "-tl 2" part already hinder the interactive behavior, by requesting two samples only?
Axel _______________________________________________
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