• 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 flaw
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Do shell script vs terminal discrepancy (From: Paul Skinner <email@hidden>)
 >Re: Do shell script vs terminal discrepancy (From: Simon Topliss <email@hidden>)
 >Re: Do shell script vs terminal discrepancy (From: Paul Skinner <email@hidden>)
 >do shell script flaw (From: Emmanuel LEVY <email@hidden>)
 >Re: do shell script flaw (From: Emmanuel LEVY <email@hidden>)
 >Re: do shell script flaw (From: Axel Luttgens <email@hidden>)
 >Re: do shell script flaw (From: Emmanuel LEVY <email@hidden>)
 >Re: do shell script flaw (From: "Mark J. Reed" <email@hidden>)
 >Re: do shell script flaw (From: Emmanuel LEVY <email@hidden>)
 >Re: do shell script flaw (From: "Mark J. Reed" <email@hidden>)
 >Re: do shell script flaw (From: Emmanuel LEVY <email@hidden>)
 >Re: do shell script flaw (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: do shell script flaw
  • Next by Date: Re: do shell script flaw
  • Previous by thread: Re: do shell script flaw
  • Next by thread: Re: do shell script flaw
  • Index(es):
    • Date
    • Thread