Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:cronjobs [2018/12/12 16:28] – [Cronjobs] tmadelinux:cronjobs [2023/11/15 11:28] (current) – [AT] tmade
Line 2: Line 2:
  
 [[http://wiki.tmade.de|Home Wiki]] [[http://wiki.tmade.de|Home Wiki]]
- 
-This page was last modified at: ~~LASTMOD~~ 
  
 ===== Cronjobs ===== ===== Cronjobs =====
Line 28: Line 26:
   */1 * * * * root /bin/logger "testmessage"   */1 * * * * root /bin/logger "testmessage"
   */1 * * * * root /usr/sbin/ntpdate -s time.server.com && /sbin/hwclock --systohc   */1 * * * * root /usr/sbin/ntpdate -s time.server.com && /sbin/hwclock --systohc
-  */1 * * * * root echo "hello world"+  */1 * * * * root /usr/bin/echo "hello world"
 </code> </code>
 <code> <code>
Line 97: Line 95:
 Schedule: Schedule:
   at hh:mm   at hh:mm
-  finger >> /var/log/messages //exit with ctrl+D+  finger >> /var/log/messages                       #exit with ctrl+D
  
   at noon tomorrow   at noon tomorrow
-  finger >> /var/log/messages //exit with ctrl+D+  finger >> /var/log/messages                       #exit with ctrl+D 
 + 
 +  echo "myscript.sh" | at 05:30 111623                        #runs "myscript.sh" at 5:30 on 16th Novemver 2023
  
  
linux/cronjobs.txt · Last modified: 2023/11/15 11:28 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki