Hi to all.
I need help to create a script to poweroff two windows vm.
I use this comemand for shutdowd VM "net rpc shutdown -f -t 0 -C 'message' -U userName%password -I xxx.yyy.zzz.ttt"
How i can insert a pause before run the second poweroff ocmmand and another delay for Unrayd shutdown command.
#!/bin/bash
net rpc shutdown -f -t 0 -C 'message' -U userName%password -I xxx.yyy.zzz.tt1
delay
net rpc shutdown -f -t 0 -C 'message' -U userName%password -I xxx.yyy.zzz.tt2
delay (ping until xxx.yyy.zzz.tt1 & xxx.yyy.zzz.tt2 no reply)
unraid shutdown
thanks for help.
🙂