I have the script running as root, so permissions should not be a problem
david
On Fri, 2 Mar 2001, Jonathan Wilson wrote:
> Is the script running as a user that doesn't have permission to write the file (or
>even directory) you've chosen? Try making a directory /testtmp with a testfile in it
>then chmod -R 777 /testtmp and run it from cron again. Did you install the recent RH
>cron update? If so maybe that's what broke it. Also, try using a different user's
>crontab.
>
> At 05:29 PM 3/2/2001 -0500, you wrote:
> >I have a perl script which has run for days without any problems. Last
> >weekend it was stopped, during a reboot. The script generates output
> >which is put into a file. This file gets over written each time the
> >script loops through. The output was orginally redirected to the file.
> >
> >Here is the strange part. If I run the script from the command line the
> >output is redirected into the file. If I run the script as a cron job or
> >nohup process it creates an empty file. I modified the perl script to
> >open the file and 'print' the output to the file. When I run this from
> >the command line it works. When I run it as a cron job, it does not
> >produce the file.
> >
> >I am stumped as to what is happening
> >
> >
> >david
> >
> >
> >
> >_______________________________________________
> >Redhat-list mailing list
> >[EMAIL PROTECTED]
> >https://listman.redhat.com/mailman/listinfo/redhat-list
>
> ----------------------------------------------------
> Jonathan Wilson
> System Administrator
>
> Cedar Creek Software
> http://www.cedarcreeksoftware.com
>
> Central Texas IT
> http://www.centraltexasit.com
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list