I real dont want to use expect because of portability issues.
No offense...but I realy dont undersatnd your example...I see what you are doing...but what are you trying to say?
for now I am using this line:
but that only gets me around the gpg issue, but not the core of the question -> how to pass strings to a running peece of code?!
further question:
how do I put a file (its content whether text or binary) into a shell variable?
This right here is not working:
hi, i have a lot of su in my script. and it keeps asking for a password every single time. how can i pass the password to su command? any setup i need to do?
i used a redirect, not working.
su -username - c "command" < "password"
thanks for any help! (5 Replies)
ftp -i -n <<HERE
open $IPADD
user $USRNAME $PASS
cd /
get $FNAME
close
quit
HERE
Hi all the above script i used for ftp. How to modify same for sftp?
thanks in advance (10 Replies)
I have created a shell script to telnet remote machine. Here is the problem I am not able to pass the login username and password to the telnet session. I have searched forum and got few other methods to achieve this. But I need to know what's wrong in the below script.
username="root"... (2 Replies)
I have several clients (over 120) connected to my server. I want to push some patch to all the client using a script which copies the file from the server to a specific path on the client and then installs it.
But for installation of the patch, it needs to be done thorough root login on client.... (7 Replies)
Hi Everybody,
I am trying to write a script (ksh) to connect to oracle db via sqlplus.
As I do not want the password to be in plain text, I've tried to use java to encrypt and decrypt it but I am not sure how can I pass the decrypted password to the script. Pls advise.
Below is what I would... (1 Reply)
Dear all
Does anybody know how to pass the password as input parameter to scp or rsync in unix scripts?
I have tried echo <password> | scp filename username@<ip address>:/filepath/ .
But it does not work.
BTW, I dont want to setup ssh trust between servers in this adhoc task.
Regards,... (2 Replies)
Hi all,
I have a simple script to check the CPU, Swap Memory and Hard Disk. But I can auto assign password in the script to automatic run it in crontab.
Everytime when I run this script, it require to insert password like the message below :
How can I solve this problem ? (2 Replies)
Hello,
I am using below command but this is asking for tty
c42dba {/home/oracle}: echo sersnp | su -c ggs
standard in must be a tty
Best regards,
Vishal (4 Replies)
Hello,
I have list of around 400 devices. I need to restart a service /etc/init.d/psap23.sh in all of them, but it should restart by root only.
Those have some other kind of light Linux. There is no sudo package in that and we can't/shouldn't install. Direct root login is not allowed. I login... (5 Replies)
Using below below command i'm able to connect or authenticate server, In below command password contains special characters
sshpass -v -p 'ASJBA%hs76)#' ssh -q -o ConnectTimeout=5 hostname
But If I pass password as a variable I'm not able to connect or authenticate server, can you please help... (1 Reply)
Discussion started by: sam@sam
1 Replies
LEARN ABOUT DEBIAN
gpg-mailkeys
GPG-MAILKEYS(1) General Commands Manual GPG-MAILKEYS(1)NAME
gpg-mailkeys - sends emails containing keys to their owners
SYNOPSIS
gpg-mailkeys id...
DESCRIPTION
gpg-mailkeys sends the owners of the keys listed on the command line a mail each, containing their public key. After signing, you can use
this tool to send everyone the new signatures they just got.
If you're interested in encrypting the signature before it's sent, in order to verify that the associated address actually belongs to the
key owner, you should check out caff
OPTIONS
None
ENVIRONMENT
NAME Set the name to use when sending messages
EMAIL Set the email address to use when sending messages
SUBJECT Set the subject of the messages you send
TEXT Set the body text of the messages
SENDMAIL_ARGS
Set arguments to pass to /usr/sbin/sendmail. This can be useful to set credentials in order to authenticate to an smtp server
when using ssmtp for example.
FILES
The behavior of gpg-mailkeys can be updated through some files available in the user home directory.
Thus, ~/.gpg-mailkeysrc allows the user to overwrite the default value for the above environment variables, and any text in ~/.signature
will be appended to the end of the body text of the message.
SEE ALSO gpg(1),caff(1)AUTHOR
This manual page was written by Simon Richter <sjr@debian.org>.
Nov 23, 2010 GPG-MAILKEYS(1)