CRON .bat of files possible ?

Status
Not open for further replies.

webtomata

New Member
Messages
11
Reaction score
0
Points
0
Hello,

I'm a bit of a newbie when is comes to setting up a cron job (using the cron tab).

I have several php scripts I'd like to execute from one CRON job so I thought I could do this by placing all the 'php-cron' commands in a '.bat' file and then just executing the .bat file as the CRON command, however I get this error emailed :

/bin/sh: www/autologon/logon.bat: Permission denied

Can anyone tell me what I'm doing wrong ?

Cheers
 

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
A .bat file is for Windows. Not linux. You want a shell script.

Your path should be /home/web/www/autologon/logon.bat
 
Status
Not open for further replies.
Top