It should be in machineB that you add the given line in .rhosts:
machineB... in machineA .rhosts
machineA.. in machineB .rhosts
To see if it works correctly I would just do a
and modify what is requested till it works before sending anything else...
hi all.
I have a small program on a debian server which i need to execute remotely from a windows machine using putty.
when i use putty to execute the program it starts running , but when i close the session the program stops running on the debian server as well.
Can anyone guide me how... (4 Replies)
Hi,
What is the best way to remotely execute a script?
Scenario:
1 Unix box creates a file and moves it to a 2nd unix box
2nd unix box must then move the file to a windows server
How can i execute the ftp script on the 2nd server, I need to schedule the command to automate it!?
I... (3 Replies)
Hi all,
Today I want to write a script to run the commands remotely.
If I run the command as follows:
ssh <user>@<ip> 'ls; pwd'
it works fine.
But when I want to use ssh to set view in clearcase, it will lose the response. as follows
ssh <user>@<ip> 'cleartool setview <view_name>; pwd'... (1 Reply)
how to execute shell script present in unix machine remotely from windows?
I having a shell script in my unix machine, need to execute the script remotely from my windows machine using Visual Basic or VBA macros.
Thanks In Advance.
--Suresh (1 Reply)
Hi All,
I have a typical problem where I have HP unix and want to connect to Solaris 5.10 box and run a shell. I tried with multiple forums but it does not help.
As per my analysis, there is no ssh in my machine and so i cant connect to solaris box,secondly ftp to the solaris server is not... (2 Replies)
Hello
Can some help with write part of perl script
I need something like this in perl
SSH="/bin/ssh -o BatchMode=yes -o"
USER="test"
SRV="server"
SCRIPT_TO_EXEC="/tmp/test.sh" -> shell script
OUT=/tmp/out.file
${SSH} -l ${USER} ${SRV} 'sudo /usr/bin/ksh -s' < ${SCRIPT_TO_EXEC} >> ${OUT}... (1 Reply)
Hello ,
I am trying to run a NetBackup command in remote server. Also this command can only be run by root so I am using sudo . Also I want the output of the command locally in a file.
The below command asked for password , ran successfully and showed Output on my local server screen
... (2 Replies)
Discussion started by: rahul2662
2 Replies
LEARN ABOUT HPUX
cmexec
cmexec(1m)cmexec(1m)NAME
cmexec - Execute process on a remote Serviceguard node.
SYNOPSIS
cmexec node_name [-o outfile] [-t timeout]
{[command] | [-k cmd_label]}
DESCRIPTION
cmexec will execute a process on a remote Serviceguard node and return any output or return value.
cmexec is limited in several ways. cmexec is best suited for situations where other remote execution facilities are not available. For a
more full featured tool for remote execution within a cluster, see cexec(1m) provided by Distributed Systems Administration Utilities.
To use this command, the local user must have the root access role on the remote node. For more information on Serviceguard access control
policies, see the manual, Managing Serviceguard.
The command will be executed in an environment which matches the local node. All environment variables defined locally will be available
on the remote node.
Output from stderr and stdout for the remote process will be combined and delivered in one transmission. This command should not be used
for interactive commands or commands which will return large quantities of output.
Input via stdin is not supported.
Killing the cmexec process does not stop the remote execution of the command. cmexec should not be used on any command which may hang
without specifying a timeout value.
Options And Arguments
cmexec supports the following arguments:
-o outfile
Write output to the specified file instead of stdout.
-t timeout
Kill the executed command if it does not exit within the specified timeout (in seconds)
node_name
Serviceguard node to execute command on.
command
Command to execute on remote node. May be quoted.
-k cmd_label
This option is only supported for applications provided by Hewlett-Packard.
RETURN VALUE
cmexec returns the exit value for the remote command or 1 if there was an error communicating with the Serviceguard node.
EXAMPLES
Execute an 'ls' in a remote directory.
cmexec node ls /tmp
AUTHOR
cmexec was developed by HP.
SEE ALSO rsh(1), ssh(1), cexec(1m), cmcp(1m), cmdo(1m), cmsync(1m), cmquerycl(1m), cmviewcl(1m)
Requires Optional Serviceguard Software cmexec(1m)