how to execute a file .bat or .pl from the server?

Status
Not open for further replies.

allemand1

New Member
Messages
4
Reaction score
0
Points
0
i need to execute a file called stats.pl, or another called psychostats.bat
but i dont know how to do it.

stats.pl is in

www/Stats1/stats.pl

I try to use the "Cron Jobs" from the panel but i dont know what to put in "command to execute"
I try with:
www/Stats1/stats.pl
usr/bin/perl/home/www/Stats1/stats.pl
home/www/Stats1/stats.pl
but it doesnt work...
please help me..
Thanks!
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
I am assuming you didn't write the script.

a *.pl is a perl file and needs to be in the public_html/cgi-bin to run. You also need to set the permissions on it to 755.
 

allemand1

New Member
Messages
4
Reaction score
0
Points
0
the .bat doesn't mather , because the perl file can be run...
they do the same funcion...
my english is not soo good! :lockd:
 
Last edited:

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
The batch file would be used to initiate the perl script, and yes wouldn't then be needed on a linux server.
 
Status
Not open for further replies.
Top