maddog@cbnews.att.com (john.j.tupper) (05/08/89)
We have several sun's running sunos 3.5. Whenever we schedule an at job, the correct file is created in /usr/spool/at, but whenever /usr/lib/atrun runs, it complains that each and every at job has a "bad spooler header". I assume atrun is making reference to the four lines at the start of the file that look something like: # owner: root # jobname: maddog # shell: sh # notify by mail: no Does anyone know what's going on here? thanks, maddog sdf sdfsdfoijj My real signature is illegible too [[ This is a known bug in atrun.c of the 3.5 distribution. The entire at and cron system was rewritten for 4.0. See volume 7 issue 135 and volume 6 issue 225 for further explanations. Basically, the old atrun.c code was using an undocumented feature of sscanf. That feature went away in 3.5 and atrun broke. --wnl ]]
Svante.Lindahl@front.se (Svante Lindahl) (05/12/89)
I fixed the problem with atrun under 3.5 by editing the bad fscanf format strings in the binary with Gnu Emacs. Find the format strings for "owner", "jobname", "shell" and "notify by mail" and replace "%*" with "^j^@" (newline, ctrl-@/ascii-nul). This is based on the source fix by Sven-Ove Westberg in Sun-Spots v7n64. atrun works fine for me now. Svante.Lindahl@front.se (!-net: ...!uunet!front.se!svante) (non-mx: Svante.Lindahl%front.se@uunet.uu.net)