Tanti Technology

My photo
Bangalore, karnataka, India
Sandeep Kumar | Founder, Tanti Technologies At Tanti Technologies, I share practical knowledge, hands-on tutorials, and real-world solutions across Python, SQL, Docker, Kubernetes, CI/CD, AWS, Azure, Machine Learning, Generative AI, and Agentic AI. My mission is to simplify complex technologies and provide actionable insights that help developers, engineers, and businesses learn faster, build better, automate smarter, and innovate with confidence. 🚀 Learn • Build • Automate • Innovate Follow Tanti Technologies for practical technology insights and next-generation AI solutions.

Thursday, 7 November 2013

Job Scheduling /corntab, at in aix


Job Scheduling:

corntab is most used to schedule the jobs in AIX;

To view the list of jobs currently scheduled:
# corntab –l

To create now job scheduling:
# corntab –e (It will open vi editor and after making changes save and quit)

For example: September 21 12:30 AM represents 30:00:21:09:*

#corntab -e 
30:00:21:09 touch /root/abc.txt
 
Minutes(0-59): Hours(0-23): Date(1-31): Month(1-12): Weak Day(0-6)

Corntab attributes can be stored in /var/adm/corn file, and log will store at /var/adm/corn/log

As a root user can also run corntab
# su - root 
You can also schedule a job for the user # corntab -eu
to view the jobs of particular user # corntab -lu

To remove all the scheduled jobs # corntab -r 

To remove all the scheduled jobs of particular user # corntab -ru

To check all the users of corntab # cat /var/adm/corn/corntab/ 

At command also used to schedule the job, but it executed once only

To view all the job scheduled with at command:
# at –l

To create job schedule with at command:
# at 11:11 today
# at 10:30
touch /root/abc.txt
You can also deny or allow the corn and at commands using with edit the following files;

#cd  /var/adm.corn
 This command output will list default files corn.deny and corn.allow

# vi corn.deny



#vi corn.allow



/var/adm/corn/corn.allow
/var/adm/corn/corn.deny
/var/adm/corn/at.allow
/var/adm/corn/at.deny

No comments:

Post a Comment