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

Re: invoking commands on console

Scott Matott matots@htc.com
Mon, 2 Apr 2001 11:05:11 -0700 (PDT)


>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