• 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: pipes, scripts, and launchd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pipes, scripts, and launchd


  • Subject: Re: pipes, scripts, and launchd
  • From: Steve Checkoway <email@hidden>
  • Date: Fri, 28 Dec 2007 16:18:29 -0800


On Dec 28, 2007, at 3:41 PM, Benjamin Huntsman wrote:

	<key>ProgramArguments</key>
	<array>
		<string>postgres</string>
		<string>args</string>
		<string>|</string>
		<string>rotatelogs</string>
               <string>args</string>
	</array>

I find it hard to believe that that would work at all. If so, then there would be no need for an array of arguments, one could merely pass the entire command line. I suspect, but haven't actually tested, that this would be about the same as doing


execl( "postgres", "postgres", "arg1", "arg2...", "|", "rotatelogs", "arg1", "arg2...", NULL );

i.e., passing |, rotatelogs, arg1, and arg2 to postgres.

--
Steve Checkoway

    "Anyone who says that the solution is to educate the users
    hasn't ever met an actual user." -- Bruce Schneier




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >pipes, scripts, and launchd (From: Perry Smith <email@hidden>)
 >Re: pipes, scripts, and launchd (From: Dave Zarzycki <email@hidden>)
 >RE: pipes, scripts, and launchd (From: "Benjamin Huntsman" <email@hidden>)

  • Prev by Date: RE: pipes, scripts, and launchd
  • Next by Date: Re: pipes, scripts, and launchd
  • Previous by thread: RE: pipes, scripts, and launchd
  • Next by thread: Re: pipes, scripts, and launchd
  • Index(es):
    • Date
    • Thread