Possible bug with atd?

Steven Haigh netwiz at crc.id.au
Thu Mar 2 17:53:00 UTC 2006

Hi all,

I'm not 100% sure if this is a bug, or something I'm doing wrong...

I'm trying to schedule some dvb recording via a web page using atd. I  
can get the jobs to appear in 'at -l', however when it comes time for  
the job to execute, it just disappears. *poof* gone. No logs, no  
command executed, no nothing.

I'm trying to launch a bash file that does a heap of funky things -  
but not having much luck. If i type in the command manually, it all  
works like a treat.

I am setting the job in PHP by using:
$cmd = "at $starttime $whatday << COMMAND\n/home/netwiz/bin/capture  
'$channel' $duration\nCOMMAND";

and if I check what the job is, I get such:
# at -c 11
# atrun uid=48 gid=48
# mail     root 0
umask 22
HOSTNAME=asterisk.crc.id.au; export HOSTNAME
SHELL=/bin/bash; export SHELL
USER=root; export USER
35:\*.xpm=01\;35:\*.png=01\;35:\*.tif=01\;35:; export LS_COLORS
PATH=/sbin:/usr/sbin:/bin:/usr/bin; export PATH
MAIL=/var/spool/mail/root; export MAIL
PWD=/var/www/html/tv; export PWD
INPUTRC=/etc/inputrc; export INPUTRC
LANG=C; export LANG
HOME=/root; export HOME
SHLVL=4; export SHLVL
LOGNAME=root; export LOGNAME
CVS_RSH=ssh; export CVS_RSH
LESSOPEN=\|/usr/bin/lesspipe.sh\ %s; export LESSOPEN
cd /var/www/html/tv || {
          echo 'Execution directory inaccessible' >&2
          exit 1
${SHELL:-/bin/sh} << `(dd if=/dev/urandom count=200 bs=1 2>/dev/null| 
LC_ALL=C tr -d -c '[:alnum:]')`

/home/netwiz/bin/capture '7 HD Digital' 30

Now this seems to be correct - but as I said, the job just seems to  
disappear. Is there something I'm missing, or is this a bug?

Steven Haigh

Email: netwiz at crc.id.au
Web: http://www.crc.id.au
Phone: (03) 9017 0597 - 0412 935 897

More information about the fedora-test-list mailing list