Forum Programmation.shell procmail avec shell

Posté par  .
Étiquettes : aucune
0
21
juin
2008
Bonjour, on a fichier .procmailrc SHELL=/bin/sh PATH=/usr/bin DEFAULT=/home/box1/mail/ MAILDIR=/home/box1/ LOGFILE=$MAILDIR/.procmail.log INCLUDEDIR=/home/box1/.procmailrc MAILCOPY=/home/box1/copymail/ :0c: * ^From.*faia@hotmail.com /home/box1/copymail/ dont box1 change selon l'utlisateur saisi dans toto.sh echo le nom de l'utitlisateur read user if test ! -d $user then useradd $user else echo "cette utilisateur existe" comment mettre en relation un script shell et .procmailrc cad comment faire pour appel le fichier .procmailrc dans le script shell

Forum Programmation.shell shell dans un editeur

Posté par  .
Étiquettes : aucune
0
2
juil.
2008
Bonjour, je voudrais realise dans script shell test.sh qui contient vi mais quand j'execute il affiche une page vide voila mon script #!bin/bash vi /home/test/.procmailrc SHELL=/bin/sh PATH=/usr/bin DEFAULT=/home/essai/mail/ #repertoire pa defaut ou sont stockes les mails MAILDIR=/home/essai/ LOGFILE=$MAILDIR/.procmail.log INCLUDEDIR=/home/essai/.procmailrc MAILCOPY=/home/essai/copymail/ :0c: * ^From.*fai@hotmail.com $MAILCOPY :wq

Forum Programmation.shell shell dans un editeur

Posté par  .
Étiquettes : aucune
0
2
juil.
2008
Bonjour, je voudrais realise dans script shell test.sh qui contient vi mais quand j'execute il affiche une page vide voila mon script #!bin/bash vi /home/test/.procmailrc SHELL=/bin/sh PATH=/usr/bin DEFAULT=/home/essai/mail/ #repertoire pa defaut ou sont stockes les mails MAILDIR=/home/essai/ LOGFILE=$MAILDIR/.procmail.log INCLUDEDIR=/home/essai/.procmailrc MAILCOPY=/home/essai/copymail/ :0c: * ^From.*fai@hotmail.com $MAILCOPY :wq