XFileSharing Pro - Cron Job problem

Message
Author
Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

Cron Job problem

#1 Postby Timmy » Mar 16, 2010 11:17 pm

hi guys,

I add the command below in my cron jobs to run every hour:

Code: Select all

cd /var/www/cgi-bin;./cron.pl >/dev/null 2>&1
but I received this email notifications:
/bin/sh: line 0: cd: /var/www/cgi-bin: No such file or directory
what I am doing wrong?
the install.txt file says:
8 ) Add cron.pl script to your crontab to run it every hour.
Sample: 0 * * * * cd /var/www/cgi-bin;./cron.pl >/dev/null 2>&1

PBI
Posts: 25
Joined: Mar 15, 2010 10:32 pm

#2 Postby PBI » Mar 17, 2010 2:09 am

yea mate i have the same trobel and i have no skills it cornjobs

peterdays
Posts: 55
Joined: Mar 10, 2010 3:56 pm

#3 Postby peterdays » Mar 17, 2010 3:13 am

that is probably not the right path to that cgi-bin on your server, try finding it out.


should be something like /home/yousername/www/cgi-bin

PBI
Posts: 25
Joined: Mar 15, 2010 10:32 pm

#4 Postby PBI » Mar 17, 2010 3:33 am

ok mate i try that and i can see wen i get mail thx for the respons

Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

#5 Postby Timmy » Mar 17, 2010 3:35 am

I tried:

Code: Select all

cd /home/www/username/cgi-bin;./cron.pl >/dev/null 2>&1
and didnt work :(

PBI
Posts: 25
Joined: Mar 15, 2010 10:32 pm

#6 Postby PBI » Mar 17, 2010 3:42 am

Timmy wrote:I tried:

Code: Select all

cd /home/www/username/cgi-bin;./cron.pl >/dev/null 2>&1
and didnt work :(
Try like peter say

/home/yousername/www/cgi-bin

look in cpannel what you server name if not full domane whit out .com were you see yousername

Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

#7 Postby Timmy » Mar 17, 2010 3:49 am

Opppsssss Is working now :)
Thank you both! :D

PBI
Posts: 25
Joined: Mar 15, 2010 10:32 pm

#8 Postby PBI » Mar 17, 2010 4:08 am

Great mate