All pastes #275137 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-12-11 07:16 UTC
rendered paste body
ski@mybox:~/mysrc/skix$ cat launcher
#!/bin/sh
echo launching worker...
/usr/local/bin/worker >>/var/log/worker.log 2>&1

worker is an ugly and complicated piece of code.
what i'm looking for is a way to make the worker a bit uglier
so i can just exec it directly and get rid of this "launcher"
script, which is just a silly little wrapper.

ie something like:
#!/bin/sh
echo launching worker...
#some magic command that redirects stderr and stdout to /var/log/worker.log for all the below
#and now the arbitrary long contents of the "worker" script