On Monday 11 October 2010 22:28:06 Vic wrote:
> > (like the file I wanted crontab to run only needed the file name not the
> > .sh on the end of it)
>
> That *is* the filename.
>
> foo.sh is the name of a file. foo is the name of another file. These are
> not the same file.
>
> If you tell the OS to execute a file called foo.sh, then foo.sh is the
> name of the file it will execute. It will not attempt to execute foo,
> because that is not the file you told it to run...
>
> This was the main problem I saw with your cron scripts - you were telling
> it to execute a file that did not exist.
>
> HTH
>
> Vic.
>
>
> --
> Please post to: Hampshire@mailman.lug.org.uk
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug.org.uk
> --------------------------------------------------------------

OK, when I posted the request for help I tried both file.sh and file in crontab 
and neither of them worked. After adding the folder that holds the "file" to 
$PATH and then changing crontab to run from /folder/file.sh it would not run 
But when I changed it to /folder/file it ran?

I understood the part about the file did not exist, my problem was finding out 
why it thought it did not exist

Tim

--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------

Reply via email to