Mailing List Archive

invoking commands on console
Hello Conserver Users,

I am new user of conserver, its working great.
I want to know if there is any way the console
proram can be uses to actually invoke some commands
on the console and get the output back ?

If not the conserver's console program, is there
any other app out there which will allow me to
connect to a console, invoke the command and
return its output ?

Thanks
Chandra.
RE: invoking commands on console [ In reply to ]
Use expect
-----Original Message-----
From: Chandra Mukhyala
To: users@conserver.com
Sent: 3/21/01 9:41 PM
Subject: invoking commands on console


Hello Conserver Users,

I am new user of conserver, its working great.
I want to know if there is any way the console
proram can be uses to actually invoke some commands
on the console and get the output back ?

If not the conserver's console program, is there
any other app out there which will allow me to
connect to a console, invoke the command and
return its output ?

Thanks
Chandra.
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
Re: invoking commands on console [ In reply to ]
Hello,

Expect can be usefull if i have to do lot interactive jobs,
All i need to do is log onto console(through conservers console command)
invoke a command
and get its output back, Can this be done by conserver ?
None of the commands I want to invoked are interactive.

Also, another question, how do we configure conserver.cf file so it wont
ask for a passwd ?

I tried

user::<hostname>
user:x:<hostname>

the above didnt help



> Chris Fowler wrote:
>
>
> Use expect
> -----Original Message-----
> From: Chandra Mukhyala
> To: users@conserver.com
> Sent: 3/21/01 9:41 PM
> Subject: invoking commands on console
>
> Hello Conserver Users,
>
> I am new user of conserver, its working great.
> I want to know if there is any way the console
> proram can be uses to actually invoke some commands
> on the console and get the output back ?
>
> If not the conserver's console program, is there
> any other app out there which will allow me to
> connect to a console, invoke the command and
> return its output ?
>
> Thanks
> Chandra.
> _______________________________________________
> users mailing list
> users@conserver.com
> https://www.conserver.com/mailman/listinfo/users
RE: invoking commands on console [ In reply to ]
Actually,

Modify the conserver code so that if it can not find a password in the
password field, it does not prompt for password. Then redistribute the code
according to the licenses agreement.

Chris

-----Original Message-----
From: Chandra Mukhyala [mailto:chandra@netapp.com]
Sent: Thursday, March 29, 2001 7:34 PM
Cc: users@conserver.com
Subject: Re: invoking commands on console


Hello,

Expect can be usefull if i have to do lot interactive jobs,
All i need to do is log onto console(through conservers console command)
invoke a command
and get its output back, Can this be done by conserver ?
None of the commands I want to invoked are interactive.

Also, another question, how do we configure conserver.cf file so it wont
ask for a passwd ?

I tried

user::<hostname>
user:x:<hostname>

the above didnt help



> Chris Fowler wrote:
>
>
> Use expect
> -----Original Message-----
> From: Chandra Mukhyala
> To: users@conserver.com
> Sent: 3/21/01 9:41 PM
> Subject: invoking commands on console
>
> Hello Conserver Users,
>
> I am new user of conserver, its working great.
> I want to know if there is any way the console
> proram can be uses to actually invoke some commands
> on the console and get the output back ?
>
> If not the conserver's console program, is there
> any other app out there which will allow me to
> connect to a console, invoke the command and
> return its output ?
>
> Thanks
> Chandra.
> _______________________________________________
> users mailing list
> users@conserver.com
> https://www.conserver.com/mailman/listinfo/users
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
Re: invoking commands on console [ In reply to ]
>Hello,

>
> Expect can be usefull if i have to do lot interactive jobs,
>All i need to do is log onto console(through conservers console command)
>
>invoke a command
>and get its output back, Can this be done by conserver ?
>None of the commands I want to invoked are interactive.
>

You can always send the info via standard in, ala:
echo "username\npasswd\ncommands...." | console machine

I don't really recommend this but...

>Also, another question, how do we configure conserver.cf file so it wont
>ask for a passwd ?
>

at the end of your conserver.cf there shoudl be:
%%
#
# list of clients we allow
# {trusted|allowed|rejected} : machines
#

Just name the machine you are coming from as trusted and it won't require passwords for any user connecting from that host. So...

trusted: localhost console

Then conserver no long asks for passwords from users connecting from localhost or the machine named console
Of course you will still need to give a username and password to the login prompt on the machine whose console you are connecting to....


thanks,
Scott Matott sXe