On 12.01.2014 09:20, Michael D. Setzer II wrote: > First, Thanks for the quick reply. I had done some additional testing, and it > appears that it actually was rebooting as I had thought. The log shows it > shuts down a bunch of things, but then just sits there, so the connection was > actually ending. Had a ping running to the machine in another window, and > saw it did go down. > > Now did the test with the following option. Was always connected with root > user. > > plink -t 192.168.7.202 -l root -pw ********* "sync ; systemctl reboot -i " > > The above did make the connection, and did actually cause a restart after > about 40 seconds as show from the ping window, and then the pings came > back after the reboot. Connecting to the machine, and checking uptime did > show the machine reboot, but the plink command was still running? It didn't > disconnect, so not clear on why that is? Would think a reboot would reset the > connection? > > Did a test using timelimit to cancel the job after 30 seconds, and that worked, > but would be hard to calculate the amount of time required with tasks other > than a reboot. Might be best to just do a separate script to reboot systems, > and run the update processes without the reboot. > > Again, Thanks. Didn't get the machines till Monday, so only had a week to > get it all up and running. PuTTY (Plink) specificum, http://tartarus.org/~simon/putty-snapshots/htmldoc/Chapter4.html#config-ssh-bug-winadj plink: Development snapshot 0.63 ~~ ~/.putty/sessions/raw-bug-winadj-auto HostName=raw UserName=poma PublicKeyFile=/home/poma/.putty/id_dsa.ppk BugWinadj=0 $ time plink -load raw-bug-winadj-auto Using username "poma". Last login: … $ systemctl reboot -i ==== AUTHENTICATING FOR org.freedesktop.login1.reboot === Authentication is required for rebooting the system. Authenticating as: poma Password: ==== AUTHENTICATION COMPLETE === $ FATAL ERROR: Server unexpectedly closed network connection ~~~~~~~~~~~~~~~~~ real 1m34.105s <<== :) ~~~~~~~~~~~~~~~~~ user 0m0.218s sys 0m0.040s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~/.putty/sessions/raw-bug-winadj-on HostName=raw UserName=poma PublicKeyFile=/home/poma/.putty/id_dsa.ppk BugWinadj=2 $ time plink -load raw-bug-winadj-on Using username "poma". Last login: … $ systemctl reboot -i ==== AUTHENTICATING FOR org.freedesktop.login1.reboot === Authentication is required for rebooting the system. Authenticating as: poma Password: ==== AUTHENTICATION COMPLETE === $ FATAL ERROR: Server unexpectedly closed network connection ~~~~~~~~~~~~~~~~~ real 1m33.939s <<== :) ~~~~~~~~~~~~~~~~~ user 0m0.229s sys 0m0.035s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~/.putty/sessions/raw-bug-winadj-off HostName=raw UserName=poma PublicKeyFile=/home/poma/.putty/id_dsa.ppk BugWinadj=1 $ time plink -load raw-bug-winadj-off Using username "poma". Last login: … $ systemctl reboot -i ==== AUTHENTICATING FOR org.freedesktop.login1.reboot === Authentication is required for rebooting the system. Authenticating as: poma Password: ==== AUTHENTICATION COMPLETE === $ FATAL ERROR: Server unexpectedly closed network connection ~~~~~~~~~~~~~~~~~ real 0m5.424s <<== ;) ~~~~~~~~~~~~~~~~~ user 0m0.225s sys 0m0.042s ~~ poma -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org