PDA

View Full Version : cron jobs



bigmacbb63
22nd August 2007, 06:18 AM
I would like to run nmap every 4 hours what is the command line script to be able to do this?

Thanks for your help,

bigmacbb63@gmail.com :)

EnglandA
22nd August 2007, 11:48 AM
You could use crontab to run the command, for example:

# ------------- minute (0 - 59)
# | ----------- hour (0 - 23)
# | | --------- day of month (1 - 31)
# | | | ------- month (1 - 12)
# | | | | ----- day of week (0 - 6) (Sunday=0)
# | | | | |
# * * * * * command to be executed

0 */4 * * * nmap 192.168.1.1