Auto answer option in scripting.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Auto answer option in scripting.
# 1  
Old 11-08-2011
Auto answer option in scripting.

Hi masters,

How to get auto answer option in scripting. for example in my script i uses the gpg command , in that beginning it will ask

passpharse : ( in that i need to type my passpharase)

and once i typed it will ask

Use this key anyway? ( for that answer will be yes)

for this two questions i need to answer while running the script. how to do this possible, kindly guide me to solve this thread.
# 2  
Old 11-08-2011
Check the following gpg options:
Code:
--command-fd <FD>
--passphrase-fd <FD>

---------- Post updated at 16:27 ---------- Previous update was at 16:26 ----------

The links below too:
-----> stdout - Suppress GPG "Reading passphrase from file descriptor 0" message - Server Fault
-----> Decrypting Files Automatically | GnuPG | users
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies

2. OS X (Apple)

Copy files between partitions with "without auto-mount" option enabled - possible?

Hello, fellow Unixers and Macers, I'll run several OS X versions each on its own dedicated partition. Partitions won't be seeing each other (by editing fstab). Question: will I be able to copy files between those partitions? Partition #1: Mavericks. Partition #2: HighSierra (2 Replies)
Discussion started by: scrutinizerix
2 Replies

3. Solaris

Unrecognized option: sparc-sun-Solaris2.10/bin/as: unrecognized option `-m32'

Hi, I installed some packages required by an app built with python. But when I try python setup.py install, I get the following error: /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.2.0/../../../../sparc-sun-solaris2.10/bin/as: unrecognized option `-m32' Could anyone tell me what's wrong... (4 Replies)
Discussion started by: Kimkun
4 Replies

4. Shell Programming and Scripting

Request for file read option in Unix shell scripting

Hi Friends, I would like to read all the record from one txt file to other file txt For example I have two txt file a.txt and b.txt. I need to read a.txt record by record and I need add the system date @ end of each record before moving it to b.txt. Could you please share the coding for... (4 Replies)
Discussion started by: vinoth124
4 Replies

5. Shell Programming and Scripting

recently introduced to the newer option for find...does an older option exist?

To find all the files in your home directory that have been edited in some way since the last tar file, use this command: find . -newer backup.tar.gz Is anyone familiar with an older solution? looking to identify files older then 15mins across several directories. thanks, manny (2 Replies)
Discussion started by: mr_manny
2 Replies

6. Shell Programming and Scripting

Help for scripting sh / Add user auto

Hi, have to make a script that adds users and generates encrypted passwords. When I run the script I have this error message: ". / Autouser.sh: line 29: $ 1: ambiguous redirect" 1 #!/bin/sh 2 # 3 # Script de création auto d'utilisateur 4 5 if 6 then 7 8 ... (7 Replies)
Discussion started by: Helix_87
7 Replies

7. Shell Programming and Scripting

Auto Answer Commands

I'm trying to script out the following commands; newfs ufsdump ufsrestore All of these commands ask me to continue. ufsrestore asks set owner/mode for '.'? y Directories already exist, set modes anyway? y newfs asks newfs: construct a new file system... (6 Replies)
Discussion started by: adelsin
6 Replies

8. Shell Programming and Scripting

option followed by : taking next option if argument missing with getopts

Hi all, I am parsing command line options using getopts. The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument. Below is the script: while getopts :hd:t:s:l:p:f: opt do case "$opt" in -h|-\?)... (2 Replies)
Discussion started by: gurukottur
2 Replies

9. Solaris

Can anybody answer this.....

Hi i am trying the threads concept in unix environment using C... but i am getting error of "wait_fd: Couldn't find procinfo for fd 24"... what does this error mean..... help me in solving this issue... Thanks in advance shivamasam (3 Replies)
Discussion started by: shivamasam
3 Replies
Login or Register to Ask a Question