Re: Somewhat off topic
From: Chafik,Basim (basim.chafik_at_PLX.COM)
Date: 11/03/04
- Previous message: Andrew Townsend: "Re: Somewhat off topic"
- Maybe in reply to: Yard, John: "Somewhat off topic"
- Next in thread: Yard, John: "Re: Somewhat off topic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 3 Nov 2004 11:27:58 -0800 To: aix-l@Princeton.EDU
Try the standard UNIX command "/bin/yes". The yes command will by default
supply an infinite number of yes's. If you want only the letter "y" use "yes
y" and yes will supply an infinite number of y's
Try "yes y | script_name".
Basim Chafik
Senior Systems Analyst
IBM Certified Advanced Technical Expert (CATE)
1.800.688.4895
basim.chafik@plx.com
plexus (Division of BancTec)
-----Original Message-----
From: Andrew Townsend [mailto:Andrew.Townsend@BISYS.COM]
Sent: Wednesday, November 03, 2004 2:18 PM
To: aix-l@Princeton.EDU
Subject: Re: Somewhat off topic
I've used "expect" to automate processes in the past. it's been a while but
you can use expect to automate answering prompts like this. Basically you
tell expect to "expect" something like (y/N)?
When it sees this, it can then answer the prompt for you and you can
continue. You will have to install expect on the machine you want to answer
the prompts.
"Yard, John"
<jyard@AIS.UCLA.E To: aix-l@Princeton.EDU
DU> cc:
Sent by: IBM AIX Subject: Somewhat off topic
Discussion List
<aix-l@Princeton.
EDU>
11/03/2004 02:00
PM
Please respond to
IBM AIX
Discussion List
I have an AIX 5.1 ftp server using pgp.
When I attempt to encrypt a file before ftping it,
if the user is not signed I get a prompt from pgp
like this :
WARNING: Because this public key is not certified with a trusted
signature, it is not known with high confidence that this public key
actually belongs to: "Document Solutions <ds@p.com>".
Are you sure you want to use this public key (y/N)?
Answering this prompt with echo "y/n" or
some variation does not work.
I need to script and automate this,
and the user will not let me sign his key.
Does anyone have a solution to this scripting issue ?
Thanks,
John Yard
UCLA
This email is confidential and intended solely for the use of the
individual or entity to whom it is addressed. If you have received this
email in error please notify the system manager at mailadmin@bisys.com and
delete the email immediately.
- Previous message: Andrew Townsend: "Re: Somewhat off topic"
- Maybe in reply to: Yard, John: "Somewhat off topic"
- Next in thread: Yard, John: "Re: Somewhat off topic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|