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

Re: message and exit

Jason White jdwhite@jdwhite.org
Wed, 8 Mar 2006 09:15:26 -0800 (PST)

On Wed, Mar 08, 2006 at 03:43PM +0000, gregtillman@comcast.net wrote:
>Is there any way to set up a console in conserver.cf such that consoling
>there simply displays a message, and then exits.  I've got the message
>display part, and i could leave it at that, but it's a little inelegant to
>have the users sit there at the 'console down' message-- it would be nice
>to just exit them back to the shell.
>fyi, the purpose here is so we don't have to remember those few machines
>that have a different method for accessing consoles (like on HMCs).  thanks
>for any help.

You could use the 'motd' option:

console foo {
        type exec;
        exec sleep 99999;
        motd "This device isn't accessed via conserver.";

> console foo
[Enter `^Ec?' for help]
[-- MOTD -- This device isn't accessed via conserver.]

There may be a better way to define a console that does nothing.  Also, you 
may wish to set a null value for logfile.


Jason White <jdwhite@jdwhite.org>       Jabber: jdwhite(jabber.org)
http://www.jdwhite.org/~jdwhite                 jason.d.white(gmail.com)
PGP KeyID: 0x5290E477