10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hi there,
I'm trying to run a script remotely on a server in a particular directory named after hostname which already exists, my login session gets killed as soon as I run the below command. Not sure what is wrong, is there a better way to do it ?
Note: I can also use nohup command to run... (14 Replies)
Discussion started by: mbak
14 Replies
3. Shell Programming and Scripting
Hi guys,
So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies
4. Shell Programming and Scripting
Hi All,
I need to run a ksh script on around 200 servers(consisting of AIX,LInux,HP-UX,Solaris). The script is there in the /tmp directory of all the servers. I want want to execute the script in background on the respective servers and then exit from there. I have written something like below:... (8 Replies)
Discussion started by: proactiveaditya
8 Replies
5. Shell Programming and Scripting
Hello,
I am running in to a problem running a perl script on a remote server.
I can run a simple script test.pl which contains just a print statment without issue by running
ssh root@1.2.3.4 perl test.pl
However, I have a more complex script that does not execute as expected. I think I... (3 Replies)
Discussion started by: colinireland
3 Replies
6. 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
7. Shell Programming and Scripting
Hi, I have googled for quite some time and couldn't able to get what exactly I am looking for.. My query is "how to stop a shell script which is running inside a remote server, using a script"??? can any one give some suggestions to sort this out. (1 Reply)
Discussion started by: mannepalli
1 Replies
8. Shell Programming and Scripting
I am trying to write a script that would let me run a command in a remote server using ssh.
scriptA: (dcm2nii is a command that only works on the other server)
dcm2nii a b c
scriptB: (I run this one on the current server)
ssh -X otherserver /home/abc/Desktop/scriptA
But when I do ... (2 Replies)
Discussion started by: ZeroGPX
2 Replies
9. Shell Programming and Scripting
Hi,
I am trying to write a script, which queries a db to get the names of processes, stores it in a file and then checks if that process is running on a remote server. However I am not getting it right, could anyone help me out.
#!/bin/sh
echo "select Address from Device where Cust =... (5 Replies)
Discussion started by: amitsayshii
5 Replies
10. Shell Programming and Scripting
I need to run a script on a remote server from my ksh script. The issue I'm having is that I need to logon to the remote server as a different user. (see the following)
logged on to server 1 as adsmgr
neet to log on to server 2 as odemgr run passwd_util.ksh
Thanks in advance. (1 Reply)
Discussion started by: whited05
1 Replies
telnetd(8) System Manager's Manual telnetd(8)
NAME
telnetd - The DARPA telnet protocol server
SYNOPSIS
telnetd [-debug [port]] [-D modifier ...]
FLAGS
Starts telnetd manually, rather than through inetd, on alternate TCP port number port (if specified). Prints out debugging information.
modifiers are: Prints information about negotiation of telnet options Same as options with additional processing information Displays the
data stream received by telnetd Displays data written to the pty Not yet implemented
DESCRIPTION
The telnetd daemon is a server that supports the DARPA (Defense Advanced Research Projects Agency) standard telnet virtual terminal proto-
col. telnetd is invoked by the Internet server (see inetd(8)) normally for requests to connect to the telnet port as indicated by the
/etc/services file (see services(4)). The -debug flag may be used, to start up telnetd manually. If started up this way, port may be
specified to run telnetd on an alternate TCP port number.
The -D options may be used for debugging purposes. This allows telnetd to print out debugging information to the connection, allowing the
user to see what telnetd is doing.
The telnetd daemon operates by allocating a pseudoterminal device (see pty(7)) for a client, then creating a login process that has the
slave side of the pseudoterminal as stdin, stdout, and stderr. telnetd manipulates the master side of the pseudo-terminal, implementing
the telnet protocol and passing characters between the remote client and the login process.
When a telnet session is started up, telnetd sends telnet options to the client side, indicating a willingness to do remote echo of charac-
ters, to suppress go ahead, to do remote flow control, and to receive terminal type information, terminal speed information, and window
size information from the remote client. If the remote client is willing, the remote terminal type is propagated in the environment of the
created login process. The pseudoterminal allocated to the client is configured to operate in cooked mode, and with XTABS and CRMOD
enabled (see tty(7)).
The telnetd daemon is willing to do: echo, binary, suppress go ahead, and timing mark. telnetd is willing to have the remote client do:
line mode, binary, terminal type, terminal speed, window size, toggle flow control, environment, X display location, and suppress go ahead.
The telnetd daemon never sends telnet go ahead commands.
Note that binary mode has no common interpretation except between similar operating systems (Unix compatible systems in this case).
Note also that the terminal type name received from the remote client is converted to lowercase.
The telnet command uses the default Type-of-Service value recommended by RFC1060, which is as follows: Low delay
You can configure this value by specifying it in the /etc/iptos file. For more information, see iptos(4).
By default, the telnetd daemon starts the login dialog using the login string specified in the message field of the /etc/gettydefs file.
If you want to use a customized banner, create an /etc/issue.net or /etc/issue file. The telnetd daemon reads the file that exists and
writes its contents over a new telnet connection prior to starting the login dialog. If both files exist, only the /etc/issue.net file is
used.
CAUTIONS
Some telnet commands are only partially implemented.
Because of bugs in the original 4.2BSD telnet(1), telnetd performs some dubious protocol exchanges to try to discover if the remote client
is, in fact, a 4.2BSD telnet(1).
FILES
Specifies the command path. Specifies the path name for the network issue identification file. Specifies the path name for the issue
identification file.
RELATED INFORMATION
Commands: telnet(1).
Files: iptos(4), issue(4), issue.net(4). delim off
telnetd(8)