Thursday, February 1, 2007

system tools and schedules

Windows:
Windows XP Pro has a command line tool called systeminfo, which gives a whole lot of information on the system including motherboard info, the date the OS was installed, what patches have been installed, what processors you have, how much memory and virtual memory and lots more.

To access it, open a command promt and run “systeminfo”. You can output the data to a file by typing “systeminfo > c:\myfilename.txt” and then open “c:\myfilename.txt” to see all the info in a text editor.

You can also run a System Information window by clicking Start > All Programs > Accessories > System Tools > System Information. This also includes some cool system-checking tools in the “TOOLS” menu

Linux:

“at” what time do you want this one time job to run?

If you want a job to run once only, you could put it in “CRON” and then delete it later – or you could use the “at” command.

Example:

at 12:30
When you click Enter, you get the at> prompt

You then type in the command or script you want to run at the given time (in this example 12:30), hit enter and then Ctrl+D.

at> /usr/bin/improvemylife.sh

The above example will run the /usr/bin/improvemylife.sh program at 12:30. (Unless you are a script wizard, don’t expect this to actually improve your life)

You can see a list of all your at jobs with:
at -l

This will list all pending jobs including the job number.

You can remove a pending job with atrm

atrm 2
There are other ways to input the date and time you want the job to run. Just check the man page.

(By the way, you can also use the at command in windows. From a command prompt type “at /?” for the syntax)