Forum Moderators: phranque
after seeing the message i added a cron job in cpanel
as to run every day and added following line to run
[domain.com...]
the email report which i got says the following
/bin/sh: line 1: [domian.com...] No such file or directory
What i am doing wrong how to set maintenance to run regularly ,am loosing lot of revenue due to non showing of ads by the server.
please help
Thanks
One clarification
In cpanel there are
Minute
Hour
Day
Month
Weekday
Command
I assume i have to write
Minute0
Hour*
Day*
Month*
Weekday*
Command php /home/user/public_html/phpadsnew-path/maintenance/maintenance.php
and is there space between php / or its php/home
Minute0
Hour*
Day*
Month*
Weekday*
and is there space between php / or its php/home
Single Space between php & /home/, so suppose if the username is benevolent001 and the subdirectory is myads, then you should use below line for Cron Manager.
php /home/benevolent001/public_html/myads/maintenance/maintenance.php
:)
Vishal
I tried connecting to my server through SSH (I have limited knowledge in this area) and running the cron job command as outline in the directions but I am a little confused about the directions.
The directions outlined in the documentation are listed below:
Step 1
Export cron schedule:
crontab -l > cron.txt
Step2:
0 * * * * curl -s -o /devnull [virtual.servername.com...]
Step 3:
Import file back into cron daemon
crontab cron.txt
My questions are as follow:
Step1 - When you type the command (crontab -l > cron.txt) into SSH what directory does it export the file to?
Step 2
Is this command correct? My hosting company told me what to fill in for server name and preceed it with virtual. The server is Linux, Apache.
Step 3
Which directory do you place the cron file in for import?
Thanks