[Tutor] Telnet and pexpect module
Lie Ryan
lie.1296 at gmail.com
Mon Dec 14 20:27:05 CET 2009
On 12/14/2009 11:51 PM, alex loutrbringa' wrote:
> Hi everybody,
>
> I hope i'm in the right place. I'm trying to automate an operation we
> usually do manually with some RS232(serial port)/ethernet MOXA switches.
> This operation reboots a linux debian device by sending a
> "magic-sysrq+b" command to the kernel if this device does not respond
> through SSH.
> To do that manually, we do :
For your circumstance, can you write to the special file instead?
#for Alt+SysRq+b (reBoot)
echo b > /proc/sysrq-trigger
and I've never used this, but you might be interested to see sysrqd
http://julien.danjou.info/sysrqd/
More information about the Tutor
mailing list