hudo
11-29-2003, 11:48 AM
Hello,
i'd like to fork with windows.
Excerpt of the code:
if (fork == 0 ) {
print "elem:\n $elem\n";
### $elem looks like http-string below
#http://www.mobile.de/SIDUXnSMwjASJfhgZ4t-.0eNg-t-vaNexlCsAsK%F3P~BmSB10LsearchPublicJ1070052814A1LsearchPublicIMotorhomeS-t-vpLtt~BmPA1B20A0/cgi-bin/da.pl?bereich=womo&id=11111111129267353
### windows
$a="file://d:/aaa_perl_win/$elem";
$a="file://d:/aaa_perl_win/$elem";
$a="file://d:/aaa_perlwin/aaafile.html";
#system ("start iexplore.exe file://d:/aaa_perlwin/aaafile.html");
#system ("start iexplore.exe $elem");
#exec("start iexplore.exe file://d:/aaa_perlwin/aaafile.html"); ### works but perl-programm ends
exec("start iexplore.exe", "http://www.mobile.de/SIDUXnSMwjASJfhgZ4t-.0eNg-t-vaNexlCsAsK%F3P~BmSB10LsearchPublicJ1070052814A1LsearchPublicIMotorhomeS-t-vpLtt~BmPA1B20A0/cgi-bin/da.pl?bereich=womo&id=11111111129267353");
#exec('start iexplore.exe "$elem" ');
### unix
#exec("konqueror",$elem); ###works with linux
CORE::exit(1);
}
It works fine with linux (line with konqueror)
It works with windows if a file is specified (not a http-string) --- but perl program ends
It does not work with windows if a http-string is passed ....
I think its a problem of quoting ??
On a console: start iexplore.exe "http://www.mobile.de/SIDUXnSMwjASJfhgZ4t-.0eNg-t-vaNexlCsAsK%F3P~BmSB10LsearchPublicJ1070052814A1LsearchPublicIMotorhomeS-t-vpLtt~BmPA1B20A0/cgi-bin/da.pl?bereich=womo&id=11111111129267353"
works fine.
So I wrote a bat-file:
start iexplore.exe "http://www.mobile.de/SIDUXnSMwjASJfhgZ4t-.0eNg-t-vaNexlCsAsK%F3P~BmSB10LsearchPublicJ1070052814A1LsearchPublicIMotorhomeS-t-vpLtt~BmPA1B20A0/cgi-bin/da.pl?bereich=womo&id=11111111129267353"
but this doesn't work.
Please help
:(
i'd like to fork with windows.
Excerpt of the code:
if (fork == 0 ) {
print "elem:\n $elem\n";
### $elem looks like http-string below
#http://www.mobile.de/SIDUXnSMwjASJfhgZ4t-.0eNg-t-vaNexlCsAsK%F3P~BmSB10LsearchPublicJ1070052814A1LsearchPublicIMotorhomeS-t-vpLtt~BmPA1B20A0/cgi-bin/da.pl?bereich=womo&id=11111111129267353
### windows
$a="file://d:/aaa_perl_win/$elem";
$a="file://d:/aaa_perl_win/$elem";
$a="file://d:/aaa_perlwin/aaafile.html";
#system ("start iexplore.exe file://d:/aaa_perlwin/aaafile.html");
#system ("start iexplore.exe $elem");
#exec("start iexplore.exe file://d:/aaa_perlwin/aaafile.html"); ### works but perl-programm ends
exec("start iexplore.exe", "http://www.mobile.de/SIDUXnSMwjASJfhgZ4t-.0eNg-t-vaNexlCsAsK%F3P~BmSB10LsearchPublicJ1070052814A1LsearchPublicIMotorhomeS-t-vpLtt~BmPA1B20A0/cgi-bin/da.pl?bereich=womo&id=11111111129267353");
#exec('start iexplore.exe "$elem" ');
### unix
#exec("konqueror",$elem); ###works with linux
CORE::exit(1);
}
It works fine with linux (line with konqueror)
It works with windows if a file is specified (not a http-string) --- but perl program ends
It does not work with windows if a http-string is passed ....
I think its a problem of quoting ??
On a console: start iexplore.exe "http://www.mobile.de/SIDUXnSMwjASJfhgZ4t-.0eNg-t-vaNexlCsAsK%F3P~BmSB10LsearchPublicJ1070052814A1LsearchPublicIMotorhomeS-t-vpLtt~BmPA1B20A0/cgi-bin/da.pl?bereich=womo&id=11111111129267353"
works fine.
So I wrote a bat-file:
start iexplore.exe "http://www.mobile.de/SIDUXnSMwjASJfhgZ4t-.0eNg-t-vaNexlCsAsK%F3P~BmSB10LsearchPublicJ1070052814A1LsearchPublicIMotorhomeS-t-vpLtt~BmPA1B20A0/cgi-bin/da.pl?bereich=womo&id=11111111129267353"
but this doesn't work.
Please help
:(