or you could ssh like this:
e.g.
If you want to run this without providing a password you will need to generate keys on the clients and install them into the ~/.ssh/authorized_keys file at the remote machine end, see: How to set up ssh so you aren't asked for a password
Hi all,
i am copying .gz files from production server to development server using
"scp" command.my requirement is after copying .gz files i want to delete old
.gz files(two days back) in development server from production server.
like this way i need to delelte .log ,.z and .dmp files... (3 Replies)
Gurus/Experts
We have a centralized UNIX/Solaris server from where we can actually ssh to all other UNIX/Solaris servers...I need to write a script that reside on this centerlized server and do FileSystem monitoring (basically run df -h or -k) of other remote servers and then send an email to me... (6 Replies)
I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1.
When I do a who -m from A2, I see the "connected from" as "A1".
=> who -m
userid pts/2 2010-03-27 08:47 (A1)
I want to identify who is the local host who initiated the connection to... (3 Replies)
Hi,
I wish to run a script located on a remote host machineB from machineA.
I am using ssh and running the below on machineA.
However, the ssh does not seem to work and freezes at
ssh -l wlsadmin machineB -v
Sun_SSH_1.1.2, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
debug1: Reading... (9 Replies)
Hi All,
Noticed few posts around this but coudnt get exatcly what i wanted. Thanks for your help again.
I have a script running on a remote machine and i normally ssh from putty and run the script manually.
Is there anyway that i can write an HTML Code with a button so taht when I Click... (1 Reply)
Hi,
Given addresses of 2 remote machines, using a shell script is it possible to
get the state of running processes in "src"
stop all the processes in "src"
exit out of "src"
ssh into "dest"
resume the state of executing processes captured in step 1 in "dest"
Assumption:
"src" is... (3 Replies)
Hi friends,
I have two servers. Server A and B.
I want to run one script on server A by logging in to server B.
Can anyone provide me code for this.? I tried it by using following
ssh username@serverA ./script
Then it prompt me the password. I give correct password of the server A. but it... (7 Replies)
I have below command to check for error logs from last 24 hours from the file : /var/log/messages/ The command is working fine on the local host.
sudo awk -F - -vDT="$(date --date="24 hours ago" "+%b %_d %H:%M:%S")" ' DT < $1' /var/log/messages | egrep -i "error|fail"
I want to run the... (8 Replies)
The script works and creates a modified iso fine until I added the chrootbeg and chrootend functions and executed them. I'm sorry if I did something wrong this is my first post. I uploaded entire bash script for reference or in case you want to run it to debug it is called isoremast.txt.
... (5 Replies)
Discussion started by: paulhoffusa
5 Replies
LEARN ABOUT HPUX
on
on(1) General Commands Manual on(1)NAME
on - execute command on remote host with environment similar to local
SYNOPSIS
| host [command [argument] ... ]
DESCRIPTION
executes a command on a remote host, using an environment similar to that of the invoking user where:
host specifies the name of the host on which to execute the command.
command specifies the command to execute on host
If command is not specified, starts a shell on host. argument ... is a list of arguments for command.
The user's environment variables are copied to the remote host, and the file system containing the user's current working directory is NFS
mounted on the remote host (see nfs(7)). The command is executed on the remote host in the user's current working directory.
Commands using relative path names that reference file system objects within the user's current working file system have the same behavior
as running the command on the client. The behavior of commands using relative path names that cross the file system boundary or commands
using absolute path names depends on the organization of the remote host's file system.
Implicit and explicit use of environment variables may also cause a command's behavior to be dependent on the organization of the remote
host's file system. For example, the environment variable usually contains absolute path names.
Standard input, output and error of the remote command are connected to the appropriate file descriptors on the client.
The remote execution daemon does not allow to execute a remote command.
The signals and are propagated to the remote command. and are ignored by the remote command. All other signals are delivered to the com-
mand.
In order to execute a remote command, the remote host must be configured to execute (see rexd(1M)).
Options
recognizes the following options:
Interactive mode.
This option is required for commands that must communicate with a terminal such as or Terminal mode changes are propagated
to the server. The standard input for an interactive command must be a tty device. The and options are mutually exclusive.
Debug mode.
Print diagnostic messages during startup of the command. These messages are useful for detecting configuration problems if
the command to a specific host is failing.
No input mode.
This option causes the remote command to get end-of-file (EOF) when it reads from standard input, instead of connecting the
standard input of the command to the standard input of the remote command. The option is required when running commands in
the background. The and options are mutually exclusive.
DIAGNOSTICS
The host name
host was not found in the hosts database.
The host host is down, unreachable on the network, or not running
A problem occurred trying to find the user's current working directory
(current_dir).
A problem occurred trying to determine the mount point
of the user's current working directory (current_dir).
The standard input (stdin) of the
command with the option is not a tty device.
Errors that occur on the server
server are propagated back to the client. These messages are documented in the DIAGNOSTICS section of rexd(1M).
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO exports(4), rexd(1M).
on(1)