Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to enter hardcoded password automatically Post 302434105 by abhi_n123 on Thursday 1st of July 2010 10:07:00 AM
Old 07-01-2010
thanks achenle.
methyl:
I am using the below command from a script from root cron:

/usr/PostgreSQL/8.3/bin/pg_dump -h <ip addr> -p 5432 -U postgres -F c -v -f '/apps/cmplus/backup/daily_backup/P4CMPlus_ZDC.backup' "P4CMPlus_ZDC"

then it prompts for password:
I am trying to use SSH for passwd specification as achenle mentioned. But i am able to work it out.. please let me know id tr are any ways to specify it.Smilie




---------- Post updated at 09:07 AM ---------- Previous update was at 09:03 AM ----------

or can we hard code the passwd and enter it when promted by remote server..?
 

10 More Discussions You Might Find Interesting

1. Solaris

Cant enter password

When i come to the login screen i will put root and no password, and it will say its incorrect, but even when i try to enter a password nothing comes up in the box (2 Replies)
Discussion started by: possuman72
2 Replies

2. Shell Programming and Scripting

Can i enter password with out user interaction

Can any body help me to write a scripting program for entering a password at run time with out user interaction. (1 Reply)
Discussion started by: kumar_d
1 Replies

3. Shell Programming and Scripting

How to enter a password in the script automatically when prompted?

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)
Discussion started by: sourabhsharma
1 Replies

4. Shell Programming and Scripting

enter password at prompt during a script?

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)
Discussion started by: davidstvz
2 Replies

5. Shell Programming and Scripting

Script to automatically enter a password

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)
Discussion started by: Ernst
0 Replies

6. UNIX for Dummies Questions & Answers

Terminate scp when user not enter the password.

Hi All, Is there any way to terminate scp command when the password was not entered for some specific amount of time. (1 Reply)
Discussion started by: Girish19
1 Replies

7. Shell Programming and Scripting

How to automatically enter password in a script?

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

8. Shell Programming and Scripting

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. #!/usr/bin/expect -f... (2 Replies)
Discussion started by: jbrass
2 Replies

9. Shell Programming and Scripting

Automatically enter input in command line

Hi, This is a script which to create an opvn user, I want which answer automatically to a certain part so, I try this, it works without the red part but I must type manually.. : #!/bin/bash ## Environnement ## LC_ALL=C ## Paths ## rsa_dir="etc/openvpn/easy-rsa"... (10 Replies)
Discussion started by: Arnaudh78
10 Replies

10. Shell Programming and Scripting

Script that automatically issue "yes" and press enter

Team, Got a thousand servers. I created a script to say hello on every server. But is there a script or whatever that will issue a yes on every key checking. for i in `cat myserverlist` do echo $i ssh-copy-id $i done The authenticity of host 'server1 (162.162.0.10)' can't be... (7 Replies)
Discussion started by: invinzin21
7 Replies
GFTP(1) 						      General Commands Manual							   GFTP(1)

NAME
gftp - a graphical ftp client SYNOPSIS
gftp [options] [[proto://][ user : [pass] @] site [: port ][/ directory ]] DESCRIPTION
gFTP is a multiprotocol file transfer program for X Windows and the console. It features support for the FTP, SSH, HTTP, and local file system protocols, simultaneous downloads, resuming of interrupted file transfers, file transfer queues, downloading of entire directores, ftp and http proxy support, remote directory caching, bookmarks menu, stop button and many more features OPTIONS
You may enter a url on the command line that gFTP will automatically connect to when it starts up. --help, -h Display program usage, and quit --version, -v This will display the current version of gFTP, and exit --download, -d This tells gFTP to download the files and directories specified in the url passed on the command line. user This is the username that you will login as to the remote site. If no username is supplied, the default is to login as anonymous. pass This is the password you will use to login to the remotesite. If you do not enter a password, then gFTP will ask you for one when it starts up. I do not recommend entering your password on the command prompt. Anyone that has access to your machine will be able to see your username and password with the ps(1) command. If you are logging in as anonymous, you do not need to pass a password since gFTP will automatically send your email address as your password. site This is the remote site you want to connect to port This is the port that the remote server is listening on. If you do not enter a port, it will default to using the ftp port listed in the services(5) file. If the entry doesn't exist there, it will default to port 21. directory This is the default directory to change to once you are connected to the remote server. FILES
~/.gftp/gftprc Per user configuration file. This file is commented very well, so that is why there isn't a manpage for it. Most of the options in here can be set inside gFTP itself. BUGS
If you find any bugs in gFTP, please report them directly to the author. AUTHOR
Brian Masney <masneyb@gftp.org> - http://www.gftp.org/ FEBURARY 2001 GFTP(1)
All times are GMT -4. The time now is 01:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy