Cron Job's
#1
Posted 26 January 2012 - 02:34 AM
Thanks!
#2
Posted 26 January 2012 - 08:13 AM
Yes, just set up your script with all the different functionality you need as the cronjob doesn't care what is in your script, it is just there to run the set script at the specified times.
#4
Posted 26 January 2012 - 09:41 PM
Code reference:
$timeNow = strtotime(date('G-i-s'));
switch($timeNow){
case '10023021':
executesql_query(PARAM);
break;
}
This post has been edited by getty: 26 January 2012 - 09:48 PM
#5
Posted 26 January 2012 - 11:30 PM
#6
Posted 27 January 2012 - 10:31 AM
#9
Posted 27 January 2012 - 11:37 PM
bunzip2 bzip2 cat chmod cp cpio doscvt grep gzip hostname ln login ls mkdir more mv od rm sh tar touch unzip vi zcat
I haven't found an article of ssh commands list for fashostingdirect, couldn't find it on their website either.
Though if you're wondering what command to use for creating a cron job, use crontab -e, press i and insert your cron command: run a query.php everyday for example:
0 0 * * * php /www/query.phpThen press escape followed by ':' and type 'wq' to save the command. crontab -l to list all the existing cron job commands.
This post has been edited by getty: 27 January 2012 - 11:41 PM
#10
Posted 28 January 2012 - 02:14 AM
#11
Posted 28 January 2012 - 02:51 AM
#12
Posted 29 January 2012 - 05:15 PM
Basically I need to set up a cron job that will download a number of CSV files from a URL and then import them into my database, overwriting the originals... But I havn't a clue where to start!
This post has been edited by Lee_K: 29 January 2012 - 05:16 PM
#13
Posted 29 January 2012 - 11:46 PM
- ← Unexpected T_VARIABLE
- Server Side (PHP, Databases, ASP.NET, etc)
- Email verification script no longer working - fsockopen unable to connect? →
Help

















