Root fails to run cron job

Root fails to run cron job

Post by Mike » Sun, 31 Dec 1899 09:00:00



Exucuting a cron job by root rusults in the following eror:

top: tcgetattr() failed: Inappropriate ioctl for device

The script is under a user name and runs fine from the command line.
The script runs "top -bn1", then totals the %memory used and appends
to a file.

Mike

 
 
 

Root fails to run cron job

Post by Neil W Ricker » Sun, 31 Dec 1899 09:00:00


Quote:Mike writes:
>Exucuting a cron job by root rusults in the following eror:
>top: tcgetattr() failed: Inappropriate ioctl for device
>The script is under a user name and runs fine from the command line.
>The script runs "top -bn1", then totals the %memory used and appends
>to a file.

'top' wants a tty device.

 
 
 

1. cron fails to run jobs

This has now happened 3 times on my customers 59H running 4.3.2-

The cron daemon is running OK, but no jobs scheduled by
"crontab" or "at" will run, the only way I got them to run was
to kill the cron daemon. It then re-spawned and all was OK.

Any ideas why this should happen?

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!

2. 3D Master Suit C++ & Open Inventor from TGS on Linux?

3. cron did not run root jobs (solaris 2.5.1)

4. Multiple internet connections routing.

5. Cron jobs running as something other than root

6. aic7850+aha2940 probs

7. RH5.2, Deskpro XL Compaq Business Sound (Win Snd sys) : Larsen effect

8. Environment for jobs run out of root cron

9. Cron <root@host> run-parts /etc/cron.daily

10. Postinstallation - Cron <root@main> run-parts --report /etc/cron.daily

11. Cron <root@host> run-parts /etc/cron.weekly

12. Cron <root@cxXXXXX-a> run-parts /etc/cron.daily