[Date Prev] [Date Index] [Date Next] [Thread Prev] [Thread Index] [Thread Next]

Re: To ask a familiar question: auto-login of console connections

Bryan Stansell bryan@conserver.com
Sun, 18 Nov 2007 13:03:22 -0800 (PST)


On Sun, Nov 18, 2007 at 12:20:35PM -0500, Chris Ross wrote:
> configured to request a username and password log in.  I know that I  
> could use initcmd with an expect script, or the like, to do this.   
> But, I can't tell from the documentation what happens *after* the  
> initcmd runs.  Is it possible to run the initcmd, then drop back to  
> having conserver manage the connection directly?  I'm assuming not,  
> because I would have to "share" the fd's with the initcmd to be able  
> to reuse them when the command exited.

that's exactly what will happen if you add the initcmd stuff to your
console definition (or what it inherits).  it works for all types of
consoles.  conserver will make the initial tcp connection, then fork off
the initcmd (pointing it's stdin/stdout to that file descriptor) and then
continue to do it's normal stuff when it exists.

Bryan