site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com launchd really revolves around daemons and background scripts. #!/bin/sh exec dnscache < seed davez On Apr 3, 2006, at 10:39 AM, Keith Shaw wrote: hello, 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 any suggestions or pointers would be great! keith. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/zarzycki%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I'll probably add stdin support in the future, but for now you'll just have to wrap dnscache in a shell script: As to pipes, again, please wrap in a shell script. I'm not sure how we want to make pipes and launchd jobs jive in the future. Weeee... 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. 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? This email sent to zarzycki@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Dave Zarzycki