added existing
This commit is contained in:
11
scripts/shutdown-server.sh
Normal file
11
scripts/shutdown-server.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
PASSWORD_FILE="$HOME/.cred/credentials_s.txt"
|
||||
PASSWORD=$(<"$PASSWORD_FILE")
|
||||
SERVERIP="192.168.0.1"
|
||||
USERNAME="Honney"
|
||||
COMMAND="shutdown /s /t 0"
|
||||
|
||||
send_notification "normal" "Shutingdown 2nd PC" "$SERVERIP" "$HOME/.icons/BeautyLine-Garuda/devices/scalable/server.svg"
|
||||
|
||||
sshpass\
|
||||
-p "$PASSWORD" ssh "$USERNAME"@"$SERVERIP" "$COMMAND"
|
||||
Reference in New Issue
Block a user