we have many ubuntu computers in our lan, i have created a script to run it remotely from my windows computer to a list of linux computers by using putty and the m parameter
the problem is that in the end of the script there is a reboot, so the windows of putty session wont disappear because linux computer reboots before the script is finished running my windows script over 100 linux computers will result of 100 open putty windows !
i tried "shutdown -r +1" instead of "reboot" but the result is the same
i am seeking a way to reboot linux computer, but this command must be executed and terminated without waiting for the countdown, the shutdown command persist after executing it, so the script won't terminate !
thanks
reboot -f now
orshutdown -r -f now
shutdown -r now
would be my option