Re: Process control from LAN master computer

From: Drieux (drieux_at_wetware.com)
Date: 03/29/04


Date: Sun, 28 Mar 2004 15:26:03 -0800
To: Perl Beginners Mailing List <beginners@perl.org>


On Mar 24, 2004, at 8:43 AM, Peterson, Darren - Contractor.Westar wrote:
[..]
> I tried Proc::Background so my script wouldn't wait on the invoked
> task as
> with the Perl system command. Actually, I've found that ssh isn't
> what I
> need since the invoked task displays on the local, and not remote,
> machine.

are you 'getting off' to the far host? and hence seeing
the stuff done on the far host in the ssh pipe that you
opened onto the remote machine?

        local -> rsh far_host -c "do foo" -> far_host

the command actually gets invoked on the far_host, but locally
you get to see the 'remote shell' invocation, since, well,
one actually is 'on the far host' at the time.

> I need to initiate a task on a remote machine and have that task run
> and
> display on the remote machine. The Perl script should initiate then
> ignore
> the remote process.
[..]

The part about 'initiate and ignore' is the part that worries me.
So what exactly do you mean by 'display on the remote machine'?
Where is the STDOUT going to be pointed in that event? to /dev/console?

The more traditional solution is something of the form:

MON_BOX -> message -> host_box
                         |
                         V
                       starter_code -> start daemon process
                         |
      <--return_info <----
      |
      V
    Display Output

Where one does a pipe and exec sequence then reads through
the list of open FD's as info comes back, cf perldoc IO::Select
and then as one needs to 'update' incoming information, one
does that...

ciao
drieux

---


Relevant Pages

  • Re: Remote Execution Through FTP
    ... > I need to send some file from my local machine to a remote machine ... > generation mechanism in SSH. ... then you can script this quite easily using public key's to authenticate. ... Make sure the permissions on the .ssh directory and all the files in it are ...
    (comp.unix.admin)
  • Re: Is SSH worth it??
    ... > We would be using SSH and SCP. ... SCP for automated scripts. ... > client will not be prompted for a password. ... remote machine, but imho it is better to swap client+server and give ...
    (Security-Basics)
  • Re: getting ssh to work
    ... > I recently tried to ssh into my desktop from another machine, ... > The remote machine in question is running OpenSSH_3.6.1p2, ... try running ssh and/or sshd in debug mode. ... and then quit when the remote user logs ...
    (freebsd-questions)
  • [Full-Disclosure] SSH/OPENSSH HOLE ALL VERSIONS.
    ... ssh is a program for logging into a remote machine and for ... executing commands on a remote machine. ... I have informed ssh developers about this vulnerability and they have not ...
    (Full-Disclosure)
  • Re: Pcl-cvs 1.66 and CVS over ssh (missing ssh-askpass)
    ... Sean> system at all. ... The problem could be that ssh is trying to prompt for your passphrase but ... failing because pcl-cvs is running cvs (and thus ssh) through a pipe rather ... remote machine without using your remote password. ...
    (comp.emacs.xemacs)