in reply to Sending perl program
I've had an almost similar problem there in the sense that I wanted to makes running perl scripts from a removable media.
A good and a bad consequences when running from CD-Rom are:
Autostart may be made with the help of Win32 autorun features and perl-in-batch scripts like those you may find in Indigo Perl install script (setup.bat):
@rem = '--*-Perl-*-- @echo off if exist .\perl\bin\perl.exe goto perlexefound echo. echo ERROR: Can not find .\perl\bin\perl.exe echo This installation is incomplete. echo Make sure that the downloaded file is complete. echo Make sure that your unzip pogram extracts subdirectories echo and preserves long filenames. echo. goto endofperl :perlexefound .\perl\bin\perl -w -I.\perl\lib setup.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofperl @rem '; #!perl -w ################################################################# # Your startup script ################################################################# @rem = (); # eliminate warning use Win32::API; use strict; my $startPath = Win32::GetCwd(); # where the script lives! <...> __END__ :endofperl
I can't tell you a lot about MySql, but your bootstrap script may copy database dump from cdrom somewhere writable (eg. $ENV{TEMP}), alter environment variables and registry, rewrite configuration files, then start MySql, Apache and open a browser targeted a choosen url.
____
HTH, Dominique
My two favorites:
If the only tool you have is a hammer, you will see every problem as a nail. --Abraham Maslow
Bien faire, et le faire savoir...
|
|---|