Un cron tout simple qui marche pas

Un cron tout simple qui marche pas - Codes et scripts - Linux et OS Alternatifs

Marsh Posté le 26-04-2006 à 20:08:26    

Bonjour,
 
Sur ma dsl , mon cron ne fonctionne pas:

Citation :

*/1 * * * * /heure.sh


Quand je lance en direct , ca marche
Le même cron avec df>/df_log au lieu de /heure.sh fonctionne.
Une idée?
 
Mon /heure.sh:
#ntp.polytechnique.fr
ntpdate 129.104.30.41


Message édité par mulanee le 26-04-2006 à 20:15:32
Reply

Marsh Posté le 26-04-2006 à 20:08:26   

Reply

Marsh Posté le 26-04-2006 à 20:41:41    

Ne pas mettre un ntpdate en cron  :o  :fou:  :o  
 
 
 
 
En passant je me fait un peu de pub :)
http://www.henol.fr/articles/debian_ntp-simple.php

Reply

Marsh Posté le 26-04-2006 à 20:51:12    

La variable PATH ne doit pas contenir /usr/sbin donc tu dois spécifier le chemin complet de ta commande dans la crontab : /usr/sbin/ntpdate
PS: même remarque que Proxounet, prefère l'utilisation de ntpd à la place de ntpdate ( modification de l'horaire moins brutale)


Message édité par jlighty le 26-04-2006 à 20:51:43
Reply

Marsh Posté le 26-04-2006 à 21:16:12    

J'ai suivi ton lien et essayé d'installer ntp-simple.
Ca ne fonctionne pas:

Citation :

root@0[root]# apt-get install ntp-simple
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
  ntp-doc
The following NEW packages will be installed:
  ntp-simple
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 132kB of archives.
After unpacking 295kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org oldstable/main ntp-simple 1:4.1.0-8 [132kB]
Fetched 132kB in 5s (24.3kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "fr",
        LC_ALL = (unset),
        LANG = "fr_FR@euro"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C" ).
Preconfiguring packages ...
Selecting previously deselected package ntp-simple.
(Reading database ... 10993 files and directories currently installed.)
Unpacking ntp-simple (from .../ntp-simple_1%3a4.1.0-8_i386.deb) ...
Setting up pcmcia-cs (3.1.33-6woody1) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "fr",
        LC_ALL = (unset),
        LANG = "fr_FR@euro"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C" ).
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "fr",
        LC_ALL = (unset),
        LANG = "fr_FR@euro"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C" ).
update-rc.d: /etc/init.d/pcmcia: file does not exist
dpkg: error processing pcmcia-cs (--configure):
 subprocess post-installation script returned error exit status 1
Setting up zmailer (2.99.55-3) ...
Updating aliases database using newaliases...
/usr/lib/zmailer/zmailer: panic!!  MAILBOX-variable does not point to a directory!  Verify /etc/zmailer/zmailer.conf!
dpkg: error processing zmailer (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mailx:
 mailx depends on mail-transport-agent; however:
  Package mail-transport-agent is not installed.
  Package zmailer which provides mail-transport-agent is not configured yet.
dpkg: error processing mailx (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of logrotate:
 logrotate depends on mailx; however:
  Package mailx is not configured yet.
dpkg: error processing logrotate (--configure):
 dependency problems - leaving unconfigured
Setting up ntp-simple (4.1.0-8) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "fr",
        LC_ALL = (unset),
        LANG = "fr_FR@euro"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C" ).
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "fr",
        LC_ALL = (unset),
        LANG = "fr_FR@euro"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C" ).
Starting NTP server: ntpd.
 
Errors were encountered while processing:
 pcmcia-cs
 zmailer
 mailx
 logrotate
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed