Envoyer a peu trop vite... Am 2008-09-20 16:49:35, schrieb Michelle Konzack: > DATE=`date' > FMTDATE=`date --date="${DATE}" +%d%m%y' > > Je prefere: +%Y%m%d => 20080901 > > LOG="/var/log/arretserveur/arret_$FMTDATE.log" > echo " arret serveur du "'${DATE}' >> $LOG > /sbin/shutdown -h now > exit 0 DATE=`date` FMTDATE=`date --date="${DATE}" +%d%m%y` Je prefere: +%Y%m%d => 20080901 LOG="/var/log/arretserveur/arret_$FMTDATE.log" echo " arret serveur du ${DATE}" >> $LOG sleep 3 /sbin/shutdown -h now exit 0 Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 +49/177/9351947 50, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature