RE: Rebuild (and check) documentation?

2006-12-10 Thread Allegakoen, Justin Devanandan
-8-- I do remember something long ago where someone gave me a short perl script to generate the documentation, but I have long since lost the script. -8-- You're not looking for the following are you? % perl -MActivePerl::DocTools -e UpdateHTML(wait) Just

RE: what?!? [OT]

2006-10-17 Thread Allegakoen, Justin Devanandan
--8--- I wish we could have a y2k hype scare every year. I made a bundle in 99' testing for y2k compatibility. Anyone else? --8--- I thought the next hype to wait for was Jan 19th 2038 03:14:07 Isn't that the max for 32 bit machines and their date representation? Just in

RE: Net-SFTP and ppm

2006-10-15 Thread Allegakoen, Justin Devanandan
-8 PPM is one of question but main question is that SFTP can be working on Win32. -8 The short answer based on my experience is it's supposed to work but I couldn't get it to work. I gave up and downloaded PuTTY and used pscp.exe specifically as a system call (YIKES)! to

RE: Opening an Excel workbook with links to other data sources

2006-04-19 Thread Allegakoen, Justin Devanandan
---8 When I manually open an Excel file, it bring up a dialog box stating that the workbook contains links to other data sources and asking if the data should be updated. ---8 Try and see if you can supress the pop up with this:- $Excel-{DisplayAlerts} = 0;

RE: Opening an Excel workbook with links to other data sources

2006-04-19 Thread Allegakoen, Justin Devanandan
---8--- Just-in's other suggestion was If not you may have to fudge something with Win32::GuiTest, but didn't elaborate on the something ... ---8--- Going down the GuiTest path is forcing things in a less than elegant way. Why not have a dig around in the Object browser

RE: List Installed Font Names?

2006-03-14 Thread Allegakoen, Justin Devanandan
--8--- I would start by looking in Scriptomatic for a WMI call into the fonts system. And then use that with the standard OLE perl thingy to get the information. Of course if u just listed the fonts directory u would have to decode the font files urself to get their presentation

RE: List Installed Font Names?

2006-03-13 Thread Allegakoen, Justin Devanandan
8-- Can anyone suggest a way to make a list of the names of the fonts installed on a Windows system? -- Thanks 8-- use strict; use warnings; my @Fonts; my $Dir = $ENV{'windir'}\\Fonts; chdir $Dir or die Cant cd to $Dir:- $!; foreach my $Font(*) { push @Fonts,

RE: Win32::TaskScheduler: local host?

2006-03-01 Thread Allegakoen, Justin Devanandan
--8 I've found that if I create a new TaskScheduler, then by default it operates on the local host. But if I change it to point at another host, then want to point it back at the local host, I don't know how, without knowing the name of the local host. It isn't convenient, the

RE: Win32::API Help

2006-02-16 Thread Allegakoen, Justin Devanandan
---8-- in my netapi32.dll there is no DsEnumerateDomainTrusts, it contains a DsEnumerateDomainTrustsW and DsEnumerateDomainTrustsA version of this call. From the Win32::API docs: Also note that many Win32 APIs are exported

RE: Copy vs Add when adding sheets to a workbook past 255

2006-01-22 Thread Allegakoen, Justin Devanandan
8--- why does the Add function work here past a sheetcount of 255, when the Copy function that I mentioned in my original post, throws an error when when the sheetcount 255 ??? I should have mentioned in my original post that I have an existing Excel sheet that

RE: Intercept onset of hibernation with alarm

2006-01-19 Thread Allegakoen, Justin Devanandan
---8 On some (perhaps all) laptops running Windows XP closing the lid puts the system into hibernation. ---8 You can override this setting: start - Settings - Control Panel - Power options - Advanced and select 'Do nothing' When I close the lid of my portable

RE: :SSH::W32Perl - Redirecting output only?!?

2006-01-18 Thread Allegakoen, Justin Devanandan
8- use Net::SSH::W32Perl; my $ssh = Net::SSH::W32Perl-new($host, debug=1); $ssh-login('x', 'x'); my($stdout, $stderr, $exit) = $ssh-cmd('ls', \n); print $stdout\n$stderr\n$exit\n;

RE: How to create Hyperlink inside Excel cells using Perl's OLEautomation

2006-01-16 Thread Allegakoen, Justin Devanandan
8-- It works well but I'm searching something particular. I need to write a hyperlink inside a cell and displaying something else as the text. 8-- You should record a macro and convert the generated VBA to Perl to see where youre going. The trick with this is to treat

RE: Hi, I want use perl do the fellowing thing, But I don't know how to......

2006-01-03 Thread Allegakoen, Justin Devanandan
8- I use doxygen help me create a document for a project which contain thousands of .html files and spend about 2 hours. But when I open the index.html I find that the title I used is wrong So I must modify this title. I come here to get some help that I

Not::SSH::xPerl and SFTP driving me potty

2006-01-02 Thread Allegakoen, Justin Devanandan
I hope the list can help contribute a complete working solution to this so that it's documented in at least one place. I've been digging around all over the place with testimonies that Net::SSH::W32Perl with Net::SFTP works, but it's evading me. It still seems that soulcage.net is down, but Randy

RE: :SSH::xPerl and SFTP driving me potty

2006-01-02 Thread Allegakoen, Justin Devanandan
PROTECTED] On Behalf Of Allegakoen, Justin Devanandan Sent: Tuesday, January 03, 2006 12:52 PM To: Perl-Win32-Users@listserv.ActiveState.com Subject: Not::SSH::xPerl and SFTP driving me potty I hope the list can help contribute a complete working solution to this so that it's documented in at least

