PHP
Command to run a PHP5 cron job:
php /home/username/public_html/cron.php
Optional flags are sometimes required for a PHP cron job:
php -q /home/username/public_html/cron.php
Command to run a PHP4 cron job:
/usr/local/php4/bin/php /home/strong>username/public_html/cron.php
Command to use a specific php.ini file:
php -c /home/username/public_html/php.ini /home/username/public_html/myscript.php
Command to GET a remote file:
/usr/bin/GET http://www.example.com/file.php
PHP
Command to run for a PHP5 cron job:
/usr/local/php5/bin/php5 /home/username/public_html/cron.php
Command to run for a PHP4 cron job:
/usr/bin/php /home/username/public_html/cron.php
File
delete all file in cache folder
rm home/username/public_html/cache/*
delete all file and folder in cache
rm -vrf home/username/public_html/cache/
process cron.php file in admin fo
wget -O /dev/null/ http://www.muslum21.com/admin/cron.php > /dev/null
> /dev/null -> cancel sending email
SSH
Command to run a code script cron job:
/bin/sh /home/username/public_html/file.sh
Mysql
Command to import a database:
mysql -u mysql_user -ppassword database_name < backup.sql
Command to export a database:
mysqldump -u mysql_user -ppassword database_name >backup.sql
Last Update:
Posted by: müslüm ÇEN