in reply to Reboot: System call

How can I get the command prompt back and control back to the perl script?

What's wrong with using close?

# ... $t->cmd('reboot'); $t->close();

Update: D'oh! You're saying that your script hangs on cmd... The first time I read it I thought you were trying to connect immediately after the cmd.

Replies are listed 'Best First'.
Re^2: Reboot: System call
by PerlMe (Novice) on Jul 24, 2007 at 22:18 UTC
    I finally got it working. Thanks guys for your inputs
    $t->cmd('reboot&');
    '&' would do the trip. This would return the prompt back. I can then run a sleep and then reconnect to the system again. In this case I can't use init6 as I am restarting a target system.