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

Re: 8.X config

Bryan Stansell bryan@conserver.com
Thu, 15 Jun 2006 19:59:10 -0700 (PDT)


On Thu, Jun 15, 2006 at 08:48:30PM -0400, Christopher Fowler wrote:
> I'm trying to add a console that is connected via a PERL script.  The
> perl script interfaces with a modem and dials a remote device.  So I do
> not want it to stay connected 24x7.  I only want it to run when a user
> is attached.  Any pointers?

console foo {
    options ondemand;
    type exec;
    exec your-command and options here;
    # 'execsubst' might be useful as well, if you want magic
    # to occur in the 'exec' line
}