Wanted - push/rexec/pull script for remote program builds

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. PHP script wanted !!!
      http://www.php-freelancers.com/index.php?a=project&pid=86 thanks!!!
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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:
    >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/

    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.
    >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.
    The above three commands can be put into a bash shell script.

    -Joe
    --
    See [url]http://www.inwap.com/[/url] for PDP-10 and "ReBoot" pages.
    Joe Smith Guest

  4. #3

    Default 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>...
    > 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/
    Many thanks for your reply Joe. The only thing I couldn't find,
    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139