Mailing List Archive

Script Exit/Reinitialization
All--

Apologies in advance if these have been asked-and-answered but with
Googling and experimenting I haven't been able to find a configuration
yet ...

has anyone done either of the following:

- pass or embed a console-exit -- "^Ec." -- through a forced ssh
command. Ie., running a forced script (menu) and an option is to exit
and thereby close the console. Like an expect line or something
similar?

- or is there a way to simply disable the reinitialization or limit it
to a single ondemand initialization?

Thanks!

Ben--
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
Re: Script Exit/Reinitialization [ In reply to ]
Hi,

On Wed, Sep 30, 2009 at 08:10:39AM -0400, Ben Batten wrote:
> - pass or embed a console-exit -- "^Ec." -- through a forced ssh
> command. Ie., running a forced script (menu) and an option is to exit
> and thereby close the console. Like an expect line or something
> similar?

not sure what you mean by "forced script (menu)", but for what it's worth
I've got two very simple expect scripts to up and down a console

> - or is there a way to simply disable the reinitialization or limit it
> to a single ondemand initialization?

sure is - check out the conserver.cf manpage

_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
Re: Script Exit/Reinitialization [ In reply to ]
> Hi,
>
>
>> - pass or embed a console-exit -- "^Ec." -- through a forced ssh
>> command. Ie., running a forced script (menu) and an option is to exit
>> and thereby close the console. Like an expect line or something
>> similar?
>
> not sure what you mean by "forced script (menu)", but for what it's worth
> I've got two very simple expect scripts to up and down a console

Forced commands are a feature of SSH, you can force a user to only run
a script or program at login. One can force a user to only run a
script/command or do other things and exit from the system when done.

>
>> - or is there a way to simply disable the reinitialization or limit it
>> to a single ondemand initialization?
>
>> sure is - check out the conserver.cf manpage

I've been up and down the manpage and I see some things that control
the initialization but nothing jumps out at me other than "autoreinit"
... I tried "!autoreinit" and that didn't work. I see the spin
configuration options, is that what you're talking about. It's not
clear to me how to configure it. I'll experiment but if anyone has
any tips or pointers for configuring those that would be great.

Again, thanks!
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
Re: Script Exit/Reinitialization [ In reply to ]
On Wed, Sep 30, 2009 at 04:24:17PM +0200, Ben Batten wrote:

> ... I tried "!autoreinit" and that didn't work. I see the spin

I use

default * {
options reinitoncc,!autoreinit;
}

and it works for me.

Andras
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users