Sponsored Content
Top Forums Shell Programming and Scripting Sudo connect to a remote server and execute scripts in remote server Post 302978419 by RudiC on Saturday 30th of July 2016 05:44:31 AM
Old 07-30-2016
The way you issue the ssh command opens an interactive session on the remote host, waiting for your input on stdin. The rest of the script is executed only after you logged out from the host, and the log files should be created locally (unless their path doesn't exist).

ssh will execute the command (list) on its command line, or stdin if redirected to e.g. a "here document".
This User Gave Thanks to RudiC For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Remote Connect - SCO Open Server

Hello.. Please helppppppp...!!! I am using SCO Open Server version 5.0 at work. I am trying to find a third party software to use on my computer at home which has windows 98 on it to do remote connect to my work. Is there any such software ? I know there is PC ANYWHERE but i don't think it... (2 Replies)
Discussion started by: jackpotp
2 Replies

2. Windows & DOS: Issues & Discussions

Connect to a Remote Sybase Server Through Script.

Hi all, I am trying to connect to Remote Sybase database Server through shell script. I am operating on WindowsXP, connect to Unix(version SunOS: 5.8) The thing is i dont know how to connect to Sybase Server through my script file? Are there any manual pages which can guide me through the... (2 Replies)
Discussion started by: Aparna_k82
2 Replies

3. Shell Programming and Scripting

Connect to a Remote Sybase Server Through Script

Hi all, I am trying to connect to Remote Sybase database Server through shell script. I am operating on WindowsXP, connect to Unix(version SunOS: 5.8) The thing is i dont know how to connect to Sybase Server through my script file? Are there any manual pages which can guide me through the... (3 Replies)
Discussion started by: Aparna_k82
3 Replies

4. Shell Programming and Scripting

Script to connect to a remote server and execute scripts

Hello All I need a script or set of commands which can establish a remote connection with another server and execute some scripts over there. Basically it has to establish the connection with the remote server as an user ,say 'testuser' and then execute the script 'testscript'. and return the... (5 Replies)
Discussion started by: sgbhat
5 Replies

5. Shell Programming and Scripting

Execute scripts on remote server

Hi All, I need to first of all establish a connection to remote unix server non-interactively with the help of a shell script and then connect to oracle database from that server all with this script of mine. Please suggest the best method which could be used to connect to server for executing... (1 Reply)
Discussion started by: m_kapur83
1 Replies

6. UNIX for Dummies Questions & Answers

How do I connect to a remote X11 server ?

Hi, how do I connect to a remote x server? i tried this: startx -display 192.168.0.1:0 # when I do this, it just connects to my own x server i.e I see my own desktop. and export DISPLAY=192.168.0.1:0.0 # when I do this nothing happens. (it doesn't even try to connect, no activity in... (7 Replies)
Discussion started by: uxfuser
7 Replies

7. Red Hat

unable to connect remote server using ssh

hi all i am unable to connect remote server using ssh but i am able to ping the server ssh service is running. (5 Replies)
Discussion started by: nikhil kasar
5 Replies

8. Shell Programming and Scripting

Problem connect to a different server then do sudo login and finally run some scripts and get result

I have to write a shell script in my current linux server and I have to connect to a different server then do sudo login and finally run some scripts residing in a particular directory and get results back. I am starting to write my shell script as below but after I do ssh login it prompts for... (2 Replies)
Discussion started by: Devesh5683
2 Replies

9. AIX

Command to connect to remote AIX server

Hi All, Im looking for a command that can remotely connect to another AIX machine and execute scripts present in that server(Possible scenarios are a complete a restart of 3 servers in a cluster through a single script execution present in one of the servers). Im relatively new to AIX and... (5 Replies)
Discussion started by: Vishakh
5 Replies

10. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

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
ccr(8)							      System Manager's Manual							    ccr(8)

Name
       ccr - remote console carrier requester

Syntax
       ccr [ options ] node

Description
       The  command  establishes  a logical connection between your ULTRIX system and the console carrier server on a remote system.  enables your
       terminal to act as the console for a remote unattended system.  For example, your terminal can act as the console for  a  Digital  Ethernet
       Communications Server (DECSA) and its resident software.  The node is the name or address of the target node.  A node name consists of from
       one to six alphanumeric characters.  A node address consist of two decimal integers (n.n), where the first  indicates  the  network  number
       (1-63), and the second indicates the node address (1-1023).

       You  can  use  to  force  a  crash if a server node becomes unresponsive.  To determine how to force a crash, see the documentation for the
       respective server product.

       The requirements for using are as follows:

       o   The host node (that is, your local ULTRIX node) and the remote node must be on the same Ethernet.

       o   If your server product is a DECSA, the console carrier server image (plutocc.sys) and its loader file (plutowl.sys) must be located	in
	   on  your  ULTRIX node. The pluocc.sys and plutowl.sys files are not need, nor is any loading done for other servers.  For more details,
	   see the installation guide for the particular server product.

       <CTRL/D> exits from console carrier mode and terminates

Options
       -c   Uses the specified circuit to connect to the target node.

       -h   Uses the specified address (next argument) as the Ethernet address of the target node.

       -n   Uses the next argument as the target node ID.

       -p   Uses the specified service password (next arguments) in accessing the target node.

Examples
       # /etc/ccr -c qna-0 -n dallas <RET>
       ccr: Remote console reserved
	    .
	    .
	    .
       <CTRL/D>
       ccr: Remote console released
       #

Restrictions
       You must have superuser privileges to run

Diagnostics
       The command can return the following diagnostic messages:

       ccr: Remote console reserved
       The command has successfully connected to the remote console server and your terminal is now capable of acting as a console for the  remote
       node.

       ccr: Remote console released
       Your connection with the remote console server has been terminated and you are no longer in console carrier mode.

       ccr: Remote console already in use
       The remote console server that you are attempting to connect to is already reserved by another user.

       ccr: Permission denied
       You do not have the necessary privileges to run (You must be a superuser.)

       ccr: Hardware address required
       The  command  is unable to locate the hardware address of the remote node to which you are attempting to connect.  A remote node's hardware
       address must be defined either in the command line, or in its nodes database entry.  (Nodes database entries are defined with the command.)

       ccr: No node entry in database
       The command does not recognize the remote node to which you are attempting to connect, since the node-id that you specified is not  defined
       in the nodes database.  (Nodes database entries are defined with the command.)

Files
       Console carrier server image

       Console carrier server loader

See Also
       addnode(8), getnode(8), load(8), remnode(8), trigger(8)
       Guide to Local Transport Servers

																	    ccr(8)
All times are GMT -4. The time now is 06:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy