• 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
launchd i/o redirection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

launchd i/o redirection


  • Subject: launchd i/o redirection
  • From: Keith Shaw <email@hidden>
  • Date: Mon, 03 Apr 2006 10:39:58 -0700

hello,

my apologies if this is not the correct form to post questions about launchd.

let me start by saying that i believe launchd is the greatest thing since sliced bread, and it's proved quite useful.

the only thing i haven't figured out is how to perform redirection. i understand i can specify an output file for stdout and stderr, but what if i want to pipe the output into another program? i've attempted to use the "|", "<", and ">" in the program arguments, but that hasn't work either.

i currently have two issues:

1)	what do i do if a program expects data from stdin?
	ie:  dnscache < seed

2)	how do i redirect stdout/stderr to another program for logging?
	ie:  port selfupdate | logger -i -p local0.notice -t port

for #2 i've thought about named pipes, but those always feel like "dirty hacks." i suppose i could add items like #2 to one of my periodic files, but i'd like them to be standalone launchd.plists, and it seems like there should be some way to do i/o redirection with a launchd controlled item. am i missing something?

any suggestions or pointers would be great!

keith.

_______________________________________________
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


  • Follow-Ups:
    • Re: launchd i/o redirection
      • From: Dave Zarzycki <email@hidden>
  • Prev by Date: Re: StartupItem sequence & Message Ports
  • Next by Date: Re: launchd i/o redirection
  • Previous by thread: Re: StartupItem sequence & Message Ports
  • Next by thread: Re: launchd i/o redirection
  • Index(es):
    • Date
    • Thread