Re: Back-slashes & calling a batch file from perl ???

2005-10-28 Thread $Bill Luebkert
Michael D Schleif wrote: > > One more way to explain this: > > [A] Using Code #1, the Perl mkdir successfully creates $dir/$dest, and > goes on to call $prog. $prog fails, because it will not accept $dir as > a valid directory while using forward-slashes (/). At one trial, the > stderr returned

Re: Back-slashes & calling a batch file from perl ???

2005-10-28 Thread Michael D Schleif
* $Bill Luebkert <[EMAIL PROTECTED]> [2005:10:28:19:49:55-0700] scribed: > The fact that you used the same code means nothing since 1) we seem to be > talking apples and oranges and 2) your bat file is different. > Then you don't have a problem - use the forward slashes to do the mkdir. > NO!

Re: Back-slashes & calling a batch file from perl ???

2005-10-28 Thread $Bill Luebkert
Michael D Schleif wrote: > > Please, take careful note of the above statement. The fact that you used the same code means nothing since 1) we seem to be talking apples and oranges and 2) your bat file is different. >> If your mkdir is failing in the Perl script, could there be a permissions >> p

Re: Back-slashes & calling a batch file from perl ???

2005-10-28 Thread Michael D Schleif
* $Bill Luebkert <[EMAIL PROTECTED]> [2005:10:28:16:54:19-0700] scribed: > Michael D Schleif wrote: > > * $Bill Luebkert <[EMAIL PROTECTED]> [2005:10:28:07:21:26-0700] scribed: > > I have cut-pasted your exact code. Please, recognize that my real code > > does use tests of this nature. Please,

Re: Back-slashes & calling a batch file from perl ???

2005-10-28 Thread $Bill Luebkert
Michael D Schleif wrote: > * $Bill Luebkert <[EMAIL PROTECTED]> [2005:10:28:07:21:26-0700] scribed: >> I ran it like this and it seems OK, but I don't have the same conditions: > > There's the rub ;> > >> use diagnostics; >> use strict; >> use warnings; >> >> my $prog = "E:/usr/ov/bin/nvhotbackup

Re: Back-slashes & calling a batch file from perl ???

2005-10-28 Thread James Sluka
I agree bill, it does not make sense, nonetheless on my win98 machine (creak creak), the extra space is required. jim $Bill Luebkert wrote: James Sluka wrote: One more thing to try is to add a trailing space after the directory spec, as in; system qq{$prog "$dir " $dest} or

RE: eval'ing a dumped data structure

2005-10-28 Thread Joe Discenza
Title: RE: spidering/crawling/scraping a site.. All,   Please disregard. It was another value not updating, and I've got it fixed. Thanks for your attention.   Joe   ==  Joseph P. Discenza, Sr. Programmer/Analyst   

Re: Back-slashes & calling a batch file from perl ???

2005-10-28 Thread Michael D Schleif
* $Bill Luebkert <[EMAIL PROTECTED]> [2005:10:28:07:21:26-0700] scribed: > I ran it like this and it seems OK, but I don't have the same conditions: There's the rub ;> > use diagnostics; > use strict; > use warnings; > > my $prog = "E:/usr/ov/bin/nvhotbackup.bat"; > my $dir = 'E:/backup'; > > i

eval'ing a dumped data structure

2005-10-28 Thread Joe Discenza
Title: RE: spidering/crawling/scraping a site.. All,   I've got a dumped data structure. I can print the string I dumped to:   $form_hash_ary_ref = [   { 'desc' => 'Agreement to Provide Insurance', 'name' => 'AGREE_PPI

Re: Back-slashes & calling a batch file from perl ???

2005-10-28 Thread $Bill Luebkert
James Sluka wrote: > One more thing to try is to add a trailing space after the directory > spec, as in; > system qq{$prog "$dir " $dest} > or > my $cmd = qq{$prog "$dir " "$dest"}; > > I did some quick tests with; > ##Perl code > my $prog = 'c:\windows\desktop\some-batch.bat'; >

Re: Back-slashes & calling a batch file from perl ???

2005-10-28 Thread James Sluka
One more thing to try is to add a trailing space after the directory spec, as in;     system qq{$prog "$dir " $dest} or     my $cmd = qq{$prog "$dir "  "$dest"}; I did some quick tests with; ##Perl code my $prog = 'c:\windows\desktop\some-batch.bat'; my $dir  = 'c:\windows\desktop\jim'

RE: spidering/crawling/scraping a site..

2005-10-28 Thread Thomas, Mark - BLS CTR
bruce [mailto:[EMAIL PROTECTED] wrote: > mark... > > i'm actually faced with a greater issue. i'm looking to > crawl/extract/download the site. simply scraping each site > doesn't get me > the underlying files for the site, in the correct location/names on my > server, to allow me to kind of repl

RE: spidering/crawling/scraping a site..

2005-10-28 Thread bruce
mark... i'm actually faced with a greater issue. i'm looking to crawl/extract/download the site. simply scraping each site doesn't get me the underlying files for the site, in the correct location/names on my server, to allow me to kind of replicate the basic links of the site. this requires a cr

Re: Back-slashes & calling a batch file from perl ???

2005-10-28 Thread $Bill Luebkert
Michael D Schleif wrote: > * On 2005:10:27:15:07:31-0500 I, Michael D Schleif <[EMAIL PROTECTED]>, > scribed: >> I have a perl script that calls a batch file (necessary), and passes it >> two arguments. The first argument is a directory name, and the second a >> simple label. >> >> When I used fo

RE: spidering/crawling/scraping a site..

2005-10-28 Thread Thomas, Mark - BLS CTR
Bruce, Hehe... Gotta hand it to ya, you posted code this time :) Here's what's going on. WWW::CheckSite::Spider is using the Mech class you specify. You specified a class by the name of BA_Mech. So what you have to do in your BA_Mech class is provide the information you need to log in. Make BA_Me

Re: Back-slashes & calling a batch file from perl ???

2005-10-28 Thread Michael D Schleif
* On 2005:10:27:15:07:31-0500 I, Michael D Schleif <[EMAIL PROTECTED]>, scribed: > I have a perl script that calls a batch file (necessary), and passes it > two arguments. The first argument is a directory name, and the second a > simple label. > > When I used forward-slashes (/) everywhere, the