Monday, March 14, 2016

scheduling tasks

at

at allows you to run commands once at a different chronological location than when you type them. for instance you can run:

$ at 11:50
and it will open a terminal that will allow you to type in a command that will be executed at 11:50 

crontab

crontab allows you to run a repeating command at a different time or date every time that time or date happens. to do this you have to use the command:
$ crontab -e
this allows you to edit the crontab. then you can schedule tasks by typing in the time code then the command. the time codes are formatted like this:

minute hour day week month year

so for instance Wednesday march 16th at 7:30 at night would be:

30 19 16 3 3

for any random unit of time you use a *. so for say every wednesday at 7:00 AM you would use:

0 7 * * 3

now how do you find out what cron tabs are running?  all you have to do is use:

$ crontab -l


Thursday, March 10, 2016

AT

at is a great command that you can use to activate commands at another time.

to use at  all you have to do is type at and the time:

$ at 15:00

this will change the dollar signs to

at>

then you can type the commands into the console

then to exit the console by hitting ctrl-D