Re: Somewhat off topic

From: Chafik,Basim (basim.chafik_at_PLX.COM)
Date: 11/03/04

  • Next message: Miller, Dave (I.S.): ""dog" process"
    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.


  • Next message: Miller, Dave (I.S.): ""dog" process"

    Relevant Pages

    • Re: Somewhat off topic
      ... supply an infinite number of yes's. ... it can then answer the prompt for you and you can ... Because this public key is not certified with a trusted ... Are you sure you want to use this public key (y/N)? ...
      (AIX-L)
    • Re: Somewhat off topic
      ... I've used "expect" to automate processes in the past. ... you can use expect to automate answering prompts like this. ... it can then answer the prompt for you and you can ... Because this public key is not certified with a trusted ...
      (AIX-L)
    • Re: Ssh missing login as prompt
      ... Ssh missing 'login as' prompt ... >> Remove the client machine's public key from the server's ... > more secure to get a login as: prompt and then a password prompt as ...
      (freebsd-questions)
    • Re: How do I make use of SSH_ASKPASS?
      ... I thought the prompt was only supposed to occur when I login to GNOME. ... SSH_ASKPASS is merely the name of the program that the ssh tools ... keys, not passwords, so if you don't have public key authorization ... You can load public keys into ssh-agent using ssh-add, ...
      (Fedora)