Ask a Question related to PERL Miscellaneous, Design and Development.
-
John Ramsden #1
Wanted - push/rexec/pull script for remote program builds
I have various ActiveState Perl scripts that run on Windows, Linux,
and Solaris, and soon AIX and possibly others. These must be compiled
using the PDK on each platform to produce a runfile specific to that
platform.
Each time I amend the source I must manually FTP the updated file[s]
to a couple of remote systems, compile it on each of these these,
and FTP the resulting runfiles back to the development system.
Obviously this is very tedious and error prone, and will become more
so the more platforms are involved. So I'd very much like to start
using a simple script that would automate the process.
This wouldn't take me too long to write, but not wanting to reinvent
the wheel I wondered if anyone had or knew of a suitable script that
was already available, preferably in Perl.
It needn't be an all singing and dancing system; in fact I'd rather it
wasn't - All I need is the ability to push a configurable set of files
to a configurable remote directory, rexec a build script there, and
pull back the result[s] as binary files.
Many thanks in anticipation.
Cheers
John Ramsden (john_ramsden@sagitta-ps.com)
John Ramsden Guest
-
Script for simple pull down menu
how will a user know what product number matches what product? in any case, you'll need to use an input textfield and you'll need to either use an... -
PHP script wanted !!!
http://www.php-freelancers.com/index.php?a=project&pid=86 thanks!!! -
Password validator script wanted.
I want to allow the user to enter her own username and password. I want to validate the password the way lots of programs do.... that it has to... -
Wanted: Help/Script to truncate mp3 files.
Hello. I would like to learn how to write a script that would truncate a mp3 file to a given number of seconds of music. This is like what amazon... -
Push values from bound form to undound, edit, then pull back
Hi, I've seen answers to similar questions, but none of them quite work. I have a main bound form with various bound controls. I wish to be... -
Joe Smith #2
Re: Wanted - push/rexec/pull script for remote program builds
In article <d27434e.0307100917.35665a0c@posting.google.com> ,
John Ramsden <john_ramsden@sagitta-ps.com> wrote:rsync -auv -e ssh work_dir/ remotehost:work_dir/>Each time I amend the source I must manually FTP the updated file[s]
ssh remotehost 'cd work_dir; make'>to a couple of remote systems, compile it on each of these these,
rsync -auv -e ssh remotehost:work_dir/ work_dir/>and FTP the resulting runfiles back to the development system.
I've done the above where the local machine was Windows-98 with Cygwin
([url]http://www.cygwin.com/[/url]) installed and the remote host was Solaris.
You can use .ssh/authorized_keys to avoid the password prompt.
The above three commands can be put into a bash shell script.>It needn't be an all singing and dancing system; in fact I'd rather it
>wasn't - All I need is the ability to push a configurable set of files
>to a configurable remote directory, rexec a build script there, and
>pull back the result[s] as binary files.
-Joe
--
See [url]http://www.inwap.com/[/url] for PDP-10 and "ReBoot" pages.
Joe Smith Guest
-
John Ramsden #3
Re: Wanted - push/rexec/pull script for remote program builds
[email]inwap@inwap.com[/email] (Joe Smith) wrote in message news:<_XSPa.352$603.19125@iad-read.news.verio.net>...
Many thanks for your reply Joe. The only thing I couldn't find,> In article <d27434e.0307100917.35665a0c@posting.google.com> ,
> John Ramsden <john_ramsden@sagitta-ps.com> wrote:>> >Each time I amend the source I must manually FTP the updated file[s]
> rsync -auv -e ssh work_dir/ remotehost:work_dir/
>>> >to a couple of remote systems, compile it on each of these these,
> ssh remotehost 'cd work_dir; make'
>>> >and FTP the resulting runfiles back to the development system.
> rsync -auv -e ssh remotehost:work_dir/ work_dir/
using 'man rsync' and 'man rsyncd.conf', was info on how or if
rsync converts text file line endings when transferring files
between Windows (or Mac OS) and Unix.
Mind you, if it copies all files verbatim, I can work round this
by using on the target Unix system a script that runs unix2dos
or equivalent on text files before building the run files from
them.
In any case, these days most compilers and suchlike, including
hopefully ActiveState perlapp, are fairly forgiving about dodgy
line endings; so maybe I can just leave the Windows text files
unchanged.
Apologies this has drifted away from Perl.
Cheers
John R Ramsden (john_ramsden@sagitta-ps.com)
John Ramsden Guest



Reply With Quote

