Re: redirecting stderror

2002-05-21 Thread $Bill Luebkert
Wening Andreas wrote: > Hey, > > Works great, but what does that actually mean "2>&1"? I mean what is DOS/NT > shell doing? Standard open file handles for all C (from UNIX) programs are: 0 = STDIN 1 = STDOUT 2 = STDERR so 2>&1 would redirect STDERR(2) to wherever ST

RE: redirecting stderror

2002-05-21 Thread Wening Andreas
Hey, Works great, but what does that actually mean "2>&1"? I mean what is DOS/NT shell doing? Andreas. -Original Message- From: Michael Mirman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 5:54 PM To: Wening Andreas Cc: '[EMAIL PROTECTED]' Subject: Re: redirecting stderror Tr

RE: redirecting stderror

2002-05-21 Thread kbatzer
How about this? myscript.pl >> mylog.txt 2>&1 Kirk W. Batzer [EMAIL PROTECTED] > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On > Behalf Of Wening Andreas > Sent: Tuesday, May 21, 2002 5:06 PM > To: '[EMAIL PROTECTED]' > Subject: redirecting stderror > > >

[PMX:#] RegExp Question: removing anything but...

2002-05-21 Thread David Kramer
Im looking for a Regular Expression pattern that will allow me to remove everything from a string but Numeric values. I could have sworn there was a simple way to do this, but I cant find it anywhere in Chapter 5 of the Camel Thanks, DKramer z¹VŠ}öÙ¢žf¢–)à–+-=êåZ)÷ØfŠyb²Û®ð¶+

RE: RegExp Question: removing anything but...

2002-05-21 Thread Richard A. Evans
> Im looking for a Regular Expression pattern > that will allow me to remove everything from a string but Numeric values. Probably easiest way is $x='abc123!@#456xyz'; $x =~ s/\D//g; print $x; Should yield 123456 Regards, Rick ___ Perl-

RE: RegExp Question: removing anything but...

2002-05-21 Thread David Kramer
Thanks Everyone!!!$casQty =~ s/[^\d]//g;worked like a charm -Original Message- From: Michael D. Schleif [mailto:[EMAIL PROTECTED]] Sent: Tue 5/21/2002 2:51 PM To: Cc: [EMAIL PROTECTED] Subject: Re: RegExp Question: re

Re: RegExp Question: removing anything but...

2002-05-21 Thread tony . o'quinn
Here is one way to do that: my $str = '1,a%2$b*3(c)4,d'; $str =~ s/\D//g; print $str; # prints 1234 Tony "David Kramer"

Re: redirecting stderror

2002-05-21 Thread Michael Mirman
Try yourscript.pl >> output 2>&1 or yourscript.pl >> output1 2> output2 In some cases I have to add "perl " in front of the script name. At 05:06 PM 5/21/2002, Wening Andreas wrote: >myscript.pl >> mylog.txt > >So far the command works fine, but I only get the direct output, I

Re: RegExp Question: removing anything but...

2002-05-21 Thread Tom Bryan
Try page #79 (Chapter 7) David Kramer wrote: > Im looking for a Regular Expression pattern that will allow me to remove everything >from a string but Numeric values. I could have sworn there was a simple way to do >this, but I cant find it anywhere in Chapter 5 of the Camel > > Thanks, >

Re: RegExp Question: removing anything but...

2002-05-21 Thread Michael D. Schleif
David Kramer wrote: > > Im looking for a Regular Expression pattern that will allow me to remove everything >from a string but Numeric values. I could have sworn there was a simple way to do >this, but I cant find it anywhere in Chapter 5 of the Camel Depending on your definition of `Num

RE: RegExp Question: removing anything but...

2002-05-21 Thread Arthur Conner
It is the not (^) digit (\d)= [^\d]+ Eg: print map{chr($_)} split(/[^\d]+/,<<_DEAD_ 74 Since 117 it 115 costs 116 a 32 lot 65 to 110 win, 111 And 116 even 104 more 101 to 114 lose, 32 You 80 and 101 me 114 bound 108 to 32 spend 72 some 97 time 99 Wond'rin 107 what 101 to 114 choose - 44 Hunt

RE: RegExp Question: removing anything but...

2002-05-21 Thread Timothy Johnson
I believe you can do something like this (but I can't test it right now): $string =~ s/[^\d]//g; #substitute every character that is not a digit with nothing -Original Message- From: David Kramer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 2:45 PM To: [EMAIL PROTECTED] Subjec

RegExp Question: removing anything but...

2002-05-21 Thread David Kramer
Im looking for a Regular Expression pattern that will allow me to remove everything from a string but Numeric values. I could have sworn there was a simple way to do this, but I cant find it anywhere in Chapter 5 of the Camel Thanks, DKramer z¹VŠ}öÙ¢žf¢–)à–+-=êåZ)÷ØfŠyb²Û®ð¶+

redirecting stderror

2002-05-21 Thread Wening Andreas
Hi, I want to start a script on my windows box like this: myscript.pl >> mylog.txt So far the command works fine, but I only get the direct output, I have also commands like "$h_ftp->debug(1);" which gives me the details of my ftp connection. If I start myscript.pl from a cmd prompt it works

Re: Verifying File Is In Path

2002-05-21 Thread Michael Mirman
At 03:57 PM 5/21/2002, rAuL wrote: >How can i verify with one call whether a file is in my path? @_ = grep(-e ($_ .= "/$file"), split(/;/, $ENV{PATH})); -- Mike Mirman Tel: (508) 647-7555 The Mathworks, Inc. FAX: (508) 647-7013

Verifying File Is In Path

2002-05-21 Thread rAuL
How can i verify with one call whether a file is in my path? Thanks ___ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs