Sponsored Content
Top Forums Shell Programming and Scripting Sudo connect to a remote server and execute scripts in remote server Post 302978423 by venky.b5 on Saturday 30th of July 2016 06:51:36 AM
Old 07-30-2016
Hi masubram,

1. uname command will give the OS name.it is to check connectivity, variable HNAME is not empty means its connected to remote server.

2.its not mandatory, you can specify any path.


Regard's
Venkat K
 

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
HWLOC-ASSEMBLER-REMOTE(1)					       hwloc						 HWLOC-ASSEMBLER-REMOTE(1)

NAME
hwloc-assembler-remote - Assemble multiple remote host topologies SYNOPSIS
hwloc-assembler-remote [options] output.xml host1 host2 ... OPTIONS
--ssh <ssh> Use the given ssh command (and options) to connect to remote hosts. --lstopo-path <path> Use the given path as the remote lstopo command when gathering remote topologies. By default, lstopo is taken from the PATH envi- ronment variable. --lstopo-opts <opts> Pass the given lstopo options when gathering remote topologies. --show Display the resulting topology before exit. -v --verbose Verbose messages. DESCRIPTION
hwloc-assembler-remote is a frontend to hwloc-assembler. It takes care of retrieving the remote nodes' topologies before assembling them with hwloc-assembler. EXAMPLES
To assemble three nodes topologies: $ hwloc-assembler-remote output.xml host1 host2 host3 To assemble the topology of a multi-process MPI job defined as a machinefile: $ hwloc-assembler-remote output.xml `cat machinefile | sort | uniq` RETURN VALUE
Upon successful execution, hwloc-assembler-remote returns 0. hwloc-assembler-remote will return nonzero if any kind of error occurs, such as (but not limited to) failure to parse the command line. SEE ALSO
hwloc(7), lstopo(1), hwloc-assembler(1) 1.4.1 Feb 27, 2012 HWLOC-ASSEMBLER-REMOTE(1)
All times are GMT -4. The time now is 06:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy