• 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: execv bug???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: execv bug???


  • Subject: Re: execv bug???
  • From: email@hidden (Peter Seebach)
  • Date: Sun, 27 Jan 2008 12:00:58 -0600

In message <email@hidden>, Tommy Nordgren wri
tes:
>If you want a call that uses the PATH environment variable you should
>use execvp instead of execv

He's not trying to use PATH -- he's trying to use a non-absolute path.

>Actually, I'ts preferable to use a call that Don't use the PATH
>environment variable, and specify the absolute path
>of the executable instead.

Agreed, especially because execvp doesn't search for binaries if the
path argument contains even one slash, even if it's not at the front
of the path.

-s
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: execv bug??? (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: execv bug???
  • Next by Date: Re: execv bug???
  • Previous by thread: Re: execv bug???
  • Next by thread: Running a time consuming background process
  • Index(es):
    • Date
    • Thread