Re: request

2001-02-16 Thread Basil A. Daoust
great article. > I think you need to read this article on why questions go unanswered. > > http://perl.plover.com/Questions.html > ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Re: Request...

2001-02-16 Thread Charles Pelkey
Well, I believe the problem is that your not returning any headers from the script, so it can not be displayed. Without posting the perl code, there is no real way to tell, but the error you are explaining is normally a result of you not using the following line at the top of your script: prin

RE: cann't xcopy files in Windows 2000

2001-02-16 Thread Justin Rogers
This code works fine under Windows 2000.. note that some of the lines are broken because of the copy and paste into the email. Justin Rogers my ($option, $backini) = (@ARGV); if ( !defined($option) || !defined($backini) || ($option ne '/i'&& $option ne '/b') ){ &Print

Re: cann't xcopy files in Windows 2000

2001-02-16 Thread Ted Zeng
Yes. It is the windows shell command. I did put the whole path in. Ted Zeng Joe Schell wrote: > Ted Zeng wrote: > > > > Hi, > > > > I make a perl script to copy a folder's content to another folder > > using xcopy ( the system call). It works fine when I execute it. > > > > But when I execute

Re: Request...

2001-02-16 Thread Joe Schell
Kaspars Vilkens wrote: > > Just tried. Not working like this (Gives same error)!!! > > [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters\Scrip > t Map] > ".pl" = "C:\perl\bin\perl.exe %s %s" > > Any other ideas? > > Kaspars Vilkens > > -Original Message- > From: [

Re: cann't xcopy files in Windows 2000

2001-02-16 Thread Joe Schell
Ted Zeng wrote: > > Hi, > > I make a perl script to copy a folder's content to another folder > using xcopy ( the system call). It works fine when I execute it. > > But when I execute the script from > another perl script using > Win32::Process::Create > to launch the script, nothings get copie

Re: Request...

2001-02-16 Thread Lee Goddard
Um, you have set permissions on the script dir? Kaspars Vilkens wrote: > > The directory structure of the server is: > > home dir: C:\inetpub\wwwroot\ > scripts dir: C:\inetpub\scripts\(alias \scripts) > > script I want to execute is needed to generate frames html, depending on > us

Re: Request...

2001-02-16 Thread Lee Goddard
Oh. You're not using the quotes in the reg are you? You've got the HTTP headers correct? content-type: text/html\n\n Kaspars Vilkens wrote: > > Just tried. Not working like this (Gives same error)!!! > > [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters\Scrip > t M

cann't xcopy files in Windows 2000

2001-02-16 Thread Ted Zeng
Hi, I make a perl script to copy a folder's content to another folder using xcopy ( the system call). It works fine when I execute it. But when I execute the script from another perl script using Win32::Process::Create to launch the script, nothings get copied over. The interesting thing is the

RE: SQL Question

2001-02-16 Thread Joseph P. Discenza
steve silvers wrote, on Friday, February 16, 2001 09:19 : Im running MS SQL Server 7.0 : I have a table with a startdate and enddate column in it. : : In my perl script I query it : : SELECT * FROM table where 'todays_date_from_script' >= 'startdate' and : "todays_date_from_script' <= 'enddate'

Win32::GUI Problems

2001-02-16 Thread steve silvers
Im new to using Win32::GUI. I installed it via nmake, and tried this sample script: use Win32::GUI; @ret = Win32::GUI::ChooseFont( -name => "Courier New", -height => 14, -size => 180, -italic => 1, -ttonly => 1, -fixedonly => 1, -script => 0, -effects => 1, );

Re: SQL Question

2001-02-16 Thread Joe Schell
steve silvers wrote: > > Im running MS SQL Server 7.0 > I have a table with a startdate and enddate column in it. > > In my perl script I query it > > SELECT * FROM table where 'todays_date_from_script' >= 'startdate' and > "todays_date_from_script' <= 'enddate' > > When I input the data into

RE: SQL Question

2001-02-16 Thread Carl Campbell
You need to format your dates, in a way that SQL understands them. Try rearranging them like so: -MM-DD -Original Message- From: steve silvers [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 6:19 AM To: [EMAIL PROTECTED] Subject: SQL Question Im running MS SQL

Re: MySQL--ot

2001-02-16 Thread Kelly Zhu
MySQL recommends the book by Paul DuBois, but not giving the title. Anybody knows it? I cannot use the link to b&n because the school I work for won't allow online order. Thanks. Kelly ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://lists

RE: sendmail

2001-02-16 Thread Trevor Joerges
Title: I also wrote a command line mailer several years ago that I make publicly available from my web site. The exe is much larger than BLAT because it was written purely in Perl and compiled using Perl2Exe. It's very easy to use and execute from a CGI script and has a pretty good set of f

Help counting number of instances with foreach pass through an array

2001-02-16 Thread Ted S.
Todd Beverly wrote: > >Gary Nielson wrote: >> >> I am trying to write a script that will open a file of headlines by >> section. The first field (separated by the "|" delimiter) is the section >> name. The script will go sequentially down the file. There may be up to 25 >> headlines per section,

RE: mail "smarthost" module for perl?

2001-02-16 Thread Thomas_M
If you want an MTA written in perl, here's one: http://freshmeat.net/projects/perlsmtpdaemon/ However, It just sounds like you want to connect to a mail server for a given domain to check the connection. In that case, just (1) use Net::DNS to find the mail server for the domain (2) use Net::S

RE: SMTP Issue

2001-02-16 Thread Thomas_M
Dirk Bremer wrote: > $SMTP = Net::SMTP->new('mailservername'); > $Result = $SMTP->mail('mailrecipient); > $Result = $SMTP->to('mailrecipient'); > $Result = $SMTP->data(); > $Result = $SMTP->datasend("To: Dirk Bremer\n"); > $Result = $SMTP->datasend("From: Perl\n"); > $Result = $SMTP->datasend("S

RE: request

2001-02-16 Thread Mike Prozinski
>"please solve this problem and mail me." Are you kidding me? I think you need to read this article on why questions go unanswered. http://perl.plover.com/Questions.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of P.V.Sankar Sent: Wednesday, Febr

RE: Sendmail

2001-02-16 Thread Sharon Tiroff
Title: RE: sendmail Never mind, error on my part!   Thanks!   Sheri -Original Message-From: Sharon Tiroff Sent: Friday, February 16, 2001 7:28 AMTo: 'Frank Novak'Subject: RE: Sendmail Thanks I found the

Re: SQL Question

2001-02-16 Thread Ron Grabowski
What is your Perl question? > SELECT * FROM table where 'todays_date_from_script' >= 'startdate' and > "todays_date_from_script' <= 'enddate' select * from table where '$todays_date_from_script' between '$startdate' and '$enddate'; might work but it sounds like you have a SQL problem.

SQL Question

2001-02-16 Thread steve silvers
Im running MS SQL Server 7.0 I have a table with a startdate and enddate column in it. In my perl script I query it SELECT * FROM table where 'todays_date_from_script' >= 'startdate' and "todays_date_from_script' <= 'enddate' When I input the data into the table I use something like 02-16-2001

Re: File Find & Expression inside RexExp?

2001-02-16 Thread $Bill Luebkert
"Jimmy S. Lim" wrote: > > hi perl friends, > > i am trying to write a script to do a daily backup on files which have been > modified on the same day the script is ran. i am just writing the beginning > part of the script and i already got stuck. i kept getting the error: " > Can't stat d:/perlu

Re: File Find & Expression inside RexExp?

2001-02-16 Thread Philip Newton
Jimmy S. Lim wrote: > i kept getting the error: "Can't stat d:/perluser, no such file > or directory". but i do have such a file and a directory! Are you sure that's the message? Based on your code, I would expect the error to be Can't stat d:/perluser , no such file or directory And I

Re: mail "smarthost" module for perl?

2001-02-16 Thread Simon Oliver
Look at the RFC on SMTP - it tells you all the commands you need to know to communicate with an SMTP server. You will also need to do a DNS lookup and check the MX record for the specified mail domain - the MX record will give you the preffered mailhost for the specified domain and that is whe

File Find & Expression inside RexExp?

2001-02-16 Thread Jimmy S. Lim
hi perl friends, i am trying to write a script to do a daily backup on files which have been modified on the same day the script is ran. i am just writing the beginning part of the script and i already got stuck. i kept getting the error: " Can't stat d:/perluser, no such file or directory". but