Is there a way to have the user input the password and have the script complete?
Wishful results:
Code:
# /home/test/testscript.ksh
username@12.5.5.3's password: USER INPUTS PASSWORD HERE
[username@remoteserver ~]$ cd bin
[username@remoteserver bin]$ pwd
/home/user/bin
[username@remoteserver bin]$ exit
# RETURNS TO ORIGINAL SERVER
Last edited by vbe; 11-15-2014 at 09:53 AM..
Reason: corrected code tag position
mac 10.4>terminal>linux remote server>ssh login accepted>session closed-why?
AHHHH!!
I have been connecting to the server with the line: ssh userid@website.com
The remote server accepts my password; logs me in with ssh; posts a lovely welcome message AND closes the session. Is this a "term... (0 Replies)
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
I have a script that I'm trying to use that will check for files on a remote machine and if there is files copy the files, modify the perm on the copied files, and then delete the files off of the remote server. Right now I need to get the correct syntax so the the remote commands still interpret... (4 Replies)
So I have a script which performs some basic commands on another server via ssh. It works great, no issues at all. Let's call this "Script A"
BUT, this working script is to be executed remotely from a different UNIX script on another server, also by ssh. Let's call this "Script B".
When... (1 Reply)
I'm working on a script (mostly for practice) to simplify a task I have to do every now and then. I have a cluster with 6 servers on it, each server has a directory with a set of files called *.pid and *.mpid. Each file contains the pid of a process that may or may not be running on that server.... (3 Replies)
I have some commands which need to be executed in remote machine.
I have Linux Server from where I need to connect to Solaris server using ssh and then declare some variable over there and run some commands. I don't want to call a script which is present in Solaris server from Linux server... (7 Replies)
so i want to monitor a variety of things on hundreds of servers. the old process was to have an agent running on each one of these servers.
but now i'm looking to see if its possible to have agentless monitoring. the only other straight forward option other than having an agent on the hosts, is... (2 Replies)
ssh XXXXX@XXXXX'. $HOME/.profile 2>/dev/null;cd $COMMON_TOP/admin/scripts/$CONTEXT_NAME; adcmctl.sh start "apps${AppsPass}" || cd $ADMIN_SCRIPTS_HOME; adcmctl.sh start "apps${AppsPass}"'
As per our business requirement we should be able to execute the above two commands seprated with or ( || )... (4 Replies)
Hi,
I need to run a script located in a directory on remote server by using ssh authentication from my local unix server. Can anyone help me in this.
I have tried the below command. It worked for echo command but when i tried to open a file using cat command it is showing "cat: cannot open... (6 Replies)
Hi,
I am trying to run commands on a list of servers that I can ssh to and just want to know if there is a 'cleaner' way of doing this.
At the moment, I am doing as below. Is there a way that I can escape the double quote differently? If a use a single quote to enclose the commands that I... (1 Reply)
Discussion started by: newbie_01
1 Replies
LEARN ABOUT DEBIAN
roundup-mailgw
ROUNDUP-MAILGW(1) General Commands Manual ROUNDUP-MAILGW(1)NAME
roundup-mailgw - mail gateway for roundup
SYNOPSIS
roundup-mailgw instance_home [method]
OPTIONS -v Print version and exit.
-C hyperdb class
specify a tracker class - one of msg (the default), issue, file, user - to manipulate with -S options
-S property=value[;property=value] pairs
specify the values to set on the class specified by -C using the same format as the Subject line property manipulations
DESCRIPTION
The roundup mail gateway may be called in one of three ways:
o with an instance home as the only argument,
o with both an instance home and a mail spool file, or
o with both an instance home and a pop server account.
PIPE
In the first case, the mail gateway reads a single message from the standard input and submits the message to the roundup.mailgw module.
UNIX mailbox
In the second case, the gateway reads all messages from the mail spool file and submits each in turn to the roundup.mailgw module. The file
is emptied once all messages have been successfully handled. The file is specified as:
mailbox /path/to/mailbox
In all of the following the username and password can be stored in a ~/.netrc file. In this case only the server name need be specified on
the command-line.
The username and/or password will be prompted for if not supplied on the command-line or in ~/.netrc.
POP
In the third case, the gateway reads all messages from the POP server specified and submits each in turn to the roundup.mailgw module. The
server is specified as:
pop username:password@server
The username and password may be omitted:
pop username@server
pop server
are both valid. The username and/or password will be prompted for if not supplied on the command-line.
APOP
Same as POP, but using Authenticated POP:
apop username:password@server
IMAP
Connect to an IMAP server. This supports the same notation as that of POP mail.
imap username:password@server
It also allows you to specify a specific mailbox other than INBOX using this format:
imap username:password@server mailbox
IMAPS
Connect to an IMAP server over ssl. This supports the same notation as IMAP.
imaps username:password@server [mailbox]
AUTHOR
This manpage was written by Bastian Kleineidam <calvin@debian.org> for the Debian distribution of roundup.
The main author of roundup is Richard Jones <richard@users.sourceforge.net>.
24 January 2003 ROUNDUP-MAILGW(1)