Hi,
kann mir jemand helfen, wie ich für jeden Tag einen neu modt bekommen (für das normale Login sowie bei ftp)
die modts sollen dabei aus einer bestimmten "Liste" ausgewählt werden.
Danke für eure hilfe
modt
Re: modt
Hallo,
Vielleicht hilft dir das weiter.
<---> Cut here <--->
#!/bin/bash
# Simples Script das nach jedem Neustart
# einen Cookie in /etc/motd schreibt.
# (c) by Bernd Mueller
# <bernd.mueller@sonnet.de>
FORTUNE=/usr/games/fortune
if [ -f /etc/motd ]; then
$FORTUNE > /etc/motd
if [ -f /home/ftp/message ]; then
cp /etc/motd /home/ftp/message
fi
fi
<---> Cut here <--->
bye
/ Bernd /
Vielleicht hilft dir das weiter.
<---> Cut here <--->
#!/bin/bash
# Simples Script das nach jedem Neustart
# einen Cookie in /etc/motd schreibt.
# (c) by Bernd Mueller
# <bernd.mueller@sonnet.de>
FORTUNE=/usr/games/fortune
if [ -f /etc/motd ]; then
$FORTUNE > /etc/motd
if [ -f /home/ftp/message ]; then
cp /etc/motd /home/ftp/message
fi
fi
<---> Cut here <--->
bye
/ Bernd /