Thursday, May 29, 2014

How To Schedule Cron Job For Users In Linux

3:10 PM

A Red Hat Certified System Administrator (RHCSA) is able to perform the following tasks:


  • Understand and use essential tools for handling files, directories, command-line environments, and documentation
  • Operate running systems, including booting into different run levels, identifying processes, starting and stopping virtual machines, and controlling services
  • Configure local storage using partitions and logical volumes
  • Create and configure file systems and file system attributes, such as permissions, encryption, access control lists, and network file systems
  • Deploy, configure, and maintain systems, including software installation, update, and core services
  • Manage users and groups, including use of a centralized directory for authentication
  • Manage security, including basic firewall and SELinux configuration.



Schedule cron job for user sowmya that every day "GoodMorning" message should be displayed at 19.27.

CMD:


root@linuxstorage:~#crontab -u sowmya -e

27             19         *              *              *              /bin/echo "hello"

:wq!

u    - Users
e    - Edit the file

32 -  Minutes
16 -  Hours ( 4 pm )
*   -  Every day
*   -  Every month
*   -  Every week                                    


wq! - save file

Cron will run every day at 7.27 pm.


root@linuxstorage:~#crontab -u sowmya -l

l = Print scheduled cron. 


root@linuxstorage:~#service crond restart

Enter the crond service in chkconfig

root@linuxstorage:~#chkconfig crond on

Written by

0 comments :

Post a Comment

 

© 2014 Linux Storages | Updated . All rights resevered. Designed by Templateism