Sudo connect to a remote server and execute scripts in remote server
Hello Every one!!
I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server.
Before this I am using a sudo command to change the user.
The place where I am stuck is, I am able to connect to the remote server but neither am able to change the directory path nor I am able to execute scripts which I need to.
Also the log files which I have given in the script are not being created nor the log is being captured in the files even if I create them manually.
Below is the prototype of the script which I have written:
Please suggest as where am I going wrong and what needs to be corrected.
Can't thank you all enough!!
Regards.
Moderator's Comments:
Please use code tags as required by forum rules!
Last edited by RudiC; 07-30-2016 at 06:30 AM..
Reason: Added code tags.
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
xine-remote
XINE-REMOTE(1) General Commands Manual XINE-REMOTE(1)NAME
xine-remote - a small tool to connect xine remote control server.
SYNOPSIS
xine-remote [options]
DESCRIPTION
This manual page documents briefly the xine-remote tool.
xine-remote can replace a raw telnet connection to a xine remote control server. It use the readline facilities (completion, vi/emacs
shortcuts, command history, etc...). By default, it try to connect the localhost, using the default port (see xine(1)).
OPTIONS
The program follow the usual GNU command line syntax, with long ioptions starting with two dashes (`-'). A summary of options are included
below.
-H, --host <hostname>
Try to connect <hostname>.
-P, --port <port>
Try to connect the host using <port>.
-c, --command <command>
Send <command> to server then quit. The command should be single quoted if it contain spaces or special characters.
-n, --noconnect
Do not initiate the connection on startup.
-v, --version
Display version.
-h, --help
Display options summary.
COMMANDS
Few commands are available, which are used to open or close a connection:
? Display available commands (the xine-remote ones + server ones when connection is established).
help <command>
Display the purpose of <command>, if that is omitted, display available commands.
syntax <command>
Display the usage of <command>.
version
Display version.
open <server[:port]>
Open connection to server. A port can be optionally specified, using colon (:) separator.
close Close connection.
quit Leaving xine-remote.
SEE ALSO xine(1).
AUTHOR
This manual page was written by Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> for the xine project.
The xine project 2002-04-16 XINE-REMOTE(1)