Re: C#, Perl and COM objects (PerlNET / Win32::OLE)

2015-10-28 Thread Andy Grundman
Hi Miriam, I wish I could be more helpful, but unfortunately most of the PerlNET expertise here at ActiveState was with my predecessor, and I am still coming up to speed on it. You are probably already aware of it, but I would point you at this old book on PerlNET that may be of some help: http://

RE: C#, Perl and COM objects (PerlNET / Win32::OLE)

2015-10-23 Thread Jason Kirkwood
sisyph...@optusnet.com.au > To: miriam.he...@itk-austria.com; perl-win32-users@listserv.ActiveState.com > Subject: Re: C#, Perl and COM objects (PerlNET / Win32::OLE) > Date: Sat, 24 Oct 2015 00:56:19 +1100 > > From: Miriam Heinz > Sent: Friday, October 23, 2015 8:51 AM > To: perl-win32-us

Re: C#, Perl and COM objects (PerlNET / Win32::OLE)

2015-10-23 Thread sisyphus1
From: Miriam Heinz Sent: Friday, October 23, 2015 8:51 AM To: perl-win32-users@listserv.ActiveState.com Subject: C#, Perl and COM objects (PerlNET / Win32::OLE) > I would greatly appreciate any help - or advise on where to look further. Hi Miriam, This is a very inactive list, and you may well g

RE: PDF to Text

