Skip to content

crontab

LowyCCN edited this page Jul 13, 2021 · 5 revisions

Crontab(JOB)

  • See crontab

    • crontab -l
  • show all crontab by all users

    • for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done
  • add on shell or command line

    • (crontab -l ; echo "59 2 * * * cd /giip/scripts; bash --login -c 'sh giiprecycle.sh'")| crontab -
  • See crontab log

    • tail -f /var/log/cron
    • You can see real-time changes using f option.

reference

Translate this page?

Data(DBMS, NoSQL)

Development

Tools

Management

OS

Hardware

Business

Hobby

Lifestyle

Giip(RPA Engine)

Clone this wiki locally