Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

[PHP] Running a script with Crontab From: ani <email protected>
Date: 09/30/01

This is what I do, maybe is gonna help you

bash file structure:

     #!/bin/bash
     ##
     ## mysql maintenance
     ##
     /usr/bin/mysql -u username --password=yourpassword <<EOF
     use yourdatabase;
     YOUR SQL query HERE;
     exit
     EOF

then
 chmod +x yourbashfile

so "cronjob" this file with the desired frecuency

Ani Lopez
www.laMundial.net
download our free music

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>