Am 2007-02-24 10:43:28, schrieb creature: > Hi! > > Ich habe folgendes Problem: > > Einen Debian-server der nur nach bedarf gestartet werden soll (mittels > etherwake) und nur so lange eingeschaltet bleiben soll solange Clients > damit verbunden sind (mit 10 min Wartezeit). > > Die Clients verbinden sich dabei über > > afp (netatalk), smb, ssh > > Bei afp und smb weis ich bereits, dass beim connecten/disconnecten ein > Script ausgeführt werden kann. Geht das auch bei ssh? RET=$(pstree -a|grep --word-regexp sshd |wc --lines) if [ $((RET)) -gt 1 ] ; then echo "Es sind ${RET} Benutzer eingelogt." fi Thanks, Greetings and nice Day Michelle Konzack Systemadministrator 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 50, rue de Soultz MSM LinuxMichi 0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature