[26692] in Perl-Users-Digest
Perl-Users Digest, Issue: 8797 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Dec 26 00:05:20 2005
Date: Sun, 25 Dec 2005 21:05:03 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 25 Dec 2005 Volume: 10 Number: 8797
Today's topics:
ANNOUNCE: CGI::Application::Demo V 1.02 <ron@savage.net.au>
Re: not a valid win32 application <news@lawshouse.org>
path as related to the "exec" function <pauls@seanet.com>
Re: path as related to the "exec" function <noreply@gunnar.cc>
Re: path as related to the "exec" function <pauls@seanet.com>
Re: path as related to the "exec" function <tadmc@augustmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 26 Dec 2005 03:14:31 GMT
From: Ron Savage <ron@savage.net.au>
Subject: ANNOUNCE: CGI::Application::Demo V 1.02
Message-Id: <Is3507.CwD@zorch.sf-bay.org>
The pure Perl module CGI::Application::Demo V 1.02
is available immediately from CPAN,
and from http://savage.net.au/Perl-modules.html.
On-line docs, and a *.ppd for ActivePerl are also
available from the latter site.
An extract from the docs:
1.02 Mon 28 Nov 14:58:00 2005
- Add One.pm, Two.pm, Three.pm, Four.pm and Five.pm, with corresponding
config and template files, and instance scripts. These module are
graduated in complexity, and help probe a programming environment.
- Document those modules. Documentation is in Demo.pm; the above modules do not
have their own documentation
- Split out into a separate document the notes on the indirectly required
modules
- Extend the testing environment to include Oracle 10gR1.
This included writing CGI::Session::Driver::oracle
------------------------------
Date: Sun, 25 Dec 2005 19:21:43 +0000
From: Henry Law <news@lawshouse.org>
Subject: Re: not a valid win32 application
Message-Id: <1135538505.98008.0@iris.uk.clara.net>
John W. Burns wrote:
> For some inexplicable reason (at least to me) my windows perl application
> has ceased to load.
> When I call perl\bin\perl.exe I receive the message "not a valid win32
> application." OS is Windows XP.
> I have never had this problem in the past. I re-installed Perl from Active
> State and still receive the same
> error message.
Hmm; sounds serious. My first thought would have been to re-install but
you've done that. Presumably you can't run "perl -v" to compare against
this, but in case it helps my Perl is
> This is perl, v5.8.7 built for MSWin32-x86-multi-thread
> (with 7 registered patches, see perl -V for more detail)
>
> Copyright 1987-2005, Larry Wall
>
> Binary build 813 [148120] provided by ActiveState http://www.ActiveState.com
> ActiveState is a division of Sophos.
> Built Jun 6 2005 13:36:37
And the module itself is reported by XP as 5.8.7.813, size 45,135 bytes,
dated 06/06/2005 12:37.
Any chance of some malware futzing with Windows XP itself? Trojans and
rootkits routinely try to mask or kill other processes - perhaps one
targets perl. Anti-virus, anti-spyware up to date?
What happens when you launch a ".pl" file from Windows Explorer? Should
be the same thing but can you confirm?
------------------------------
Date: Sun, 25 Dec 2005 14:24:22 -0800
From: pauls <pauls@seanet.com>
Subject: path as related to the "exec" function
Message-Id: <u6idnXlWkL25gTLenZ2dnUVZ_sudnZ2d@seanet.com>
Hi,
I am trying to start another program from within PERL useing "exec"
The problem arises due to, I think, a space in a pathname as follows:
exec("d:\\programfiles\\fred\\program v10.1\\wefit.exe plot.dat");
I am trying to start the program "wefir" on the file "plot.dat"
You'll notice how part of the path to the executable includes a space in
one of the directory names.
If the "wefit" file is located in a directory without a space in the
directory name the above type of code of works fine. But, I am stuck
with the space in the pathname (for now) and need a work around.
Anyone have any helpful thoughts on this?
Thanks!
Paul
------------------------------
Date: Mon, 26 Dec 2005 00:02:19 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: path as related to the "exec" function
Message-Id: <418mqhF1djj30U1@individual.net>
pauls wrote:
> I am trying to start another program from within PERL useing "exec"
>
> The problem arises due to, I think, a space in a pathname as follows:
>
> exec("d:\\programfiles\\fred\\program v10.1\\wefit.exe plot.dat");
Quote the path:
exec('"d:\programfiles\fred\program v10.1\wefit.exe" plot.dat');
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Sun, 25 Dec 2005 15:25:07 -0800
From: pauls <pauls@seanet.com>
Subject: Re: path as related to the "exec" function
Message-Id: <yuKdnRM19qT9tzLeRVn-tA@seanet.com>
Gunnar Hjalmarsson wrote:
> pauls wrote:
>
>> I am trying to start another program from within PERL useing "exec"
>>
>> The problem arises due to, I think, a space in a pathname as follows:
>>
>> exec("d:\\programfiles\\fred\\program v10.1\\wefit.exe plot.dat");
>
>
> Quote the path:
>
> exec('"d:\programfiles\fred\program v10.1\wefit.exe" plot.dat');
>
Hello Gunnar,
That did the trick. Thank you very much for your help, I appreciate it!
Paul
------------------------------
Date: Sun, 25 Dec 2005 18:12:25 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: path as related to the "exec" function
Message-Id: <slrndqudb9.i4b.tadmc@magna.augustmail.com>
Gunnar Hjalmarsson <noreply@gunnar.cc> wrote:
> pauls wrote:
>> I am trying to start another program from within PERL useing "exec"
>>
>> The problem arises due to, I think, a space in a pathname as follows:
>>
>> exec("d:\\programfiles\\fred\\program v10.1\\wefit.exe plot.dat");
>
> Quote the path:
>
> exec('"d:\programfiles\fred\program v10.1\wefit.exe" plot.dat');
Or avoid the shell altogether:
exec('d:/programfiles/fred/program v10.1/wefit.exe', 'plot.dat');
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 8797
***************************************