• [^] # Re: ADSL := Automatic Deconnection Sucks Literally

    Posté par . En réponse au journal ADSL := Automatic Deconnection Sucks Literally. Évalué à 1.

    He bien je crois que tu as mis le doigt dessus : ça ne fonctionne pas par la crontab ! J'avais testé avec "at", mais pas par la crontab. Il est un peu tard et je suis fatigué, mais je crois que je vais regarder du côté du "tty" :

    pty script
    Specifies that the command script is to be used to
    communicate rather than a specific terminal device.
    Pppd will allocate itself a pseudo-tty master/slave
    pair and use the slave as its terminal device. The
    script will be run in a child process with the
    pseudo-tty master as its standard input and output.
    (extrait de man pppd)

    La première différence qui me saute aux yeux entre la ligne de commande et la crontab, c'est justement l'absence de tty dans le second cas. Merci infiniment pour tes précieuses indications !

    À suivre...