Input password to bash script, save, and enter when needed
I am looking for a way to start a script and have it prompt for a password that will be used later on in the script to SSH to another host and to SFTP. I don't want the password to be hard coded. Below is my script with the actual IP's and usernames removed.
I'm working on making a menu system on an HP-UX box with Bash on it. The old menu system presents the users with a standard text menu with numbers to make selections. I'm re-working the system and I would like to provide something more akin to iterative search in Emacs.
I have a list of 28... (2 Replies)
Hi Friends,
We need to create a script which will invoke a command with diffrent parameters.
The command invoked needs the password. So how automatically we can enter password in the script to the command?
example.:
#!/bin/ksh
for par in `cat parfile` do
# Here is the main command... (1 Reply)
I'm using rsync with the "-e ssh" option so of course it asks for a password using a prompt. Is there a way to tell a script to expect a prompt, wait for it, and give a password when it arrives?
There is a way to give rsync a password as part of its options using a file, but it only works with... (2 Replies)
Hi,
I'm porting an install script from AIX to Red Hat (2.6.18-164.el5 #1 SMP)
I have this script working in both AIX and HP-UX.
The script is a wrapper for a Micro Focus Server Express install program. It responds to the install program questions with a here-now list. Responses includes... (14 Replies)
I need to retrieve thousands of lines of information from hundreds of nodes. Each node requires a passowrd in order to retrieve the information. Fortunately, the password is the same for each one of them. So I am trying to come up with a script that would allow me to include the password so I can... (0 Replies)
Hi
I have a file like so:
Code:
Frank Peter Tony Robert Mike 1 2 3 4 5 5 4 2 3 1 4 3 1 5 2
My out should look like this:
Peter
Tony
Mike
and so on....
I have the first part done to ask the user to... (8 Replies)
HI
i have written a script to ask input from the user.
this script should promote the user for y/n input. if user enters anyother input then y/n
the script promotes him again. this below code is working fine for all the cases.
except for space and enter " if i give space and enter it is... (2 Replies)
have three big data file, however I just need to see the mentioned below one line form the all the file which has SERVER_CONNECTION Value
File 1
export SERVER_CONNECTION=//dvlna002:10001/SmartServer
File2
export SERVER_CONNECTION=///SmartServer
File3
export... (1 Reply)
I want to give my long scripts to customer. The customer must not be able to read the scripts even if he has the password. The following command locks and unlocks the script but the set +x is simply ignored.
The code:
read -p 'Script: ' S && C=$S.crypt H='eval "$((dd if=$0 bs=1 skip=//|gpg... (7 Replies)
Hi
I'm working with AIX 6.1
I would like to ssh to a server without entering password ( to monitor something) but there's no way to do that by authentication keys, so I need to write a script which can ssh to that server without entering password ( no need to hide passsword in the script, just an... (9 Replies)
Discussion started by: bobochacha29
9 Replies
LEARN ABOUT OSX
qmail-control
qmail-control(5) File Formats Manual qmail-control(5)NAME
qmail-control - qmail configuration files
INTRODUCTION
You can change the behavior of the qmail system by modifying qmail's control files in /var/lib/qmail/control.
qmail can survive with just one control file, me, containing the fully-qualified name of the current host. This file is used as the
default for other hostname-related control files.
Comments are allowed in badmailfrom, locals, percenthack, qmqpservers, rcpthosts, smtproutes, and virtualdomains. Trailing spaces and tabs
are allowed in any control file.
The following table lists all control files other than me. See the corresponding man pages for further details.
control default used by
badmailfrom (none) qmail-smtpd
bouncefrom MAILER-DAEMON qmail-send
bouncehost me qmail-send
concurrencylocal 10 qmail-send
concurrencyremote 20 qmail-send
defaultdomain me qmail-inject
defaulthost me qmail-inject
databytes 0 qmail-smtpd
doublebouncehost me qmail-send
doublebounceto postmaster qmail-send
envnoathost me qmail-send
helohost me qmail-remote
idhost me qmail-inject
localiphost me qmail-smtpd
locals me qmail-send
morercpthosts (none) qmail-smtpd
percenthack (none) qmail-send
plusdomain me qmail-inject
qmqpservers (none) qmail-qmqpc
queuelifetime 604800 qmail-send
rcpthosts (none) qmail-smtpd
smtpgreeting me qmail-smtpd
smtproutes (none) qmail-remote
timeoutconnect 60 qmail-remote
timeoutremote 1200 qmail-remote
timeoutsmtpd 1200 qmail-smtpd
virtualdomains (none) qmail-send
SEE ALSO qmail-inject(8), qmail-qmqpc(8), qmail-remote(8), qmail-send(8), qmail-showctl(8), qmail-smtpd(8)qmail-control(5)