• 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: Killing an app on X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing an app on X


  • Subject: Re: Killing an app on X
  • From: Jon Pugh <email@hidden>
  • Date: Tue, 14 May 2002 16:43:38 -0700

At 4:51 PM -0600 5/14/02, garbanzito wrote:
>>on forceQuit(appName)
>> set pid to word 1 of (do shell script ("ps -xo,pid,command | grep \"" & appName & "\" | head -n 1"))
>
>i suggest changing that to "ps -xwwo,pid,command ..." to
>avoid a problem where commands with very long path names are
>truncated, causing the grep to fail.

Yes, I should have thought of that. You are quite correct.

Jon
_______________________________________________
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.

References: 
 >Re: Briskets (perl) (From: Lee Azzarello <email@hidden>)
 >Killing an app on X (From: Jon Pugh <email@hidden>)
 >Re: Killing an app on X (From: garbanzito <email@hidden>)

  • Prev by Date: Re: Killing an app on X
  • Next by Date: Re: Parents/Child Scripts
  • Previous by thread: Re: Killing an app on X
  • Next by thread: Re: Killing an app on X
  • Index(es):
    • Date
    • Thread