[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shellscript in /etc/cron.daily



Am Sonntag, 19. Februar 2006 22:08 schrieb Wolf Wiegand:
> Hallo,
>
> Richard Mittendorfer wrote:
> > $ man run-parts
> > ...
> > DESCRIPTION
> >  run-parts  runs  all  the  executable  files  named  within constraints
> >  described below, found in directory directory.  Other files and direc-
> >  tories are silently ignored.
>
> Und zumindest einer dieser Constraints ist eine, zumindest bei mir,
> beliebte Stolperfalle: Ziele mit eine '.' im Namen werden nicht ausgeführt.

Die Glaskugel war gut :-)

ls -l /etc/cron.daily/
insgesamt 68
-rwxr-xr-x  1 root root  133 2005-04-03 21:45 00logwatch
-rwxr-xr-x  1 root root  311 2005-02-08 22:29 0anacron
-rwxr-xr-x  1 root root  309 2006-01-21 19:32 amavisd-new
-rwxr-xr-x  1 root root 5041 2005-12-07 16:48 apt
-rwxr-xr-x  1 root root  502 2004-11-01 20:29 bsdmainutils
-rwxr-xr-x  1 root root  774 2005-01-27 13:57 exim4-base
-rwxr-xr-x  1 root root  419 2004-11-21 11:10 find
lrwxrwxrwx  1 root root   29 2005-05-16 17:17 geburtstage 
-> /usr/local/bin/geburtstage.sh
-rwxr-xr-x  1 root root   89 2004-06-11 15:05 logrotate
-rwxr-xr-x  1 root root  946 2005-01-05 17:30 man-db
-rwxr-xr-x  1 root root   86 2004-12-19 11:40 modutils
-rwxr-xr-x  1 root root 1330 2005-12-07 12:32 mysql-server
-rwxr-xr-x  1 root root 1320 2005-05-06 22:28 mysql-server-41
-rwxr-xr-x  1 root root  495 2004-10-24 18:28 netkit-inetd
-rwxr-xr-x  1 root root  383 2004-12-17 23:45 samba
-rwxr-xr-x  1 root root 2571 2004-07-28 22:44 standard
-rwxr-xr-x  1 root root 1307 2004-11-07 13:13 sysklogd


Es geht um das Script geburtstage.sh. Ich habe den Link mal von geburtstage.sh 
auf geburtstage umbenannt. Die Rechte waren testweise davor auch schon so 
gesetzt.

Darf die Originaldatei auch keinen Punkt enthalten?

Das Script zu posten, wäre viel zu lang und da befinden sich Teile darin, die 
nicht publik gemacht werden sollen. Ich verstehe auch nicht, was der Inhalt 
des Scripts helfen könnte. Per Cronjob funktioniert es ja.

Al



Reply to: