How do I run a cron job in UNIX?

Pham Quỳnh

New member
How do I run a cron job in UNIX?
Answer
Procedure
  • Create an ASCII text cron file, such as batchJob1.txt.
  • Edit the cron file using a text editor to input the command to schedule the service.
  • To run the cron job, enter the command crontab batchJob1.txt .
  • To verify the scheduled jobs, enter the command crontab -1 .
  • To remove the scheduled jobs, type crontab -r .
 

Tìm kiếm

Back
Top