Re: pipes, scripts, and launchd
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