Runtime input

Hi all..

I have a command for example /abc/def/ghi.jkl Filename filename1.

If I run this command, it will ask for y/N which I have to type manually.

Now Im trying to automate it using shell script and input the y option.

Please help me on doing this.

Thanks in advance.
Sathya V.

Have you tried just using man echo (linux)? e.g. echo y | yourscript.sh . Or man yes (linux).

I have some other lines in the shell script. One of the line will be the command I have given below.

Hi,
You can inspire you to this idea
Regards.

Thanks a lot CarloM..That didnt work :frowning:

Your option will also not work in my case disedorgue.

Let me explain it again..

I have a script which will zip a xml file and encrypt the file using PGP encryption. While encrypting, it is asking me to type a y/N to proceed. In this case I have to input a y manually and enter to continue.

However I need a way to pass the y automatically and continue. Please help me with this.

Hi,
If you use pgp command, you can configure certainly in config.txt of your environment.
Regards.

Thanks a lot disedorgue,..Can you please elaborate on how to do that?

Like where the config file will be ?

You can find these differents informations in pgp manual:
man pgp or here (online manual)
Regards.