Re: [SLUG] Remote Execution

From: Andrew M. Hoerter (amh@pobox.com)
Date: Fri Nov 14 2003 - 10:33:39 EST


On Fri, 14 Nov 2003, Rock wrote:

> I have two linux servers and I would like to execute some routine
> programs on one server from cron on the other server.
>
> Is that a 'best way' to do this? Do I have to mount the remote
> directory on the local machine to do this?

Can you be a little more specific about the circumstances of what you're
trying to accomplish? There are a lot of possible ways to do this, and
the best way to proceed depends on the particulars.

Of course, interpreting your question in the simplest possible way, the
answer is "use cron on the remote server." ;-) But I'm sure there's some
reason you can't do that or you wouldn't be asking the question in the
first place.

In the past I've written simple scripts for synchronization of automatic
jobs between systems, where the "master" connects to an inetd-based server
on the "slave" and sends a one-line message, "START" (or whatever). Then
the slave knows to begin its part of the process. The slave would of
course have TCP wrappers enabled so that only the master could connect and
initiate the operation.

Also you can get creative with lpd and friends to handle queuing and
submission. Security, again, is an issue, but...

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:46:58 EDT