What happened to soulcage?

2005-12-25 Thread Allegakoen, Justin Devanandan
List, Anyone know where I can get hold of Net-SSH-W32Perl.ppd with all the supporting ppds? Soulcage.net has been down for at least a week now, and Scott doesn't seem to be answering his e-mail. I promptly gave up trying to manually install when I lost count of the amount of prerequisite

RE: using Win32::OLE to copy or copy a range from one sheet to another

2005-12-06 Thread Allegakoen, Justin Devanandan
---8--- I've been using Perl for a number of years, ---8--- And you post code with no use strict and warnings? :p Actually what you posted fails to run. So I tidied it up a bit and got this to copy and paste as you desired. Do allow for line wrap. CODE use

RE: rand() not so random

2005-11-29 Thread Allegakoen, Justin Devanandan
8--- Has anyone else noticed this? And has anyone at ActiveState noticed it and if so is anything being done about it? What I'm talking about is the rand() function that doesn't seem to be so random after all. Atleast 4 times now, over a multi day period, it has spit out the

RE: filename sorting by last letter in the filename

2005-10-11 Thread Allegakoen, Justin Devanandan
-8- #build an array of our alphabet @halfabet = qw/a b c d e f g h i j k l m n o p r s t u v z/; -8- my @halfabet; push @halfabet, $_ for 'a'..'z'; Nicer, and compiles under strict and warnings which Steve seems to have left out. Cheers Just in

RE: filename sorting by last letter in the filename

2005-10-11 Thread Allegakoen, Justin Devanandan
8- You've included q,w,x,y which were not part of the characters in @halfabet. It wasn't just my bad typing, it was a part of the problem. 8- Yeah, my bad. I guess your comment threw me off . . . 8- push @halfabet, $_ for 'a'..'p','s'..'v','z'; But I think

RE: warning messages on module Win32::Process::Memory

2005-08-31 Thread Allegakoen, Justin Devanandan
-8-- It seems to me that when you get a warning, you're doing something wrong or it wasn't coded to take all possibilities into consideration - so I never turn off warnings or strict. I already found two legit bugs in that module, so I'm guessing there are more to find.

RE: warning messages on module Win32::Process::Memory

2005-08-31 Thread Allegakoen, Justin Devanandan
--8 # no warnings; next if $This =~ /\.pl$/; The above should be 'return' rather than 'next'. --8 Why didn't I think of that? --8 Where is your description of the error ? --8 I supplied the smallest failing sample

RE: Win32:OLE - Speech.VoiceText

2005-06-13 Thread Allegakoen, Justin Devanandan
--8--- has been used succesfully on Windows98 (with the Microsoft Speech SDK installed) and on Windows 2000 (which has it installed by default, apparently). The same code does not, however, work on Windows XP. What has changed? There IS a text-to-speech service on XP. How do I

RE: [OT] Spam to list

