11-07-2013
You're not stuck - the session has issued its prompt, which you cannot see due to redirection, and is waiting for your (interactive) command(s).
And, be sure what you want: echoing the variable HOSTNAME (all uppercase) or running the command hostname (all lower)?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a script that connects to remote servers using a public key. Some of the servers are not set up for the public key and I receive the following when I attempt to ssh: The authenticity of host 'XXX' can't be established.
RSA key fingerprint is... (1 Reply)
Discussion started by: la_womn
1 Replies
2. Shell Programming and Scripting
i want to connect to a remote server through ssh.
i have to also provide password within that script.
after connecting to the remote server i want to do some operations like grep,cd etc
can u pls help me to wite a script.
Thanks (1 Reply)
Discussion started by: millan
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: DeCoTwc
3 Replies
4. Shell Programming and Scripting
HI Unix Gurus,
I an stuck in an interesting issue, where I am trying to execute a script on remote server after ssh.
The script on remote server is interactive,. Whenever it is called it hangs where it expects input from terminal and I have to terminate it.
I have searched through fourm... (12 Replies)
Discussion started by: Jeevanm
12 Replies
5. UNIX for Advanced & Expert Users
Hi,
I have two SunOs sparc servers mac1 and mac2.
I have exchanged keys between them inorder to passwordless login ssh from mac1 to mac2.
However, it is failing after authentication.
Part of the debug is as below. Please suggest whats wrong and how do i fix that!! Note: i do not have... (1 Reply)
Discussion started by: mohtashims
1 Replies
6. Shell Programming and Scripting
Team,
Presently I have 5 ip address kept in ip_abc1 file, for each of the ip address listed, i need to login on each ipaddress
one at a time and login as below for that specific ip address
ssh -p 8101 karaf@<ip.address_for the specific ip address as logged in>
password
features:list... (4 Replies)
Discussion started by: whizkidash
4 Replies
7. Ubuntu
Hello,
What I want to do is to run a file on remote server by running a script at localhost but script should not ask ssh password of my remote server when script is executed.
Scenario1:
To copy files from server2 to data server:$ scp -r root@server2_ip:/var/www/html/*.* /var/
When I enter... (6 Replies)
Discussion started by: baris35
6 Replies
8. Shell Programming and Scripting
I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies
9. UNIX for Beginners Questions & Answers
How to execute setDomainEnv.sh in wblogic via ssh on remote server in shell script
we execute setDomainEnv.sh manually as . ./setDomainEnv.sh from its location ie /opt/SP/users/domian/bin"
My approach is not working.
Please advise.
#!/bin/bash
set -x
base="/opt/SP/users/d1/bin"... (5 Replies)
Discussion started by: abhaydas
5 Replies
LEARN ABOUT REDHAT
backup_interactive
BACKUP_INTERACTIVE(8) AFS Command Reference BACKUP_INTERACTIVE(8)
NAME
backup_interactive - Enters interactive mode
SYNOPSIS
backup [interactive] [-localauth] [-cell <cell name>]
[-help]
backup [i] [-l] [-c <cell name>] [-h]
DESCRIPTION
The backup interactive initiates an interactive session for issuing backup commands. As indicated in the syntax statement, the operation
code (interactive) is optional.
Several features of interactive mode distinguish it from regular mode:
o In interactive mode, the "backup"> prompt replaces the system (shell) prompt. The operator enters only a command's operation code
(omitting the command suite name, backup).
o If the -localauth flag or the -cell argument is included on the backup interactive command, the settings apply to all commands issued
during that interactive session. The issuer does not need to type them on every command. Another consequence is that the flag and
argument do not appear in the syntax statement generated by the help subcommand or -help flag on an individual command issued at the
"backup"> prompt.
o The backup jobs and backup kill commands are available only in interactive mode. It is not possible to track and terminate backup
operations as cleanly in non-interactive mode.
o It is not necessary to enclose strings that include metacharacters in double quotes or other delimiters.
o The backup command interpreter establishes a connection to the Backup Server, Volume Server and Volume Location (VL) Server processes
as it enters interactive mode, and uses the same connection for all commands during the session. Execution time can therefore be faster
than in non-interactive mode, in which the command interpreter must establish a new connection for each command.
To exit an interactive session, issue the backup quit command.
OPTIONS
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The backup command interpreter presents it to
the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the -cell argument. For more
details, see backup(8).
-cell <cell name>
Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see backup(8).
-help
Prints the online help for this command. All other valid options are ignored.
EXAMPLES
The following example shows how the -localauth flag and -cell argument do not appear when the help dump subcommand is issued in interactive
mode.
% backup
backup> help dump
dump: start dump
Usage: dump [-volumeset <volume set name>] [-dump <dump level name>]
[-portoffset <TC port offset>] [-at <Date/time to start dump>+]
[-append ] [-n ] [-file <load file>] [-help ]
PRIVILEGE REQUIRED
None. However, backup commands that require privilege in regular mode still require it in interactive mode.
SEE ALSO
backup(8), backup_jobs(8), backup_kill(8), backup_quit(8), butc(8)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 BACKUP_INTERACTIVE(8)