User Tools

Site Tools


software:linux:linuxgeneral

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
Next revisionBoth sides next revision
software:linux:general [2017/11/25 20:50] superwizardsoftware:linux:general [2018/07/30 06:26] – [BAD FILE MODE] superwizard
Line 245: Line 245:
  
 Suse 10.x in %%/var/log/messages%% Suse 10.x in %%/var/log/messages%%
 +
 +====== Cron ======
 +
 +<code>
 +#|   hour (0-23)
 +#|      day of the month (1-31)
 +#|      |   month of the year (1-12 or Jan-Dec)
 +#|      |     day of the week (0-6 with 0=Sun or Sun-Sat)
 +#|      |       user
 +#|      |         commands
 +#|      |         |
 +# Each line has five time-and-date fields
 +# followed by a username (if this is the system crontab file),
 +# and followed by a command.
 +# 20      1      smolt /usr/bin/smoltSendProfile -c > /dev/null 2>&1
 +# top of every other hour :0  
 +0   */     *      root /root/Desktop/own-p  > /var/log/own-p.log 2>&1
 +</code>
 +
 +
  
 ====== BAD FILE MODE ====== ====== BAD FILE MODE ======
Line 251: Line 271:
 From: http://www.cyberciti.biz/faq/unix-linux-cron-bad-file-mode-error/ From: http://www.cyberciti.biz/faq/unix-linux-cron-bad-file-mode-error/
  
-    All you have to do it set 0644 (rw-r--r) permission i.e. remove world writable file permissions +<code> 
 +    All you have to do it set 0644 (rw-r--r) permission i.e. remove world writable  
 +    file permissions 
          
 From: http://old-en.opensuse.org/Packaging/SUSE_Package_Conventions/Cron_Jobs From: http://old-en.opensuse.org/Packaging/SUSE_Package_Conventions/Cron_Jobs
  
-    As defined in /etc/crontab, cron executes the script /usr/lib/cron/run-crons every 15 minutes. It looks for scripts  +    As defined in /etc/crontab, cron executes the script /usr/lib/cron/run-crons  
-    in the directories /etc/cron.{hourly,daily,weekly,monthly} and checks which should be executed. The information about +    every 15 minutes. It looks for scripts in the directories /etc/cron.{hourly, 
 +    daily,weekly,monthly} and checks which should be executed. The information about 
     last run is stored in files below /var/spool/cron/lastrun.     last run is stored in files below /var/spool/cron/lastrun.
- +</code>
software/linux/linuxgeneral.txt · Last modified: 2023/10/15 23:05 by superwizard