Re: View output of 'ppm install' command

2001-02-19 Thread Sisyphus
$ Bill wrote: > > If it is indeed a problem rediecting STDERR (2>&1), you could get cmd.exe I thought I was trying to redirect STDOUT. It's a moot point, I know. I mention it only in the off-chance that it makes a difference. > (there is one for Win9x available at MS) and use that as your shell

Re: View output of 'ppm install' command

2001-02-19 Thread $Bill Luebkert
Joe Schell wrote: > > "$Bill Luebkert" wrote: > > > > If it is indeed a problem rediecting STDERR (2>&1), you could get cmd.exe > > (there is one for Win9x available at MS) and use that as your shell instead > > of command.com . > > > > Any hints on how one might find it? I tried 'cmd.exe' alon

how to check if a thread (pseudo-process) is still running

2001-02-19 Thread Jesse Sookne
Hello all, I've been making my first foray into using threads in Win32 Perl with the fork() emulation. I'm trying to figure out a way to test if my child threads are still executing, or have exited. The perlfork documentation gave me the impression that I could use kill(0, $pid); to do

Re: View output of 'ppm install' command

2001-02-19 Thread Joe Schell
"$Bill Luebkert" wrote: > > If it is indeed a problem rediecting STDERR (2>&1), you could get cmd.exe > (there is one for Win9x available at MS) and use that as your shell instead > of command.com . > Any hints on how one might find it? I tried 'cmd.exe' along with variations of Win 9x with no

Re: View output of 'ppm install' command

2001-02-19 Thread $Bill Luebkert
Sisyphus wrote: > > John Cope wrote > > > > Try using "perl -S ppm.bat install --location=repository.url PackageName > > >ppm.log" > > > > I tried using that - it runs quickly and produces no out put. Perhaps I > misunderstand what is required here. I can get it to run as normal if I > put: > p

Re: View output of 'ppm install' command

2001-02-19 Thread Sisyphus
John Cope wrote > > Try using "perl -S ppm.bat install --location=repository.url PackageName > >ppm.log" > I tried using that - it runs quickly and produces no out put. Perhaps I misunderstand what is required here. I can get it to run as normal if I put: perl -S ppm.bat install http://theoryx.u

Re: PerlCheck Program

2001-02-19 Thread Ron Grabowski
> Attached is a handy little program I wrote that will insure that all > variables and subroutines that have been declared within a script are > actually referenced by the script. It is handy for finding variables that > have been defined but are never used within a script. What things does it ca

Re: Mail::Sender - sending a file with a variable filename

2001-02-19 Thread Carl Jolley
On Mon, 19 Feb 2001, Greg Wardawy wrote: > Hello all, > Is there any way to send a file with a variable filename i.e. vendor$date (where >$date = "0219.csv") using the Mail::Sender? > Everything works fine if I put: > file => 'vendor0219.csv' > but it doesn't when: > file => 'vendor$date' Varia

Re: newbie help - dbm files

2001-02-19 Thread $Bill Luebkert
Ron Grabowski wrote: > > > with tie. Here's an example of tieing a hash to count ip addrs (you can substitute > > What does that program do ( yes I know it counts IP addresses )? Some > sample input, output maybe... Don't have any. Just call it with an IP address as arg 1 or 'create' as arg 1

RE: View output of 'ppm install' command

2001-02-19 Thread John Cope
> From: "Sisyphus" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Subject: View output of 'ppm install' command > Date: Mon, 19 Feb 2001 19:53:55 +1100 > > Hi, > Can someone tell me how to catch the full output of the ppm command when > that output 'overflows' the DOS screen ? > I've tried '| mor

Re: still stuck trying to listen to port.

2001-02-19 Thread Sisyphus
Hi, Haven't actually worked with UDP - I had enough trouble printing what was sent to a TCP connection. Based on what I had to do for that exercise I suggest trying the following. '$len' is a number >= the length of the message received (in bytes) and $flags='' (2 single quotes, ie void) $remote

Re: Multiple machine locking of single resource

2001-02-19 Thread Clinton A . Pierce
On Mon, Feb 19, 2001 at 03:16:00PM -0700, Joe Schell wrote: > Presumably requests go to both servers. Yes, but the resource (an ancient C program) can only be accessed serially under certain conditions. > So, I am curious, if you were doing this in unix how would you do it? Filesystem locks vi

Re: Mail::Sender - sending a file with a variable filename

2001-02-19 Thread Bennett Haselton
Need double quotes around vendor$date instead of single quotes, in order for $date to be substituted with its value. -Bennett At 04:05 PM 2/19/01 -0600, Greg Wardawy wrote: >Hello all, >Is there any way to send a file with a variable filename i.e. vendor$date (where $date = "0219.csv") u

Re: Multiple machine locking of single resource

2001-02-19 Thread Joe Schell
"Clinton A . Pierce" wrote: > > I'm a Unix weenie having a bit of a problem adjusting to the various > shackles^Wsubtle environment differences in Win32. What I need to implement > is a locking system for a single resource among multiple processes that > has a timeout mechanism associated with i

Mail::Sender - sending a file with a variable filename

2001-02-19 Thread Greg Wardawy
Hello all, Is there any way to send a file with a variable filename i.e. vendor$date (where $date = "0219.csv") using the Mail::Sender? Everything works fine if I put: file => 'vendor0219.csv' but it doesn't when: file => 'vendor$date' TIA Greg __

Re: Mail::Sender - sending a file with a variable filename

2001-02-19 Thread Ben Wheeler
When you use single quotes, the quoted string is handled exactly as written. In your case, perl looks for a file named vendor$date rather than the file named vendor0219.csv. Try using double quotes instead, so that variables can be recognized as such: file => "vendor$date" Ben At 04:05 PM 2/19

Re: Help getting rid of duplicate entires in a datafile

2001-02-19 Thread SCOTT_SISSON
A quick suggestion is to put the headlines in a hash and subsequently check if they exist, i.e. something like the following: if ( not exists $headlinelist{$headline} ) { &do _your_stuff; }

Re: Help getting rid of duplicate entires in a datafile

2001-02-19 Thread Dirk Bremer
Gary, In your code example: > foreach (@allheadlines) > { > # if there's a match on a line, set $found to > # empty >if ($_ =~ m/$check_for/i) { print "Dup: $_\n"; $found = ""; } > } You never set $found to any other value other than "", i.e. $found always