Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pipes, scripts, and launchd




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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.