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
Related
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.
I have a requirement where I need to check Remote Servers to see if all of their Critical updates are installed and then return PASS or FAIL.
Is there a way with WMI for me to do this with VBScript?
EDIT:
I did find this
Windows Update Check with vbscript but it only works on the local machine and not remote.
This link with UpdateHF_v2.6a.vbs by Rob Dunn is made to work with all versions of Windows. It's made with VBS to use WMI, and works on local and remote hosts.. I've been using 2.5a for years. There is no changelog, though Rob is updating the script in response to feedback.
http://community.spiceworks.com/scripts/show/82-windows-update-agent-force-script-email-results-version-2-6
If you need "wrappers" to do this in bulk using a list of computers and psexec to run it, let me know. :)
I have a CSV that my computer downloads every 15 minutes automatically. I then want to automatically upload this CSV to my Google Docs account using their API.
I figure I can write a simple VBScript that pulls the CSV file from it's location and POSTs to the Google Docs API but my question is how do I set the script to run every 15 minutes in the Windows 7 environment.
Thanks for your help!
Simple: the Windows task scheduler. Link
EDIT: Eh, probably a poor link. This is more specific. You can also do it from the command line with the at command.
The problem with the script that it has poor monitor service. If you will write a windows service it can be resumed and logged automatically.
I keep running into issues with a .bat script I want to write to automate some tasks related to the setup of my PHP application. I can't for instance do simple wget to download files and so on.
I hear that by installing Cygwin, the user should be able to have access to all linux related commands, so my script will run without problems.
Another way is to get the user to download each GnuWin32 version of the commands I'm using in my script, like wget, gzip, diff but this sounds like a lot more trouble than installing a single Cygwin program.
Can someone recommend the easiest approach here.. Is Cygwin the standard or are there easier alternatives.
I haven't heard of alternatives to Cygwin, and from my personal experience, it seems like it would perfectly suit your needs. You'll just need to launch your script from Cygwin's shell instead of Windows' prompt, but that hardly is a problem.
If you are having problems with batch files then rather than install Cygwin, I'd look at PowerShell and WScript.
Hard to answer, because the way you phrase your question seems to imply that the person answering must have absolute knowledge about what is easiest and that there's not any alternatives.
Among the people I know Cygwin is the standard for getting a posix like environment under windows.
I'd go for cygwin.
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/