How to set a cron job on sonic.net server ?
Use putty to setup cron tab
login with username and password
type crontab -e in shell command to open the crontab file
eg:
type in crontab file to setup a cron job to run at every 10 minutes
if you are running a PHP script
*/10 * * * * http://yourdomainname.com/subdirectory/cronjob.php
or
If you are running a Shell Script
*/10 * * * * http://yourdomainname.com/subdirectory/cronjob.sh
if your domain path do not work type the file path for the root directory and then the path of your cronjob file
*/10 * * * * /xyz/nfs/abc//subdirectory/cronjob.php
and then save the file by typing shift+: and then wq
Check the cronjob list by below command
crontab -l
remove all the cronjob by below command
crontab -r
for PHP script to run as a cronjob put the below shell command at the beginning of the PHP file
#!/usr/bin/php
Hope that will work for you!