2015-04-28 Thread Phil Brewer
Hi A quick thank you to Greg and Leo for their suggestions. In the end we found that calling the "pdftotext" utility (available for most installations - Poppler Utilities) worked perfectly for us - and may help others looking to do the same thing. Phil Brewer From: Phil Brewer [mailto:

Re: PDF to Text

2015-04-19 Thread Leo Susanto
If that is the case, usually the pdf file is only an encapsulation of an image file. Then you need OCR. On Mon, Apr 20, 2015 at 5:34 AM, Phil Brewer wrote: > Hi > > > > Does anyone have any advise on converting a PDF to text, please (the data > I want to read is tabular)? > > I have used PDF::A

Re: PDF to Text

2015-04-19 Thread Suresh Govindachar
On 4/19/2015 3:34 PM, Phil Brewer wrote: > Hi > > Does anyone have any advise on converting a PDF to text, please (the > data I want to read is tabular)? > > I have used PDF::API2 to create PDFs before but it does not seem to be > able to read/parse them. I have also tried CAM::PDF but cannot get t

Re: PAR failure

2014-11-15 Thread John
Hi Rob Thanks for responding On 15/11/2014 2:21 AM, sisyph...@optusnet.com.au wrote: > -Original Message- From: John > Sent: Thursday, November 13, 2014 1:25 PM > To: pw32-users > Subject: PAR failure > >> Attempt to reload Config.pm aborted. > > I've not struck this error before. > If yo

Re: PAR failure

2014-11-14 Thread sisyphus1
-Original Message- From: John Sent: Thursday, November 13, 2014 1:25 PM To: pw32-users Subject: PAR failure > Attempt to reload Config.pm aborted. I've not struck this error before. If you google that error message you'll get a few hits. Do any of them help you at all ? Is your Config.

RE: SFTP

2014-10-28 Thread Hoopes, William @ CSG - CSE
On Windows, I am using use Net::SFTP::Foreign. Sample code: my $local_filesize = -s $ARCHIVEDIR."\\".$localfilename; my $sftp = Net::SFTP::Foreign->new($sftp_server,user=>$sftp_userid, password=>$sftp_passwd, ssh_cmd =>$sftp_path) or die "\nCould not connect to t

Re: SFTP

2014-10-27 Thread sisyphus1
From: Schwartz, Peter W Sent: Tuesday, October 28, 2014 2:44 AM To: perl-win32-users@listserv.ActiveState.com Subject: SFTP > I’m trying to locate an SFTP install for Windows (32-bit) but I can’t seem > to find anything in the PPM for some reason. Does anyone have any > recommendations on how

Re: SFTP

2014-10-27 Thread Justin Allegakoen
ile 2>$errorFile" > > The echo answers the caching prompt, the biggest gotcha that I have with > the process. > > From: Mike Malony [mailto:mhmal...@gmail.com] > Sent: Tuesday, 28 October 2014 9:22 AM > To: Ashley Hoff > Cc: Schwartz, Peter W; perl-win32-users@listserv.A

RE: SFTP

2014-10-27 Thread Ashley Hoff
er 2014 9:22 AM To: Ashley Hoff Cc: Schwartz, Peter W; perl-win32-users@listserv.ActiveState.com Subject: Re: SFTP I had much the same experience. I've used both PSFTP.exe from Putty and sftp.exe from Cygwin. In both cases I write a batch file and execute the exe via a system call.  

RE: SFTP

2014-10-27 Thread Schwartz, Peter W
| peter.w.schwa...@jpmorgan.com | jpmorgan.com From: Mike Malony [mailto:mhmal...@gmail.com] Sent: Monday, October 27, 2014 6:52 PM To: Ashley Hoff Cc: Schwartz, Peter W; perl-win32-users@listserv.ActiveState.com Subject: Re: SFTP I had much the same experience. I've used both PSFTP.exe from Putt

Re: SFTP

2014-10-27 Thread Mike Malony
I had much the same experience. I've used both PSFTP.exe from Putty and sftp.exe from Cygwin. In both cases I write a batch file and execute the exe via a system call. $RUNSTRING = "$main::sftpbin -b $SFTP_BATCH_FILE $SFTPLOGIN >> $TEMPLOG"; ## which translates to ##'c:\cygwin\bin\sftp -b c:\w

RE: SFTP

2014-10-27 Thread Ashley Hoff
Not sure if you are going to get much more of a response Peter - this mail list seems pretty dead. As far as I know, it's not an easy task to actually get SFTP client functionality in Perl. I've had plenty of issues over the years, that I gave up trying to find a Perl module that will do what

Re: why does perl critic not like @_

2014-08-21 Thread Gabor Szabo
I've never seen people using @_ as some kind of a temporary variable and I think this practice should be discouraged. Probably Perl::Critic should have a policy finding and reporting such cases as this is just confusing. @_ is a special variable to receive function parameters. Gabor http://perlmav

Re: why does perl critic not like @_

2014-08-19 Thread Robert W Weaver
John wrote: > I have just started using perl critic to analyse my code. > > I have often used @_ as a temporary array like this: [..] > Critic complains with 'Always unpack @_ first', why? > What is so wrong with this usage? anthony.okusa...@usbank.com gave an excellent response to what perl crit

Re: why does perl critic not like @_

2014-08-18 Thread anthony . okusanya
Perl critic is simply trying to ensure that you code follows Perl Best Bractices I use perltidy and perlcritic on all my perl code to keep it need and readable. to your question though according to Damian Conway's book (perl best practices) which is what perlcritic uses by default as a guide, Pe

RE: Request for more functionality in Math::BigFloat

2014-07-01 Thread Geoff Horsnell
e.com Subject: Re: Request for more functionality in Math::BigFloat - Original Message - From: "Geoff Horsnell" To: Sent: Wednesday, July 02, 2014 12:34 AM Subject: Request for more functionality in Math::BigFloat > Has anyone extended the Math::BigFloat package to includ

Re: Request for more functionality in Math::BigFloat

2014-07-01 Thread Sisyphus
- Original Message - From: "Geoff Horsnell" To: Sent: Wednesday, July 02, 2014 12:34 AM Subject: Request for more functionality in Math::BigFloat > Has anyone extended the Math::BigFloat package to include such niceties as > the INT function, or remaindering? I need to be able to do s

Fwd: Re: Q: looking for some AutoIT functionality in Perl

2014-05-31 Thread John
Resending in case it might be useful, sorry it bounced last time. Original Message Subject: Re: Q: looking for some AutoIT functionality in Perl Date: Tue, 13 May 2014 13:43:06 +1000 From: John McMahon Reply-To: j...@jspect.fastmail.com.au To: perl-win32-users

Re: trouble doing regex in file containing both ascii and binary content

2014-02-15 Thread Richie
I haven't had time to test my theory so I didn't respond. Since he had said text and binary my thoughts where that the regex would not match past the first linefeed and would need to be updated accordingly. On 2/15/2014 6:33 AM, sisyph...@optusnet.com.au wrote: Hi Greg, This list is all but

Re: trouble doing regex in file containing both ascii and binary content

2014-02-15 Thread sisyphus1
Hi Greg, This list is all but dead – it may be that you and me are the only people receiving mail from it. Much better, IMO, to post these types of questions to perlmonks. Anyway ... this might help: # use strict; use warnings; my $str = "\x1F\x8B\x08"; print "

RE: help dbd-anydata / dbi-dbd-sqlengine issue

2013-05-20 Thread Brian Raven
> -Original Message- > From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- > win32-users-boun...@listserv.activestate.com] On Behalf Of John > Sent: 19 May 2013 05:04 > To: pw32-users > Subject: help dbd-anydata / dbi-dbd-sqlengine issue > > Hi > > Several years ago I dab

