Coda File System

Re: Specifing a password with clog all in one line.

From: Drew Bernat <abernat_at_zathras.net>
Date: Fri, 25 May 2001 10:04:39 -0500 (CDT)
This worked for me:

echo "passwd" | clog <username>

as the first line in my startup files.

Drew

On Fri, 25 May 2001, Dermot C Cassidy wrote:

> > >From what I can make out by the documentation in order for me to authenticate to my mounted co
> > da volume is to use clog "username" then enter the password on the next line. I was hoping to d
> > o a clog "username" password all in one line. This way I can store a copy of my log files in a
> > coda directory on bootup. Right now I have to boot the system up, authenticate with clog, & the
> > n start that particular program so it can write it's logs into the coda directory. Anybody have
> >  any ideas?
> >
> Hi Brett,
>
> Why not use the 'expect' program?  It's purpose is to enable
> you to deal with interactive programs non-interactively.  In
> the words of the man page:
>
> 'Expect is a program that "talks" to other interactive programs
> according to a script.'
>
> So you can write a script that expects the password prompt from
> clog and sends the password in response.  Your script would have
> pairs of lines like:
>
> 	expect "username:"
> 	send "brett\r"
> 	expect "password:"
> 	send "mypassword\r"
>
> The BSDs and Linux all have ports / packages.
>
> Regards,
>
> Dermot
>
> --
>   Dermot Cassidy, Systems Engineer, MSE A&O
>     Compaq ESC, Ballybrit Business Park, Galway, Ireland.
>       tel: +353-91-754678 / mailto:dermot.cassidy_at_compaq.com
>
>

-- 
Drew Bernat                                                __ ____
abernat_at_zathras.net                                         |  | |
http://www.zathras.net                                         | |
Received on 2001-05-25 11:05:18