I am newbie. I have Windows XP and use the CodeIgniter framework. I wanted to know how to set up a cron job.
You can't really make a 'real' cronjob system with PHP since PHP is not a long running process, but you can make a PHP script that executes certain tasks if the script is visited.
I'm not sure if you can use this, but I think Windows itself has some sort of cronjob system (I'm a linux user). I found it at the Drupal website: http://drupal.org/node/31506
How is CodeIgniter tied to your cron job? Are you trying to setup cron jobs from a CodeIgniter application? Are your trying to run a cron job that does some sort of work for your CodeIgniter application? I'm confused as to exactly what you want.
One idea that you may look into is CygWin. It runs a bash shell under windows and it supports a full cron. http://www.cygwin.com/
Related
I have tried to change the IP of a server via script and schedule it automatically but it was not giving proper results.So i relied on a tacky method of doing it using "Automator"app in Mac.
I created a workflow using this Automator ,Now i need to schedule this to work every 10 minutes or so.How can i do that in Mac with any scripts or anything. Suggestions will be o great help.
Below is the workflow created.
I am very new to scripting and i am not sure which script will be helping me out.
I need to download a file from a website and also it should happen as recurring download every morning.
could someone kindly suggest me a script?
Thanks in advance
You should use either curl or wget, one or both of them are part of many Linux distributions, there are also Windows and OSX versions available.
To make the script run on a regular basis you will need to use the cron scheduler on Linux/UNIX/OSX, WIndows has its own Task Scheduler
Is there a possibility to run AppleScripts from a server or from a cloud service?
I want to have some scripts that can run if my computer is sleeping/off.
I looked around a bit on Google, but haven't found anything promising.
If this doesn't exist I basically need to remove the password from my computer and wake up the computer whenever the script needs to run.
It largely depends on what you want to do with the script. There are a few options.
You can use 'stay open' script bundles that, for example, check a certain folder and run when you interact with this folder
You can launch certain scripts when the server boots.
You need to have a server that is always on for this to work. I have this running myself and it works just fine. However, as I said before, it largely depends on what you want to do with your scripts.
I need to open one web page periodically, using Task Scheduler.
On Linux I can run crontab job to do that, but this time I have to do on Windows XP.
Can you help me how is it possible to achieve it?
Thank you in advance!
If you want to call a URL using Windows Task Scheduler, you can check this answer. However, there are other options like scheduling tool ATrigger.
Disclaimer: I was among builders of ATrigger. freeware, not commercial.
What is the best way of scheduling simple batch jobs on windows? My current need is to dump some SVN repositories each night and FTP the dumps to our external FTP side and then e-mail one or more people that the backup has completed/failed.
This sounds like the sort of thing I would usually do in a unix script + cron. Is that possible on windows? Perhaps using Cygwin?
Windows Scheduled Tasks. This area is available through the control panel and may require administrative rights. It's basically crontab for Windows. Run a Windows batch file (or any executable) at a specified interval using a specified user.