• 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: Wait Until Process Completion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wait Until Process Completion


  • Subject: Re: Wait Until Process Completion
  • From: "Mark J. Reed" <email@hidden>
  • Date: Tue, 13 May 2008 07:29:31 -0400

On Tue, May 13, 2008 at 6:02 AM, Christopher Nebel <email@hidden> wrote:
> Actually, "do shell script" has always propagated errors like that.  The
> difference is that ps(1) in Leopard returns a status of 1 if you use -p with
> a non-existent pid, where it returned 0 in Tiger.

Interesting.  I thought that ps(1) had always returned 1 when asked to
display a nonexistent PID; then again, my experience is primarily with
SysV-derived systems.

Without specific knowledge to the contrary, I would assume that any
command that lets you say "show me information about this particular
X" would exit with nonzero status, usually 1, if that particular X
doesn't exist.  But I see that still on Leopard, that's not even true
of ls(1)!

(0)wazowski:~/Desktop> ls asdf
ls: asdf: No such file or directory
(0)wazowski:~/Desktop>

That (0) in my command prompt is the exit status of the last
command...  compare with the results on a Linux system:

(0)box28:~> ls asdf
/bin/ls: asdf: No such file or directory
(1)box28:~>

I go file a bug onw.

--
Mark J. Reed <email@hidden>
 _______________________________________________
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

  • Follow-Ups:
    • Re: Wait Until Process Completion
      • From: Axel Luttgens <email@hidden>
References: 
 >Wait Until Process Completion (From: Luther Fuller <email@hidden>)
 >Re: Wait Until Process Completion (From: "Mark J. Reed" <email@hidden>)
 >Re: Wait Until Process Completion (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Wait Until Process Completion
  • Next by Date: Re: Wait Until Process Completion
  • Previous by thread: Re: Wait Until Process Completion
  • Next by thread: Re: Wait Until Process Completion
  • Index(es):
    • Date
    • Thread