Anzeigen der neuesten Beiträge
0 Mitglieder und 1 Gast betrachten dieses Thema.
shutdown --helpUsage: shutdown [OPTION]... TIME [MESSAGE]Bring the system down.Options: -r reboot after shutdown -h halt or power off after shutdown -H halt after shutdown (implies -h) -P power off after shutdown (implies -h) -c cancel a running shutdown -k only send warnings, don't shutdown -q, --quiet reduce output to errors only -v, --verbose increase output to include informational messages --help display this help and exit --version output version information and exitTIME may have different formats, the most common is simply the word 'now' whichwill bring the system down immediately. Other valid formats are +m, where m isthe number of minutes to wait until shutting down and hh:mm which specifies thetime on the 24hr clock.Logged in users are warned by a message sent to their terminal, you may includean optional MESSAGE included with this. Messages can be sent without actuallybringing the system down by using the -k option.If TIME is given, the command will remain in the foreground until the shutdownoccurs. It can be cancelled by Control-C, or by another user using the -coption.The system is brought down into maintenance (single-user) mode by default, youcan change this with either the -r or -h option which specify a reboot orsystem halt respectively. The -h option can be further modified with -H or -Pto specify whether to halt the system, or to power it off afterwards. Thedefault is left up to the shutdown scripts.
sudo chmod ug+s /sbin/shutdown
mkdir $HOME/scriptscd $HOME/scriptswget http://mtrons.googlepages.com/aus.txt -O $HOME/scripts/aus.shchmod +x aus.sh
sh $HOME/scripts/aus.sh
Type: ApplicationName: ShutdownCommand: sh $HOME/scripts/aus.shComment: oldnewbies shutdown script
/usr/share/icons/Human/scalable/actions/sleep.svg
gedit $HOME/scripts/aus.sh
sh $HOME/scripts/aus.sh/home/marco/scripts/aus.sh: 7: function: not found/home/marco/scripts/aus.sh: 31: zeitpunkt: not found/home/marco/scripts/aus.sh: 33: Syntax error: "}" unexpected
cd $HOME/scriptsrm aus.shwget http://mtrons.googlepages.com/aus.txt -O $HOME/scripts/aus.shchmod +x aus.sh