php-general | 2001092
Date: 09/30/01
- Next message: Kmarada: "[PHP] fopen"
- Previous message: Martin: "[PHP] Making variable global / accessing variable"
- Next in thread: Jeffrey Paul: "Re: [PHP] Running a script with Crontab"
- Reply: Jeffrey Paul: "Re: [PHP] Running a script with Crontab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Kmarada: "[PHP] fopen"
- Previous message: Martin: "[PHP] Making variable global / accessing variable"
- Next in thread: Jeffrey Paul: "Re: [PHP] Running a script with Crontab"
- Reply: Jeffrey Paul: "Re: [PHP] Running a script with Crontab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

