Re: [SLE] Cronjob - revisited

From: Hartmut Meyer (hartmut.meyer_at_web.de)
Date: 11/29/03

  • Next message: sjb: "[SLE] bluetooth"
    To: suse-linux-e@suse.com
    Date: Sat, 29 Nov 2003 11:32:23 +0100
    
    

    Hi,

    Am Donnerstag, 27. November 2003 14:59 schrieb darryl penny:

    > To this day I still can't get the following to work from a cron job:
    >
    > mt -f /dev/st0 setblk 32768 && tar -cSPf /dev/st0 -b 64 /store/bkup && mt
    > -f /dev/st0 rewoffl
    >
    > It returns the following error:
    > tar: /dev/st0: Wrote only 0 of 32768 bytes
    > tar: Error is not recoverable: exiting now
    >
    > The job runs without complaining on a root konsole. If anyone can help sort
    > this out once and for all I *really* will be chuffed.

    Don't know if it is part of your problem, but with cron you should watch out
    for the $PATH environment within the cron job - I would either explicitly
    define $PATH within the cron job or use absolut paths for the binaries that
    the cron job is calling. Also worth checking is who is the owner of the job
    (it might be dropping privileges).

    Greetings from Bremen
    hartmut

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: sjb: "[SLE] bluetooth"