RE: [Ssh-sftp-perl-users] Executing Command FIles (KSH) not Simply One-line Commands
Brought to you by:
dbrobins
From: Sander P. <San...@da...> - 2006-04-14 16:48:11
|
=20 How remote is remote? You could use a simple file share (nfs) to make the scripts available to all your servers. Otherwise you could scp the scripts into place before executing them. On the other hand when things get to convoluted it may be a good indication that the strategy is flawed. Expecting ksh scripts to run remotely is a bit far fetched. It may be time to convert the ksh scripts into proper Perl scripts that run centraly and execute their commands remotely via ssh.=20 =20 Let us know some of the restrictions/motivations that are in place so we can help you more, =20 Sander ________________________________ From: ssh...@li... [mailto:ssh...@li...] On Behalf Of CNewtonne Sent: Friday, April 14, 2006 6:08 AM To: ssh-sftp-perl-users Subject: [Ssh-sftp-perl-users] Executing Command FIles (KSH) not Simply One-line Commands I'm running into a situation here where I need to connect to remote servers using this module and be able to execute kron shell file commands i.e. .ksh. The idea here is to be able to do it while these ksh files are residing locally where the perl code is run and not on the remote servers. This is to centralized the code all in one location.=20 - Can this be done? - If not, can any one suggest workarounds or other solutions? - How do admins manage the code that needs to run on 100's of remote servers ? |