10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
I am on HP-UX.
Problem is that my remote script behaves different depending on execution method.
Method1 (Remote execution):
remsh remoteserver /home/myscript.sh
Method2 (Local execution):
remoteserver :/home#sh myscript.sh
In method 2, I can succesfully set timestamp with... (6 Replies)
Discussion started by: mrcrowley
6 Replies
2. Shell Programming and Scripting
hi all ,
i am using remsh utility from a host to another , i did create an .rhosts in it the name of the second server and the user to use in it , then i changed permission to 600 .. it is still asking for password and i am using this for no password between 2 trusted servers we got also this... (3 Replies)
Discussion started by: semaan
3 Replies
3. Shell Programming and Scripting
Hi,
In a file, I have to mark duplicate records as 'D' and the latest record alone as 'C'.
In the below file, I have to identify if duplicate records are there or not based on Man_ID, Man_DT, Ship_ID and I have to mark the record with latest Ship_DT as "C" and other as "D" (I have to create... (7 Replies)
Discussion started by: machomaddy
7 Replies
4. Shell Programming and Scripting
Hi All,
Im using remsh to execute shell script on remote server. And this script gets called from another AIX server.
My code is:
remsh $rHost -l $rUser -n "export JAVA_HOME=/usr/java6_64_SR7; export ORACLE_HOME=/oravl01/oracle/11.1.0.7;
export... (3 Replies)
Discussion started by: AB10
3 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I want to know all the options that are used for command remsh.
And also the prerequisites like entries in .rhosts file.
Can anybody share the link or document?
thanks. (1 Reply)
Discussion started by: AB10
1 Replies
6. HP-UX
Hi,
I can remsh from a HPUX to a UNIX however my function keys dont then work as they should !
Any suggestions ? - have tried creating .kshrc
Thanks (2 Replies)
Discussion started by: belfastbelle
2 Replies
7. HP-UX
Hi,
I am trying to remsh from a HPUX to another unix server
What is happening is I cant run commands on the other server
ie
I can
remsh <remoteserver> -l <remotelogin>
but I cant
remsh <remoteserver> -l <remotelogin> -n pwd
getting error message
rshd: 0826-826 The host name for... (3 Replies)
Discussion started by: belfastbelle
3 Replies
8. UNIX for Advanced & Expert Users
Hi All,
We have 2 unix boxes HP UX. From Box1 we need to run a script on Box2 using remsh. The job at Box2 exits with status 0 on successful completion & 1 if fails.
But even if the scrips fails (exits with return status 1) at Box2, the $? get the value 0.
script at Box2 : remote_script.sh... (2 Replies)
Discussion started by: sabyasm
2 Replies
9. UNIX for Dummies Questions & Answers
i m try to do remsh i need to know what are the step to define the user and password i try .rhosts it give me
operator:/export/home/operator>remsh billmed ps -ef
permission denied
just for testing (3 Replies)
Discussion started by: kazanoova2
3 Replies
10. UNIX for Dummies Questions & Answers
I'm trying to nohup a job that executes a remote shell on another host but it breaks as soon as I launch it, and I get the following back to my terminal.
+ Stopped (tty input) nohup remsh target_host -l user "ls /proj"
This is the command I'm running.
nohup remsh target_host -l user "ls... (2 Replies)
Discussion started by: tavaresd
2 Replies
XON(1) General Commands Manual XON(1)
NAME
xon - start an X program on a remote machine
SYNOPSIS
xon remote-host [-access] [-debug] [-name window-name] [-nols] [-screen screen-no] [-user user-name] [command ...]
DESCRIPTION
Xon runs the specified command (default xterm -ls) on the remote machine using rsh, remsh, or rcmd. Xon passes the DISPLAY, XAUTHORITY and
XUSERFILESEARCHPATH environment variables to the remote command.
When no command is specified, xon runs 'xterm -ls'. It additionally specifies the application name to be 'xterm-remote-host' and the win-
dow title to be '-fIremote-host'.
Xon can only work when the remote host will allow you to log in without a password, by having an entry in the .rhosts file permitting
access.
OPTIONS
Note that the options follow the remote host name (as they do with rlogin).
-access
Runs xhost locally to add the remote host to the host access list in the X server. This won't work unless xhost is given permission
to modify the access list.
-debug Normally, xon disconnects the remote process from stdin, stdout and stderr to eliminate the daemon processes which usually connect
them across the network. Specifying the -debug option leaves them connected so that error messages from the remote execution are
sent back to the originating host.
-name window-name
This specifies a different application name and window title for the default command (xterm).
-nols Normally xon passes the -ls option to the remote xterm; this option suspends that behaviour.
-screen screen-no
This changes the screen number of the DISPLAY variable passed to the remote command.
-user user-name
By default, xon simply uses rsh/remsh/rcmd to connect to the remote machine using the same user name as on the local machine. This
option cause xon to specify an alternative user name. This will not work unless you have authorization to access the remote
account, by placing an appropriate entry in the remote users .rhosts file.
BUGS
Xon can get easily confused when the remote-host, user-name or various environment variable values contain white space.
Xon has no way to send the appropriate X authorization information to the remote host.
X Version 11 Release 6.6 XON(1)