Open GoogleCodeExporter opened 9 years ago
Try the -s flag to execute a command with sudo:
./sshpt.py -f hosts -s "reboot"
or
./sshpt.py -f hosts -s "/sbin/shutdown -r now"
Original comment by preston....@gmail.com
on 19 Oct 2011 at 4:59
Thank you. Its working.
Original comment by gary.car...@gmail.com
on 19 Oct 2011 at 6:38
Original issue reported on code.google.com by
gary.car...@gmail.com
on 8 Jul 2011 at 6:28