[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need "console switch" - any ideas?
On 21 Apr, Gregory Baker wrote:
>
> Not wanting to spend the $8K or so to buy the "officially supported"
> console management software, I took a look at both Purdue's console
> server and Doug Hughes' code.
>
> ftp://ftp.physics.purdue.edu/pub/pundits/README.html
> http://www.eng.auburn.edu/users/doug/console.html
>
> Both were interesting, both had major drawbacks. For Doug's it was
> the inability to have everything setup automatically during a reboot
> (/etc/init.d type script), for Purdue's I really wanted the
> file-transfer capabilities of tip(1) in case something goes
> drastically wrong and files need to be transferred over the serial
> cable. Hmmmm...
Actually, this is pretty easy to do with the Purdue console server
package; either scripting a cons session with expect, or even
a shell script to do this sort of thing is really easy, just
disconnect, cat a file into the session, and reconnect...
server$ console hostname
[connected to server]
client$ cat > file
[disconnect]
(cat file; echo "^Ec.") | console hostname
console hostname
[connected...]
^D
client $
.....
Although if you really want to add an escape to send a file where
it prompts you; it would probably be easy to add...