Sponsored Content
Top Forums Shell Programming and Scripting Run a shell script from one host which connext to remote host and run the commands Post 302305245 by nirbhay on Wednesday 8th of April 2009 10:26:07 AM
Old 04-08-2009
remsh is the answer

remsh <machine> -l <acc> -n "<whatever you wanna do on remote side>"
 

10 More Discussions You Might Find Interesting

1. Solaris

How to delete the files from local host to remote host

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)
Discussion started by: krishna176
3 Replies

2. Shell Programming and Scripting

running commands to remote host from centralized host

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)
Discussion started by: anjum.suri
6 Replies

3. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

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)
Discussion started by: gomes1333
3 Replies

4. UNIX for Dummies Questions & Answers

Run a script on remote host

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)
Discussion started by: shifahim
9 Replies

5. Shell Programming and Scripting

HTML Code to Run a Script from Remote Unix Host

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)
Discussion started by: robinbannis
1 Replies

6. Shell Programming and Scripting

How to run a shell script on a remote host using ftp

Hi, is there a way I can run a shell script through ftp on a remote host? The remote host doesn't have ssh running so I can't use ssh. (7 Replies)
Discussion started by: mrskittles99
7 Replies

7. Shell Programming and Scripting

Pause processes in remote host and resume execution in another remote host

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)
Discussion started by: Saeya Darsan
3 Replies

8. Shell Programming and Scripting

Run script on remote host

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)
Discussion started by: Nakul_sh
7 Replies

9. Shell Programming and Scripting

Run awk command on remote host

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)
Discussion started by: rahul2662
8 Replies

10. UNIX for Beginners Questions & Answers

Iso - remaster script trying to start chroot run commands then exit but host system gets messed up

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
inetd.conf(4)						     Kernel Interfaces Manual						     inetd.conf(4)

NAME
inetd.conf - configuration file for inetd DESCRIPTION
On invocation, the daemon reads its configuration information from the configuration file, and possibly at some later time in response to a signal (see inetd(1M)). Each line in the file is treated either as a comment or as configuration information for a given service Comments are denoted by a at the beginning of a line. Noncomment lines contain seven or nine required fields, depending on the service name specified in the first field. Fields are separated by tabs and/or spaces. A line can be continued if it terminates with a Each configuration line in the file contains the following fields in the order indicated: o service name o socket type o protocol o o user o server program o program number (NFS RPC services only) o version number (NFS RPC services only) o server program arguments Fields are constructed as follows: service name if the server is RPC-based (NFS); otherwise, the name of a valid service in file For example, for the service (see remsh(1)), for the service (see rlogin(1)), and for the service (see telnet(1)). socket type or depending on whether the server socket is a stream or a datagram socket, or intended for a program built using the XTI API. protocol Must be a valid protocol as given in for example, or For an XTI service, the protocol field is treated as: o A network_ID for an RPC service, (see netconfig(4)). o A device name in the directory for a non-RPC service. For example, if is specified, the path will be used. For IPv6 applications the protocol is specified as either or Specifies whether should act as a single- or multi-threaded server. Instructs to start one server to handle an incoming request, and cease listening for new requests for the same service until the server that started has exited. Same as but instructs to expect the server to accept the incoming request. Instructs to start one server for each incoming request. Most UDP-based services use for this field, while TCP-based services use user User ID to be used when the server is running. server program Absolute path name of the program executed by when it finds a request on the server's socket. server program arguments Arguments to the server program. The same as in normal use, starting with which is the name of the program. If service name is (NFS RPC services), two extra fields are required. They must appear between the server program field and the server program arguments field: program number Defines a particular service grouping and is unique. version number Version supported by the RPC service. This number can be a single value, or a range, if the program handles multiple versions; for example, or Ranges are separated by a hyphen Version numbers allow RPC protocols to be extended and modified, and make it possible for old and new protocols to share the same server process. Built-in inetd Services The daemon provides several "trivial" services internally by use of built-in routines (see inetd(1M) for a list of these services). To configure an internal service, specify as the server program name, and omit the server program arguments field. EXAMPLES
Configure the service to use TCP protocol, and run the server as user The above is an example of the remsh utility run in the IPv4 mode. To run the above utility in the IPv6 mode, the protocol must be changed to Thus the above configuration is re-written as below to run in mode. Configure the FTP server to timeout an inactive session after 75 seconds. The above ftp service can be run in IPv6 mode using the configuration shown below: Configure an RPC-based service. Note that the service name field contains and two more fields are used: the program number(100008) and version number(1). Configure to use the built-in TCP service. AUTHOR
was developed by the University of California, Berkeley. NFS was developed by Sun Microsystems, Inc. SEE ALSO
inetd(1M), exec(2), fork(2), inetd.sec(4), protocols(4), services(4). inetd.conf(4)
All times are GMT -4. The time now is 03:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy