I have a program which I want to start automatically every time the computer boots up, and I'd like to redirect the output of that command to a logfile.
So, in the crontab for the appropriate user, I have the following: @reboot /sbin/start-stop-daemon --start --chdir /home/boinc/boinc --background --exec /home/boinc/boinc/boinc>/home/boinc/log/boinc.log The program which I want to run is boinc, and I'd like to redirect boinc's output into a file so that I can keep tabs on its progress while it chunters away in the background. However, the above doesn't work. Sure, boinc runs, but its output doesn't seem to go anywhere. In fact, I have a sneaking suspicion that it's not boinc's output that's being redirected, but that of start-stop-daemon (which doesn't ordinarily produce any output as far as I'm aware). I've tried wrapping the /home/boinc....boinc.log in "s and 's but this just seems to result in the command not being run at all. Does anybody know how I can get boinc's output to be redirected? Thanks, David. -- David Marsh, <http://www.viewport.co.uk/> / [en, fr, (de)] Edinburgh, Scotland. <email [EMAIL PROTECTED]> but list reply preferred » Don't look lazy & stupid: Please trim & interleave quotes in replies « -- ubuntu-uk mailing list [email protected] http://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
