[mythtv-users] User Jobs, Exit Codes and myth_archive_job.pl

David Whyte david.whyte at gmail.com
Tue Dec 11 12:26:50 UTC 2007


I use the myth_archive_job.pl perl script to archive files to a
secondary disk and have automated the task as a user job that is run
after *every* recording.

The problem I am getting is that the job queue reports that the
archive job is successful even when the script fails because there
isn't enough space in the disk.

I have updated the script to make sure it returns an exit code of 1
(instead of the -1 code that was being returned), however, this still
reports as successful even when the disk is full.

Does the jobqueue use the script exit codes to report success or
failure?  How else do the built in jobs like mythtranscode and
mythcommflag work?

Cheers,
Whytey


More information about the mythtv-users mailing list