From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076339121306.tru64-unix-managers.marc@archive.invalid> From: "Jon Mitchiner" Date: Thu, 05 Sep 1996 16:33:38 +0000 To: tru64-unix-managers Subject: backing up via cron doesn't seem to work. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076339121306 Hi -- We have this strange problem with our cron jobs. Whenever a job is run manually with the script, the backup works fine without any problems. But whenever we run it through cron, we get the following error: dump: Dumping /dev/rrz8a (/) to /dev/nrmt0h dump: Mapping (Pass I) [regular files] dump: Mapping (Pass II) [directories] dump: Estimate: 45116 tape blocks on 1.12 volume(s) dump: Dumping (Pass III) [directories] dump: Volume 1, tape # 0001, begins with blocks from i-node 2 dump: Write error -- wanted to write: 10240, only wrote: -1 slave_work(): write(): I/O error dump: Write error - /dev/nrmt0h, volume 1, 2 feet -- cannot recover dump: Cannot fopen /dev/tty for reading query(): fopen(): No such device or address dump: Cannot remove shared memory remove_shared_memory(): shmctl(): Invalid argument dump: SIGTERM received -- Try rewriting dump: Unexpected signal -- cannot recover The shell script is this: /usr/sbin/dump -0uf /dev/nrmt0h / We get a similar error with a perl script -- but only the: dump: Cannot open device file /dev/nrmt0h dump: Cannot fopen /dev/tty for reading query(): fopen(): No such device or address dump: SIGTERM received -- try rewriting ... etc We have a similar machine with the exact same tape drive (TZ87), same scripts, and it works fine on one machine, and doesn't work on the other. What is strange is if I run it manually, it works, but not via cron... Thanks! Jon