2005-04-06 Thread Allegakoen, Justin Devanandan
8-- All PHB's are in need of training. === I get this acronym: PHB Psycho Hose Beast ?? 8-- It's Pointy Haired Boss from the comic strip Dilbert. I'm positively sure that Scott Adams worked for Intel at some stage of his life . . .

RE: [OT] Spam to list

2005-03-31 Thread Allegakoen, Justin Devanandan
8- Yep - I still get that notification. Obviously they don't like Aussies. Hmmm ... I didn't think there were any Kiwis on this list. 8- Nope it only targets the $10 poms. $15 poms are left out because they paid extra (justified by the extra distance the

RE: IIS Crashes on perl error

2005-02-28 Thread Allegakoen, Justin Devanandan
-8--- eval{} will trap fatal errors such as syntax errors - and place them in $@ which you can then write to the logfile. But it won't trap warnings - -8--- Assuming we're talking about Perlscript within an ASP it would be prudent to install the module

RE: redirect (ASP) problem with win2003 and build 811 AdminMisc

2005-02-14 Thread Allegakoen, Justin Devanandan
8 However, we have a new problem - whenever a script encounters $Response-Redirects() we get the following error: Active Server Pages error 'ASP 0240' Script Engine Exception /shared/conference/admin/logout.asp A ScriptEngine

RE: Discrepancy on time reported by system and localtime

2005-01-13 Thread Allegakoen, Justin Devanandan
---8 ^Z on windoze ---8 ^D or ^Z I still have to hit enter after it. Unless theres a subtle difference that I'm missing. Anyway, just to reiterate my point, because James sent me a reply offline as well:- c:\perl\Programsperl system cmd /C date /t; system cmd /C

Discrepancy on time reported by system and localtime

2005-01-12 Thread Allegakoen, Justin Devanandan
On one of my WinXP machines I notice the following: c:\Perl\Programsperl system(date /t); system(time /t); print scalar localtime; ^D Thu 01/13/2005 03:26 PM Thu Jan 13 07:26:44 2005 c:\Perl\Programs Im in a GMT +8hrs timezone and the system time reports that correctly, but localtime seems to be

RE: problems installing Win32::GUI

2004-12-15 Thread Allegakoen, Justin Devanandan
You'll need to add Mr C's repository to your ppm:- ppm rep add http://dada.perl.it/PPM Then install as necessary Cheers -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lasher, Brian Sent: Thursday, December 16, 2004 7:13 AM To: [EMAIL PROTECTED]

RE: problems installing Win32::GUI

2004-12-15 Thread Allegakoen, Justin Devanandan
, use the New button to add the settings HTTP_proxy_user and HTTP_proxy_pass, with your user name and password as the respective values. -Original Message- From: Allegakoen, Justin Devanandan Sent: Thursday, December 16, 2004 8:02 AM To: [EMAIL PROTECTED] Subject: RE: problems installing

Mark's brain teasing JAPH

2004-10-21 Thread Allegakoen, Justin Devanandan
--8--- #$_=q;steal Porch Junk;;split//;$_=q=cd0153e71; #s/56s/45;39fs/=;y;\;s/;a28s/;;;s;$/;;;s((.))/; #q.$_[..$..$_[10].$_[2].q.x..q.($1)]./gee/print --8--- That's one convoluted JAPH! I like to pick through admirable JAPH's like this in an attempt to learn more

RE: BSOD - perl one liner

2004-10-07 Thread Allegakoen, Justin Devanandan
:[EMAIL PROTECTED] On Behalf Of Allegakoen, Justin Devanandan Sent: Wednesday, October 06, 2004 12:35 AM To: [EMAIL PROTECTED] Subject: BSOD - perl one liner Just out of interest anyone have that funky little perl -e one liner that causes Windows to puke and die? I remember it has some \n's

BSOD - perl one liner

2004-10-05 Thread Allegakoen, Justin Devanandan
Just out of interest anyone have that funky little perl -e one liner that causes Windows to puke and die? I remember it has some \n's and \t's in it. I can't find it in the archives, and it may only work on Win2k since it was posted quite a while back. Just in

RE: Binary characters in my URL

2004-07-21 Thread Allegakoen, Justin Devanandan
Gisle, I'm slightly confused as to what should be the correct approach with the problem I'm facing. As the original author of the module I'm indrectly using, it would be best for you to have the final say. I wrote a program to extract links from a HTML document e.g.

RE: IIS sesión variables

2004-03-03 Thread Allegakoen, Justin Devanandan
--8- Is what you are looking for in the environment variables? foreach $key (sort keys(%ENV)) { print $key = $ENV{$key}\n; } --8- Probably not, or at least not when I was trying to access them last week. I was trying to get hold of the logged

RE: IIS sesión variables

2004-03-03 Thread Allegakoen, Justin Devanandan
PROTECTED] On Behalf Of Allegakoen, Justin Devanandan Sent: Thursday, March 04, 2004 8:03 AM To: perl-win32-users Subject: RE: IIS sesión variables --8- Is what you are looking for in the environment variables? foreach $key (sort keys(%ENV)) { print $key = $ENV{$key

Exe2perl - the C version

2003-10-21 Thread Allegakoen, Justin Devanandan
List, I know there's exe2perl, but a while back I remember there being a thread with a link to a C program that can extract Perl from an executable. Anyone know where it is? Thanks Just in ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To

Zipping a folder and displaying the completion rate

2003-10-20 Thread Allegakoen, Justin Devanandan
I'm using Archive::Zip and Archive::Zip::Tree to zip a hefty folder, and its sub folders. What I'd like to do is display how much has been done. Since perl executes line by line I was wondering how to display the percentage completed. I mean nothing is going to execute until these lines get

RE: 'cron' equivalent for Windows

2003-06-23 Thread Allegakoen, Justin Devanandan
Lo Bernard, You can use Scheduled Tasks under the Control Panel for a Windoze equivalent. Note that ST's do require a .exe to run. So what you do is provide the path to the perl, and supply your program after it. e.g. Under the task tab, at the run text entry type: C:\Perl\bin\perl.exe

RE: Win32::OLE, excel file not found

2003-06-18 Thread Allegakoen, Justin Devanandan
--8--- If you'll notice, the code provided was wrapped in % % which indicates SERVER side execution. --8--- Feel the need for a little defence on my part ;) There's no point in trying to execute server side code in the faint hope that it will open your local file. I've

RE: How can I add the // to the prompt in this code

2003-03-10 Thread Allegakoen, Justin Devanandan
-8- use Net::Telnet; $telnet = new Net::Telnet (Timeout = 20, Prompt = '/[%#\]] *$/'); -8- In the previous code I am accessing a network switch remotely, implement a command on it ipmac for several time to get all output and send it to a txt file.

RE: :Telnet Script Issue

2003-03-06 Thread Allegakoen, Justin Devanandan
---8-- I was able to resolve my issues with Net::Telnet not working, thank you to everyone who replied to my post. Now I have something different. Below is a script that I wrote, it telnets to a Cisco router, goes into enable mode, and is supposed to print the output of a show ip

RE: Convert disk space size to readable form.

2003-01-07 Thread Allegakoen, Justin Devanandan
8-- @listing =( [qw(C:\ Total drive size = 2253693952)], [qw( Total free space = 914102784)], [qw(D:\ Total drive size = 18202509312)], [qw( Total free space = 3483238400 )]); @sizes = map{@$_[$#$_]}@listing; map {printf %14s, commify(sprintf %.2f, eval{(($_ /

Can pack do what I want?

2002-12-10 Thread Allegakoen, Justin Devanandan
You'll forgive me, I graduated in Triple E, so I'm not sure of what I mean, but I do know what I need. Anyway, we used to have this Pascal program that would take a supplied string, and when compiled the output would be used to pump in to a piece of hardware. But this Pascal program can no

RE: :Telnet on Win2K

2002-11-27 Thread Allegakoen, Justin Devanandan
---8-- So, my question is to any Telnet server expert out there: What are the differences in the telnet servers on Win2K and NTRK? How can I tweak Net::Telnet to work with the Win2K telnet server? ---8-- John, I'm no expert, but

RE: Net::Telnet on Win2K

2002-11-27 Thread Allegakoen, Justin Devanandan
--8-- When a TELNET server first accepts a connection, it must use the ASCII control characters carriage-return and line-feed to start a new line (see RFC854). A server like the Microsoft Telnet Server that doesn't do this, isn't a TELNET server. These

OT:TopDown

2002-11-13 Thread Allegakoen, Justin Devanandan
Just thought I'd share this (which I robbed from clpmisc) A: Top posting Q: What is the most irritating thing on Usenet? - Gordon on apihna ___

RE: Search and replace

2002-11-06 Thread Allegakoen, Justin Devanandan
8--- I am looking to search and replace a pattern within a file(not on command line). That is, I have a file name within the Perl script and I need to search for a pattern and replace the same. Eg. search for the pattern TOTAL and

RE: Search and replace

2002-11-06 Thread Allegakoen, Justin Devanandan
---8 whoops, there i go again. mis-read the question. time for me to go home now. ---8 There there, dont feel bad. I know what the problem is - its the weekend just

RE: Eval and Net::FTP

2002-09-04 Thread Allegakoen, Justin Devanandan
-8- - ## long-time operations here: $ftp = Net::FTP-new($site, Timeout = 60, Passive = 1, Debug = 3) or die Can't connect: $@\n;

Win98 and Perl - funny file behaviour

2002-08-21 Thread Allegakoen, Justin Devanandan
Heres a weird one you guys:- I take a HTML file, I strip the HTML tags with the substitution s/.*?//g; (its a simple HTML file so all of the tags get removed, but file size runs up to 14MB). I then print the file to a text document using perl program.pl file.txt. I make another program where

RE: Regular Expression Help

2002-06-11 Thread Allegakoen, Justin Devanandan
Lets not point fingers here, but this group is starting to become like comp.lang.perl.misc I subscribed to this list to avoid that type of . . . [insert disparaging term here] . . . We have all sort of people inside this list, from many country, some of our grammer are worst then others, but

RE: OT Q: Internet Information Server mailing list

2002-05-16 Thread Allegakoen, Justin Devanandan
Glen, I had this problem, what I did was to put the image files in a share drive that everybody has access to. HTH Just in -Original Message- From: Moulder, Glen [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 4:07 AM To: perl-win32-users Subject: OT Q: Internet Information

RE: Progress in Percentage.

2002-03-19 Thread Allegakoen, Justin Devanandan
The question is: How do I keep it all on the same line? How do I just print the percentage number without having to issue a carriage return? If any of you can help, I'd really appreciate it. Thanks. You need to use \b instead on \n You can do something like this:- my $i

OLE exception from Microsoft Excel

2002-02-28 Thread Allegakoen, Justin Devanandan
Hi, Im using Perl and OLE to create a graph. I've used Perl and OLE before, but its the first time I'm seeing this - OLE exception from Microsoft Excel: Unable to get the Points property of the Series class Win32::OLE(0.1401) error 0x800a03ec in METHOD/PROPERTYGET Points at

RE: How to give arguments containing space to rcp

2002-02-17 Thread Allegakoen, Justin Devanandan
Smita, The addition of ^M occurs when you send a text file over on a binary transfer when using an FTP routine. Why don't you set the transfer as ASCII? Thenyou dont have to bother witha substitution/replacement for ^M in Perl. Cheers -Original Message-From: smi pawar

A null belch

2002-02-07 Thread Allegakoen, Justin Devanandan
All, I'm connecting to a ORACLE DB by use of an ASP written in PerlScript. I get the following error when a column row in the SQL table is null (well I'm assuming its null because nothing is there). OLE exception from "Response object": 007~ASP 0106~Type Mismatch~An unhandled data type

dateadd

2002-01-14 Thread Allegakoen, Justin Devanandan
All, I know there are modules like Date::Calc, that do date manipulation. But all said and done, I still like VB's DateAdd(interval, number, date) and DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear]]) Is there any way to import these functions in to Perl?

from VB to Perl

2002-01-09 Thread Allegakoen, Justin Devanandan
All, I have a program I converted from VB into Perl. Amongst other things it connects to a DB (which is VAX based), and pulls out values. When printing these values with the VB program, it comes out fine. When printing a so called date with the Perl version, I get the date as:-

Wonit run in ASP

2002-01-08 Thread Allegakoen, Justin Devanandan
Hi all, I have a Perl program that runs perfectly on the command prompt. When I put the same code (after a bit of modification), into an ASP it hangs when trying to open a DB. Here it is in PerlScript:- %@ Language=PerlScript % HTML BODY % use ASP qw(:strict); use strict; use warnings 'all';