RE: TK Listbox problem; need help

2013-05-08 Thread Ken Slater
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Daniel Burgaud Sent: Wednesday, May 08, 2013 12:11 AM To: Perl-Win32-Users Subject: TK Listbox problem; need help > Hi, > Below is the script I have. > 1. Listbox i

RE: Win32::OLE Module - Excel chart Generation Problem

2013-04-17 Thread Steven Manross
While I don't have your exact setup, this script works fine in perl 5.8 (32-bit), Excel 2003 (32-bit) on Win Server 2003 (32-bit).. Yes, it's a dated config.. But it's running fine for now. As well, I ran this on Win7 (x64), Perl 5.8 (32-bit), Excel 2010 (32-bit). it worked fine again. (Which

RE: confused by use of 'implied' variable

2013-04-08 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg VisionInfosoft Sent: 05 April 2013 21:16 To: Perl-Win32-Users@listserv.ActiveState.com Subject: confused by use of 'implied' variable > im butchering a public scri

Re: confused by use of 'implied' variable

2013-04-05 Thread will trillich
Greg -- The "shortcuts" us the perl variable $_. That is, when no specific argument is supplied, $_ is used by default. s/x/y/; while ( <> ) {...} print; All the above and more expect a value to work with, and if none is given, perl uses $_ by default. You get into trouble when you have a

Re: 'moving' an activeperl install to a new machine (xp to windows 7)

2013-03-15 Thread Jan Dubois
On Fri, Mar 15, 2013 at 1:12 PM, Greg VisionInfosoft wrote: > hi all, ive got a wonderfully working activeperl 5.8.9 environment > that was originall setup on Windows XP. > > so that i dont need to reinstall the many, many packages that ive > ammased throughout the years - i had the thought to sim

RE: 'moving' an activeperl install to a new machine (xp to windows 7)

2013-03-15 Thread Wagner, David --- Sr Programmer Analyst --- CFS
>-Original Message- >From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32- >users-boun...@listserv.activestate.com] On Behalf Of Greg VisionInfosoft >Sent: Friday, March 15, 2013 14:12 >To: Perl-Win32-Users@listserv.ActiveState.com >Subject: 'moving' an activeperl ins

RE: button with multiple font sizes

2013-03-13 Thread Brian Raven
Dan, Tk::Button only allows for text in a single font, as you have probably discovered. However, it does let you use an image. If you can render the text you want as an image (e.g. GD?), that that might be a way to go. HTH -- Brian Raven From: perl-win32-users-boun...@listserv.activestate.com

Re: TK: button with multiple font sizes

2013-03-12 Thread Jack
On 12/03/2013 7:56 PM, Daniel Burgaud wrote: > Hi > > I need a button with a big label and below it, description of the button. > > I dont know how to make a TK button with multiple font size. > If not button, any TK object, clickable, and multiple font size capable. use Tk; use strict; my $mw = t

RE: perl to web-scrape an html page that requires 'Javascript' to fully render

2013-02-15 Thread Ken Cornetet
Use OLE to drive IE and scrape the results. Here's a snippet of code that I used years ago to check warrantee expiration on a list of HP servers. The HP web page used javascript and redirections before finally ending up on the page with the data. my $parms = 'country=US&' .

Re: perl to web-scrape an html page that requires 'Javascript' to fullyrender

2013-02-15 Thread sisyphus1
Hi Greg, This is one of the many things that I don’t know much about. My first thought was WWW::Mechanize might be the way to go, but I found this in the WWW::Mechanize documentation: [quote] Please note that Mech does NOT support JavaScript, you need additional software for that. Please check "

RE: Unicode, Null Code or Something Else

2013-01-24 Thread Paul Rousseau
Thank you Glenn. open(my $file,"<:encoding(UTF-16)", $filename) This works. Paul Date: Thu, 24 Jan 2013 09:39:49 -0800 From: v+p...@g.nevcal.com To: perl-win32-users@listserv.ActiveState.com Subject: Re: Unicode, Null Code or Something Else On 1/24/2013 9:36 AM,

Re: Unicode, Null Code or Something Else

