Running a script on remote server kills my login session
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 this command in background but prefer to use 'at' job.
Also tried enclosing the command with ( ) but it gives syntax error,
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)
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)
Hello people,
I am want to run a server on remote machine through perl scripting using telnet api. Now when I try to do so, the server gets started perfectly, but as soon as I close the telnet connection in the script, the server started on the remote machine suddenly goes down. I also... (0 Replies)
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)
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)
Hi,
I want to execute shell script with in sftp session for remote server.
like i have a shell script test.sh that is on local server.i want to execute that script on remote server
sftp user@192.168.56.10
sftp> test.sh ---execute for remote server not for local server.
sftp... (3 Replies)
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)
Greetings, guys. I'm not much of a programmer forgive me for being a noob, because of someone leaving, I was put in an IT spot where I have to figure out a few things. Being new to Linux and programming has been a challenge.
My boss has asked me to create an automated script to connect to a 3rd... (7 Replies)
Hi all,
I am baffled on this. Solaris Irix system.:confused:
I have 4 servers all connected to one another, :b: I need to write a script line that would login on to server 1-3 ($HOST) start a script in the back ground and log off while the back ground script runs over a length of time.:eek:
... (10 Replies)
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
LEARN ABOUT OPENSOLARIS
dtappsession
dtappsession(1) User Commands dtappsession(1)NAME
dtappsession - start a new Application Manager session
SYNOPSIS
/usr/dt/bin/dtappsession [hostname]
DESCRIPTION
dtappsession is a specialized version of the Xsession shell script. It is an alternative to using the CDE remote login that allows you to
access a remote host without logging out of your current CDE session. dtappsession starts a new instance of the CDE Application Manager in
its own ToolTalkTM session. It can be used to remotely display the Application Manager back to your local display after logging in to a
remote host with the rlogin(1) command.
A new, independent instance of ttsession(1) starts a simple session management window. This window displays the title
remote_hostname: Remote Administration
where remote_hostname is the system that is being accessed. The window also displays an Exit button. Clicking Exit terminates the ToolTalk
session and all windows that are part of the session.
The Application Manager that is displayed can be used to start remote CDE actions to run in this session. Exiting the Application Manager
does not terminate the session, and it is not recommended. Clicking Exit is the recommended way to end the session. To avoid confusing the
remote CDE applications with local ones, it is recommended that a new CDE workspace be created for clients in the remote session.
The hostname is not needed when the DISPLAY environment variable is set to the local hostname on the remote host.
On a system that is configured with Trusted Extensions, dtappsession can be used for remote administration by administrative roles that
have the ability to log in to the remote host.
dtappsession does not require any privilege, and it does not need to run on a system that is configured with Trusted Extensions. When
installed in /usr/dt/bin on a Solaris system, along with the startApp.ds file, dtappsession can be used to administer the remote Solaris
system from a local system that is configured with Trusted Extensions. However, in this case, the CDE workspace that is used for remote
display must be a normal workspace, rather than a role workspace.
EXAMPLES
Example 1 Remote Login and dtappsession
After creating a new CDE workspace, type the following in a terminal window:
# rlogin remote_hostname
password: /*type the remote password*/
# dtappsession local_hostname /* on the remote host */
FILES
/usr/dt/bin/startApp.ds dt Korn shell script for session manager window
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWdttsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
BUGS
X11/CDE applications that do not register with the ToolTalk session manager will not exit automatically when the session is terminated.
Such applications must be explicitly terminated.
SEE ALSO dtfile(1), rlogin(1), ttsession(1), attributes(5)
Chapter 14, Remote Administration in Trusted Extensions (Tasks), in Solaris Trusted Extensions Administrator's Procedures
NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
SunOS 5.11 15 Aug 2005 dtappsession(1)