Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I can run a process in background by

$ someprog > logfile &

but if I do

$ at now < jobsfile

then nothing happens except printing

job 1 at Wed Sep 29 19:12:40 2010
share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

atrun is disabled by default in Mac OS X 10.6 (see its man page, and the "IMPLEMENTATION NOTES" section of the at man page). To enable it, run:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist

P.s. you might want to check and/or clear out the queue of jobs first; otherwise it'll fire off all the test jobs you submitted at once... atq and atrm are the relevant commands (and they work fine before enabling atrun).

share|improve this answer
add comment

What does jobsfile do? If it sends output to stdout or stdin, that will be mailed to you.

share|improve this answer
    
jobsfile contains someprog > logfile. It is a very long calculation run via PVM (22 processes). I don't see any activity in the second case, and the logfile is not created. –  Andrei Sep 29 '10 at 20:27
    
@Andrei: You don't see any activity where? at runs the job without a tty. Does this work?: echo 'date > /tmp/at.$$.out' | at now It should create a file called /tmp/at.PID.out (where "PID" is some number) which contains a date/time. Also, does at now -f jobsfile (instead of redirection) work? –  Dennis Williamson Sep 29 '10 at 20:43
    
No result in both cases. The first printed job 2 at Wed Sep 29 22:49:40 2010, the second printed at: garbled time. This happens in OS X 10.6.4. –  Andrei Sep 29 '10 at 20:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.