2013-01-24 Thread Glenn Linderman
On 1/24/2013 9:36 AM, Paul Rousseau wrote: Hello Perl forum. I am attempting to parse a file that contains a format I am not familiar with. I read in a record and assign it to $string. $string = "N o r m a n d v i l l e A d m i n" When I dump the string using this code, while ($string =~ /.

Re: 'mysplit' ???

2012-11-26 Thread Greg Aiken
duh... thanks tons! On Mon, Nov 26, 2012 at 8:37 AM, Tobias Hoellrich wrote: > *From:* perl-win32-users-boun...@listserv.activestate.com [ > mailto:perl-win32-users-boun...@listserv.activestate.com] > *On Behalf Of *Greg Aiken > *Sent:* Monday, November 26, 2012 9:19 AM > *To:* Perl-Win32-Users

RE: 'mysplit' ???

2012-11-26 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: 26 November 2012 16:19 To: Perl-Win32-Users@listserv.activestate.com Subject: 'mysplit' ??? > i just ran across a perl recursion example that i am tryi

RE: 'mysplit' ???

2012-11-26 Thread Tobias Hoellrich
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: Monday, November 26, 2012 9:19 AM To: Perl-Win32-Users@listserv.ActiveState.com Subject: 'mysplit' ??? i just ran across a perl recursion example that

RE: How to know a closed Socket?

2012-11-26 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Daniel Burgaud Sent: 25 November 2012 16:37 To: Perl-Win32-Users Subject: How to know a closed Socket? > Hi > > If I opened a socket connection: > > $web = new IO::Sock

Re: In need to efficiently retrieve HTTP

2012-11-24 Thread Jenda Krynicky
- Because it's all backwards! - Why is that? - Because it's hard to read. - Why? - Please do not top post! From: Tobias Hoellrich > Hi Daniel - > http://stackoverflow.com/questions/6473785/improving-lwpsimple-perl-performance > should bring you on the right track. If you want to avoid multiple

Re: Need help with Data Structure: array of hash

2012-11-23 Thread Andy_Bach
> I am having problem with array and Hash data structure. Example is show below: #CODE 1 my @list; my %this; $this{x} = 1; $this{y} = 2; $this{z} = 3; $this{Z} = 4; Better (maybe): my %this = ( x => 1, y => 2, z => 3, Z => 4, ) push @list, %this; > The las

Re: Need help with Data Structure: array of hash

2012-11-22 Thread Justin Allegakoen
On 23 November 2012 08:23, Daniel Burgaud wrote: > Hi All, > > I am having problem with array and Hash data structure. Example is show > below: > > #CODE 1 > my @list; > my %this; > $this{x} = 1; > $this{y} = 2; > $this{z} = 3; > $this{Z} = 4; > push @list, %this; > > My intention above is to hav

RE: In need to efficiently retrieve HTTP

2012-11-21 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Tobias Hoellrich Sent: 21 November 2012 14:45 To: Daniel Burgaud Cc: Perl-Win32-Users Subject: RE: In need to efficiently retrieve HTTP > Hi Daniel - >

RE: In need to efficiently retrieve HTTP

2012-11-21 Thread Tobias Hoellrich
Hi Daniel - http://stackoverflow.com/questions/6473785/improving-lwpsimple-perl-performance should bring you on the right track. If you want to avoid multiple threads/processes then "Keep-Alive" most likely will give you the biggest performance gain. The TCP connection stays open after you made

RE: How to Use XML::Parser to Reduce an XML file to what is wanted

2012-11-05 Thread Paul Rousseau
e is the result. 11-30.PLC.Global.ES23_0001.Latched Thank you. Paul > From: je...@krynicky.cz > To: perl-win32-users@listserv.activestate.com > Date: Thu, 1 Nov 2012 18:20:06 +0100 > Subject: Re: How to Use XML::Parser to Reduce an XML

Re: dealing with Win32::OLE in when on non-win32 platforms?

2012-11-02 Thread Jan Dubois
On Fri, Nov 2, 2012 at 2:39 PM, Dave Horner wrote: > Hello, > > I found this address from the following: > http://vlsicad.ucsd.edu/Resources/SoftwareLinks/ActivePerl/Perl-Win32/perlwin32faq12.html > > I am looking for guidance on how to use Win32::OLE qw(in) on multiple > platforms. > It works fi

Re: How to Use XML::Parser to Reduce an XML file to what is wanted

2012-11-01 Thread Jenda Krynicky
From: Paul Rousseau > I have an .xml file that I want to search for specific items, ignoring the > remaining items. > > I want to be able to maintain the .xml file integrity, so I want to open the > original and after finding what I am looking for, dump the results to a > second file. > > I am

RE: How to Use XML::Parser to Reduce an XML file to what is wanted

2012-10-31 Thread Clarke, Dave S
This looks like a good application for XML::Twig. The SYNOPSIS for that module shows examples of how to setup handlers for matching and processing an XML file. HTH, Dave Clarke From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-b

RE: Need help with TK DirTree

2012-10-29 Thread Brian Raven
Not the first time a question like this has been asked. Take a look at this link, which may point you in a useful direction. http://www.perlmonks.org/?node_id=170334 -- Brian Raven From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com

Re: Help with Win32::GUI

2012-09-07 Thread Jack
On 07/09/2012 12:48 PM, Barry Brevik wrote: > I am lost with this simple app, and I hope I am posting to the correct > list; the Sourceforge list appears to dead. > > Anyway, the problem is with the event model (I guess). I have 2 fields > and all I want is when the user presses ENTER or TAB in the

Re: cairo module 1.1 installs, but doesnt run...

2012-08-19 Thread Sisyphus
- Original Message - From: "Greg Aiken" > if it matters, i just installed the module using PPM gui to Perl 5.8.8 > build 820 > the module installed 'normally' without any errors being thrown, yet > the test script failed immediately upon 'use Cairo'; I can't really answer the question

RE: Is there a range of Standard Perl Exit Codes?

2012-08-15 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Ashley Hoff Sent: 15 August 2012 03:52 To: perl-win32-users@listserv.activestate.com Subject: Is there a range of Standard Perl Exit Codes? > Greetings All, > This inf

RE: trouble understanding/using file handle in a sub routine

2012-08-10 Thread Brian Raven
> -Original Message- > From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- > win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken > Sent: 10 August 2012 01:22 > To: Perl-Win32-Users@listserv.activestate.com > Subject: trouble understanding/using file handl

Re: Win32::Fileop choose multiple directories

2012-07-30 Thread Jenda Krynicky
From: Arjun Roychowdhury Date sent: Mon, 23 Jul 2012 16:47:08 -0400 Subject:Re: Win32::Fileop choose multiple directories To: perl-win32-users@listserv.activestate.com > Thank you. That's unfortunate. > Is multipl

Re: Win32::Fileop choose multiple directories

2012-07-24 Thread Arjun Roychowdhury
Thanks Jenda. It seems CommonDialog is only from Vista onwards. I unfortunately have a lot of XP users as well. I think the only way is for me to create a custom widget, or revert to the less intuitive Tk FileSelect family. regds On Mon, Jul 23, 2012 at 4:43 PM, Jenda Krynicky wrote: > From: Arj

Re: Win32::Fileop choose multiple directories

2012-07-23 Thread Arjun Roychowdhury
Thank you. That's unfortunate. Is multiple directory selection all that strange? My usecase is that I am writing a tool to upload a whole bunch of folders to a cloud service and they are not necessarily inside one neat directory... regds On Mon, Jul 23, 2012 at 4:43 PM, Jenda Krynicky wrote: >

Re: Win32::Fileop choose multiple directories

2012-07-23 Thread Jenda Krynicky
From: Arjun Roychowdhury > Hi, I am looking for a perl API that presents a windows style dialog > to users and allows them to select multiple folders. While perl::Tk > has FileSelect and DirTree etc they don't have the native windows look > and feel. > In reading > http://search.cpan.org/~jenda/W

RE: Help with LookupAccountSID (again)

2012-07-18 Thread Barry Brevik
nd of call into an XS module or something. Thank you for posting, Barry Brevik -Original Message- From: Steven Manross [mailto:ste...@manross.net] Sent: Wednesday, July 18, 2012 5:07 PM To: Barry Brevik; perl Win32-users Subject: RE: Help with LookupAccountSID (again) What about the foll

RE: Help with LookupAccountSID (again)

2012-07-18 Thread Steven Manross
What about the following... Excerpt from: http://cpansearch.perl.org/src/TEVERETT/Win32-Security-0.50/lib/Win32/Se curity/SID.pm sub ConvertStringSidToSid { my($text) = @_; my(@Values) = split(/\-/, $text); (shift(@Values) eq 'S' && scalar(@Values) >= 3) or return;

RE: Help with LookupAccountSID (again)

2012-07-18 Thread Barry Brevik
@listserv.ActiveState.com Subject: RE: Help with LookupAccountSID (again) Found a Perl solution. Here you go: http://search.cpan.org/dist/Win32-Security/lib/Win32/Security/SID.pm -Original Message- From: Barry Brevik [mailto:bbre...@stellarmicro.com] Sent: Wednesday, July 18, 2012 2:46 PM To: Howard

RE: Help with LookupAccountSID (again)

2012-07-18 Thread Howard Tanner
: RE: Help with LookupAccountSID (again) I tried to implement that call using Win32::API, but I just don't know enough about Windows to make it work. Thank you for posting, Barry Brevik -Original Message- From: Howard Tanner [mailto:tan...@optonline.net] Sent: Wednesday, July 18, 2012

RE: Help with LookupAccountSID (again)

2012-07-18 Thread William . Hoopes
lf Of Barry Brevik Sent: Wednesday, July 18, 2012 2:45 PM To: Cordoni, Ray; perl Win32-users Subject: RE: Help with LookupAccountSID (again) Ay Caramba!! I thank you for the post, but my skills are too low to reverse that monstrosity! Barry Brevik -Original Message- From: Cordoni, Ray [ma

RE: Help with LookupAccountSID (again)

2012-07-18 Thread Barry Brevik
Win32-Users@listserv.ActiveState.com Subject: RE: Help with LookupAccountSID (again) Sorry, forgot to copy the group. Here's what I sent to Barry: The Win32 API to do that is ConvertStringSidToSid: http://msdn.microsoft.com/en-us/library/windows/desktop/aa376402(v=vs.85 ).as px My Perl is

RE: Help with LookupAccountSID (again)

2012-07-18 Thread Barry Brevik
Ay Caramba!! I thank you for the post, but my skills are too low to reverse that monstrosity! Barry Brevik -Original Message- From: Cordoni, Ray [mailto:rcord...@richmond.ca] Sent: Wednesday, July 18, 2012 11:38 AM To: Barry Brevik; perl Win32-users Subject: RE: Help with

RE: Help with LookupAccountSID (again)

2012-07-18 Thread Howard Tanner
Sorry, forgot to copy the group. Here's what I sent to Barry: The Win32 API to do that is ConvertStringSidToSid: http://msdn.microsoft.com/en-us/library/windows/desktop/aa376402(v=vs.85).as px My Perl isn't strong enough to know how to call this from Perl, but I'm sure someone stronger in Perl c

Re: Template Toolkit on Windows 7

2012-07-11 Thread Dennis Daupert
Geez, ask for a little help, and you get an encyclopedia ;-) Lots to chew on. Thanks Mike, Howard, Leo, and Martin. for the lessons. I did open a cmd prompt as administrator, and invoked ttree. This time when I told him to create the .ttreerc file, he dutifully did so at c:\, so I can now contin

Re: Template Toolkit on Windows 7

2012-07-11 Thread Arms, Mike
Dennis Daupert [ddaup...@csc.com] wrote: > > Run the script or cmd as admin (right click on the command icon, > > select run as admin) would probably help > > This is a Perl script, configure.pl, no command icon to click on. > Is there another way I can run it as admin? > > best, > > /dennis M

RE: Template Toolkit on Windows 7

2012-07-11 Thread Howard Tanner
estate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Dennis Daupert Sent: Wednesday, July 11, 2012 1:48 PM To: leosusa...@gmail.com Cc: perl Win32-users Subject: Re: Template Toolkit on Windows 7 > Run the script or cmd as admin (right click on the command icon, > sele

Re: Template Toolkit on Windows 7

2012-07-11 Thread Dennis Daupert
> Run the script or cmd as admin (right click on the command icon, > select run as admin) would probably help This is a Perl script, configure.pl, no command icon to click on. Is there another way I can run it as admin? best, /dennis Upcoming time off: none planned ---

Re: Template Toolkit on Windows 7

2012-07-11 Thread leosusanto
Run the script or cmd as admin (right click on the command icon, select run as admin) would probably help Sent on the Sprint® Now Network from my BlackBerry® -Original Message- From: Dennis Daupert Sender: perl-win32-users-boun...@listserv.activestate.com Date: Wed, 11 Jul 2012 09:07:44

RE: Win32::LookupAccountSID()

2012-07-10 Thread Barry Brevik
Thanks for posting!! -Original Message- From: Ken Cornetet [mailto:ken.corne...@kimball.com] Sent: Tuesday, July 10, 2012 11:39 AM To: Barry Brevik; perl Win32-users Subject: RE: Win32::LookupAccountSID() http://code.activestate.com/lists/perl-win32-users/26301/ -Original Message

RE: Win32::LookupAccountSID()

2012-07-10 Thread Ken Cornetet
http://code.activestate.com/lists/perl-win32-users/26301/ -Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Barry Brevik Sent: Tuesday, July 10, 2012 2:28 PM To: perl Win32-users Subject: Win

RE: Okay, hand me my dunce-cap

2012-06-25 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Rothenmaier, Deane Sent: 15 June 2012 16:48 To: perl-win32-users@listserv.ActiveState.com Subject: Okay, hand me my dunce-cap > foreach my $key (124..155) { >$cs_ke

RE: New W2K8 I/O priority

2012-06-23 Thread Gianvittorio Negri
age- From: Barry Brevik [mailto:bbre...@stellarmicro.com] Sent: Thursday, June 21, 2012 1:13 AM To: Gianvittorio Negri; Perl-Win32-Users@listserv.activestate.com Subject: RE: New W2K8 I/O priority I have used the approximate code below many times, and since you can control the priority of the proc

RE: New W2K8 I/O priority

2012-06-20 Thread Barry Brevik
I have used the approximate code below many times, and since you can control the priority of the process, it may work for you. Of course, the Perl program that you launch using the scheduler would have to use the technique below to launch the 'real' Perl program. Use Win32; Use Win32::Process;

RE: active directory cookbook

2012-06-19 Thread Brzezinski, Paul J
> -Original Message- > From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- > win32-users-boun...@listserv.activestate.com] On Behalf Of John Mason > Jr > Sent: Tuesday, June 19, 2012 5:43 PM > To: perl-win32-users@listserv.ActiveState.com > Subject:

Re: active directory cookbook

2012-06-19 Thread John Mason Jr
On 6/18/2012 2:50 PM, Gomes, Rich wrote: > This may be a long shot but worth a try. > The author of Active Directory Cookbook used to have perl scripts for the > examples given in the book (mainly VBScript) on his website: > http://rallenhome.com/books/adcookbook2 > > That's been down for a while

RE: active directory cookbook

2012-06-18 Thread Brzezinski, Paul J
> -Original Message- > From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- > win32-users-boun...@listserv.activestate.com] On Behalf Of David N. > Blank-Edelman > Sent: Monday, June 18, 2012 7:42 PM > To: perl-win32-users@listserv.ActiveState.com >

Re: active directory cookbook

2012-06-18 Thread David N. Blank-Edelman
Hi Rich- On Jun 18, 2012, at 3:00 PM, perl-win32-users-requ...@listserv.activestate.com wrote: > The author of Active Directory Cookbook used to have perl scripts for the > examples given in the book (mainly VBScript) on his website: > http://rallenhome.com/books/adcookbook2 > > That's been do

Re: limiting keys(%hash)

2012-06-16 Thread Gabor Szabo
On Fri, Jun 15, 2012 at 10:29 AM, Rothenmaier, Deane wrote: > Yes, it’s Yet Another Noob Question, but the Camel stands mute… > > > > Is there a way of limiting keys()?  I want to change some values in a hash, > the values to change or not depending on the value of their keys. > > > > I.e.: > > my

Re: naive LWP::Get question (perhaps JavaScript related?)

2012-06-09 Thread rocku
Hello, If you can use Firefox, there is a handy extension - HttpFox, which displays all requests which are sent to the server (including AJAX). This way you can forge the same request in your perl script and call it just like client side browser script does. Pozdrawiam, rocku rock...@gmail.com

RE: naive LWP::Get question (perhaps JavaScript related?)

2012-06-08 Thread Conor
Have you looked at WWW::Salesforce? It requires a little more setup than a straight LWP call (and relies on SOAP::Lite), but is going to be a lot more reliable than screen scraping. -Conor On Jun 8, 2012 1:08 PM, "Ken Cornetet" wrote: > If you are on windows, you can “drive” IE via OLE, and scr

RE: naive LWP::Get question (perhaps JavaScript related?)

2012-06-08 Thread Ken Cornetet
If you are on windows, you can "drive" IE via OLE, and screen-scrape the results. Here's a bit of code I used some time ago (way back when we had physical servers) to get the warrantee information from an HP web site. sub GetWarranty { my $serial = shift; my $pr

RE: win32 and modifying a file

2012-06-08 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: 07 June 2012 23:08 To: Perl-Win32-Users@listserv.activestate.com Subject: win32 and modifying a file > dear win32 perl users, ive never actually known

Re: win32 and modifying a file

2012-06-08 Thread Angelos Karageorgiou
Forgive me for being dense here for a moment, but isn't it the case that in any text file, or any kind of file for that matter, editing in place is overwriting data in subsequent bytes ? So every single time I had to modify the middle of a file I had to do exactly what you describe. It has not

RE: win32 and modifying a file

2012-06-07 Thread bulk 88
> Date: Thu, 7 Jun 2012 15:08:08 -0700 > Subject: win32 and modifying a file > From: gai...@visioninfosoft.com > To: Perl-Win32-Users@listserv.activestate.com > > dear win32 perl users, ive never actually known how to 'modfiy' a file > using perl on win32

Re: win32 and modifying a file

2012-06-07 Thread Justin Allegakoen
-8<--- > PS. Not sure that this is of any help to you as I ended up having two files. > But at least it may illustrate some more power in Perl. -8<--- Windows doesn't allow in place editing, so on DOS you're left with an extra move

RE: win32 and modifying a file

2012-06-07 Thread Arms, Mike
> -Original Message- > From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- > win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken > Sent: Thursday, June 07, 2012 4:08 PM > To: Perl-Win32-Users@listserv.activestate.com > Subject: [EXTERNAL] win32 and modify

Re: Perl-Win32-Users Digest, Vol 70, Issue 2

2012-06-05 Thread Robert W Weaver
perl-win32-users-boun...@listserv.activestate.com wrote on 06/05/2012 03:00:02 PM: > A non-text attachment was scrubbed... > Name: pullFromEventLog.pl It was a text attachment, you silly little program... Well, I don't know how to get my mailer to send text only, so I can't blame it much. Its

RE: Perl-Win32-Users Digest, Vol 70, Issue 1

2012-06-05 Thread Robert W Weaver
"Barry Brevik" wrote on 06/04/2012 06:34:07 PM: > Thank you for the detailed response, even if it is depressing. Don't think of it as depressing, think of it as an opportunity. Gathering all your logs could provide more insight into your environment. Attached is a toy I wrote. The idea is to

RE: Perl-Win32-Users Digest, Vol 70, Issue 1

2012-06-04 Thread Barry Brevik
Thank you for the detailed response, even if it is depressing. Barry Brevik > On the other hand, if you are really asking the question "from", > you have to go to the event logs; there, you can get if a login > was local or via the network.  The problem, of course, is that it > is very transitory

Re: Perl-Win32-Users Digest, Vol 70, Issue 1

2012-06-04 Thread Robert W Weaver
perl-win32-users-boun...@listserv.activestate.com wrote on 06/04/2012 03:00:03 PM: > I have a need to determine which client machine a given user (or all > users) has logged into the domain from. > > I'm willing to back into it by starting with all client machines. I'm If you can access via WMI,

RE: help with Win32

2012-06-04 Thread Steven Manross
Well, for starters... The information is in your eventlogs on ALL the domain controllers (collectively). So, WMI and the Win32_Eventlog class is a good place to start (via Win32::OLE). http://www.manross.net/download.aspx?file=/perl/scripts/wmi-generic.pl C:\perl\scripts>perl wmi-Generic.pl D

RE: help with Win32

2012-06-04 Thread William . Hoopes
To the best of my knowledge (I'd love to be wrong here), this information does not exist. Best case scenario, you'd have to turn on some audit flags and from there parse event log information. Also, this would only work from a point in time. We chose to leverage a logon script with a sub routine

RE: dbd-anydata - i cant get it to INSERT new records

2012-05-11 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: 11 May 2012 01:15 To: Perl-Win32-Users@listserv.activestate.com Subject: dbd-anydata - i cant get it to INSERT new records > dear win32 perl users, ..

Re: Win32::MMF help needed

2012-05-04 Thread bulk 88
After an IRC chat with haratron I made this sample code of how to use Win32::MMF raw C style. Without the proprietary Storeable cough cough RPC layer that doesn't let you normally use Win32::MMF for non Perl to Perl IPC communications. The 2 scripts must be in the same folder for them to work.

RE: Hash Key function puzzlement -- a point of information query

2012-05-03 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Rothenmaier, Deane Sent: 03 May 2012 17:08 To: perl-win32-users@listserv.ActiveState.com Subject: Hash Key function puzzlement -- a point of information query > Gurus,

RE: Hash Key function puzzlement -- a point of information query

2012-05-03 Thread Tobias Hoellrich
ier, Deane; perl-win32-users@listserv.ActiveState.com > Subject: Re: Hash Key function puzzlement -- a point of information query > > What Leo said. keys(%hash) returns the keys from the hash as an array, you > can't assign to it AFAIK. > > On Thu, May 3, 2012 at 10:18 AM, Leo Susanto > w

Re: Hash Key function puzzlement -- a point of information query

2012-05-03 Thread Aaron Hawryluk
What Leo said. keys(%hash) returns the keys from the hash as an array, you can't assign to it AFAIK. On Thu, May 3, 2012 at 10:18 AM, Leo Susanto wrote: > keys is a function, it doesn't take in value > > On Thu, May 3, 2012 at 9:08 AM, Rothenmaier, Deane > wrote: >> Gurus, >> >> >> >> Given some

  1   2   3   4   5   6   7   8   9   10   >