RE: command output avoiding redirection

2001-02-05 Thread Christopher Hahn
Bill, Yes, you are correct. The only way to give the sneaky Perforce output no way of not going to the logile was to save STDOUT and STDERR and the reset STDOUT to be the logfile and to dup STDERR to that new file handle. ...I tried just dup'ing stderr to stdout before... ..but I musta s

Re: More efficient way to write?

2001-02-05 Thread SCOTT_SISSON
It looks like you got you answer, but here are a couple of other ideas. Instead of using /i in your regex - you can uc() or lc() the string first - I think this may be more efficient. Also, ['html', 'htm', 'doc'] can be written somehting like /\.htm[l]|\.doc/ (not tested- I think it is the co

RE: Win32 desktop values (was: Ptk - Titlebar color, Window icons)

2001-02-05 Thread erskine, michael
People, Marcus's original requirements were to set the display styles of a single Perl/Tk app - please continue this thread in the more appropriate news://comp.lang.perl.tk . Michael Erskine (MSEmtd) mailto:[EMAIL PROTECTED] ___ Perl-Win32-Users maili

RE: Win32 desktop values (was: Ptk - Titlebar color, Window icons)

2001-02-05 Thread Marcus
On 05.02.01 at 07:56 Joseph P. Discenza wrote: >These values are stored in the registry (at least in Win98), which >you can manipulate from Perl. The keys are in > >HKCU\Control Panel\Colors\ > >Try ActiveTitle & InactiveTitle. The numbers appear to be R G B >triples. Would this affect all other

Re: nmake was Re: modules compilation problem: missing separator????

2001-02-05 Thread Steven Wadding
At 04:48 PM 2/5/01 +1100, Sisyphus wrote: >Hi, >There's probably a later version of nmake than the one my link downloads :-) >Stuffed if I can find it, however. I did manage to find nmake15.exe on the Microsoft FTP site, from home. I hadn't found it before because I can't seem to get to FTP sit

Re: Disk Space and Free Space

2001-02-05 Thread Steven Wadding
At 08:12 AM 2/2/01 -0800, Asif Kaleem wrote: >Hello Community: > >Is there a way to find out how big the hard drive is and >how much free space is available using Perl on Win32 platform? I found a module to do this at CPAN. Go to:

RE: Ptk - Titlebar color, Window icons

2001-02-05 Thread Joseph P. Discenza
Marcus wrote, on Saturday, February 03, 2001 00:36 : On 02.02.01 at 17:44 Scott F wrote: : >This is a system-wide setting in Control Panel|Display on the : Appearance : >tab. : : I'm trying to change it from a Tk program for the application it : creates. These values are stored in the registry (

Re: Win32::API -- keybd_event

2001-02-05 Thread Aldo Calpini
Rafala, Michael wrote: > I've got a script that uses Win32::API to send an Esc key command > to the application with the focus. > > Because API.pm is not included in the standard release of > ActivePerl, I'd rather not have to use it. > > Is there another way to accomplish this? yes, you can use

Re: Check if a process is running????

2001-02-05 Thread timo . frey
Hello Jonathan, www.generation.net/~aminer/Perl/ Perl Win32 IProc module (By Amine Moulay Ramdane) version 1.32 (OS: WinNT-Win95/98,Perl: AS/GS ) This object oriented Perl module will allow you to have full control on your Win32 threads/processes(start,kill.wait,ps...). Note: This module

RE: Check if a process is running????

2001-02-05 Thread Martin Moss
ooops I forgot to mention that this lockfile system allows multiple instances of my script, just as long as each one is processing something different. Hence the split and multiple lines!! However I'm sure you get the gist now. Marty > -Original Message- > From: [EMAIL PROTECTED] > [mail

RE: Check if a process is running????

2001-02-05 Thread Martin Moss
Hi Jonathan, I'm not so sure about Windows perl, but In unix I use a couple of simple subroutines:- As long as the Kill command works in a simillar way you're fine, otherwise I'd be interested to know how it's done myself. &CheckLock; sub CheckLock { my %locks=(); if (-e $LOCKF

RE: Disk space and free disk space

2001-02-05 Thread Goodier, Colin R
Hi, Take a look at the example scripts for the 'Perl for Windows System Administration' book on O'Reilly's site. There's an ADSI script in there that shows the free disk space. Colin > -Original Message- > From: Asif Kaleem [SMTP:[EMAIL PROTECTED]] > Sent: 01 February 2001 21:54 > To:

Re: Check if a process is running????

2001-02-05 Thread Alloun, Jonathan
Title: Re: Check if a process is running Hello, I am using Activestate's Perl 5.6 version and before I run my Perl script I need to check if there already is a process running?? I will be scheduling the Perl script with Winat but before the script is run, I want to make sure there is n

Re: RegExp Question

2001-02-05 Thread Philip Newton
John Giordano wrote: > $grep_deferred = system ('findstr DeferredStatus response1'); > > print "$grep_deferred\n\n"; [snip] > $grep_deferred has this in it: > > src="/images/btnstats.gif" width=120 height=40 border=0 alt="Mail > Status"> Are you sure? Try printing out "bloop\nblip\n$grep_defer