Am 10.05.2016 um 08:43 schrieb Markus Rupprecht: > Hallo > > > Am 10.05.2016 um 08:25 schrieb Rupprecht-admin3, Markus: >> sshpass -p "Adminpasswort" ssh -o "StrictHostKeyChecking no" >> administrator@$1 shutdown /t 0 /s > > Kann ich die Ausgabe der obigen Zeile in eine Logdatei umlenken, damit > ich sehen kann, ob es bei weiteren Rechnern nicht klappt? > > Ein >>/var/log/syslog am Ende tut es nicht. In syslog erscheint nichts > und die "Meldung" steht auf der Konsole.
befehl 2>&1 >> /tmp/mylog nach /var/log/syslog würde ich nicht manuell loggen, oder tatsächlich mit dem Programm "logger" logger befehl Grüße, Tobias > > Gruß, > Rupprecht > > > --- > Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. > https://www.avast.com/antivirus > > _______________________________________________ > linuxmuster-user mailing list > [email protected] > https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user _______________________________________________ linuxmuster-user mailing list [email protected] https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user
