RE: Some Help please

2006-07-18 Thread Leigh Sharpe
you are using SNMP to program it onto a device.) Regards, Leigh Leigh Sharpe Network Systems Engineer Pacific Wireless Ph +61 3 9584 8966 Mob 0408 009 502 email [EMAIL PROTECTED] web www.pacificwireless.com.au -Original Message- From: SolHai Haile [mailto:[EMAIL PROTECTED

RE: Easy One

2006-05-01 Thread Leigh Sharpe
, Leigh Leigh Sharpe Network Systems Engineer Pacific Wireless Ph 9584 8966 Mob 0408 009 502 email [EMAIL PROTECTED] web www.pacificwireless.com.au -Original Message- From: Ng, Bill [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 5:55 AM To: perl-win32-users

Re: CGI frames question

2005-07-21 Thread Leigh Sharpe
Just a thought: can you use a piece of javascript in the top form to populate data in the right frame, and use onSubmit() (or onClick() on the 'submit') to issue a form.submit() on the right frame? I'd have to test this out to be sure it work. - Original Message - From: Terry Vaughn

Re: system() Conundrum

2005-06-30 Thread Leigh Sharpe
What about using Win32::Process::Create? - Original Message - From: Roy Olsen [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Friday, July 01, 2005 11:56 AM Subject: system() Conundrum I have a Perl script that receives programs and other files from a host

Re: Reading environment varible

2005-06-28 Thread Leigh Sharpe
This line: #$foo_token_value = $ENV{ BAR_DIR }; If I un-comment it, all looks good. Was this deliberately commented out? Or was this just an oversight? And you might want to change those ns to \ns. - Original Message - From: [EMAIL PROTECTED] To:

Re: Photo EXIF information ????

2005-06-13 Thread Leigh Sharpe
Image::Info can do it. For examples, have a look at the photo gallery software available at www.fuzzymonkey.org ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Output image via http

2005-04-18 Thread Leigh Sharpe
You need to use binmode on both the input and output. Try this: print content-type:image/jpeg\n\n; open (IMG,$filename); binmode IMG; binmode STDOUT; my $size = -s $filename; read IMG,$data,$size || die$!\n; close IMG; print $data; - Original Message - From: Chris [EMAIL PROTECTED]

Re: [OT] Spam to list

2005-03-31 Thread Leigh Sharpe
Obviously they don't like Aussies. That's not it. ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: LWP::UserAgent and post()

2005-03-30 Thread Leigh Sharpe
provided by Activestate don't mention the post() or get() methods anywhere for that package. It looks like a completely different package. BTW, I'm using V5.6.1, not the latest distribution. - Original Message - From: $Bill Luebkert [EMAIL PROTECTED] To: Leigh Sharpe [EMAIL PROTECTED] Cc

Re: LWP::UserAgent and post()

2005-03-30 Thread Leigh Sharpe
This appears to work OK. I guess I'll have to delve a little further into the HTTP::Request::Common documentation. Thanks Bill. - Original Message - From: $Bill Luebkert [EMAIL PROTECTED] To: Leigh Sharpe [EMAIL PROTECTED] Cc: Perl-Win32-Users perl-win32-users@listserv.ActiveState.com

LWP::UserAgent and post()

2005-03-29 Thread Leigh Sharpe
Hi all, Is the LWP::UserAget supplied with Activestate Perl the same as I would get from a linux install? The following code appears to work OK under linux, but not win32: $browser = LWP::UserAgent-new( );$browser-env_proxy( ); # if we're behind a firewall# Login into the script$response =

Encoding TNEF

2005-03-28 Thread Leigh Sharpe
Hi All, Does anybody have any references on how to encode something into TNEF format? ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Win32::ODBC and ExtendedFetch

2005-03-23 Thread Leigh Sharpe
Hi All, I'm having trouble talking to an ODBC Data source with Win32::ODBC. I get a 911 error, saying "[Microsoft][ODBC Driver Manager] Driver does not support this function" afterr issuing $db-FetchRow() ; Tracing the ODBC log tells me that the FetchRow() issued a SQLExtendedFetch

Reading an Access Database

2005-03-22 Thread Leigh Sharpe
Hi All, Does anybody know of a way to read data from an Access database? All I need is read access, as I want to extract some data and present from a Perl script. Any Ideas? ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com

Re: Reading an Access Database

2005-03-22 Thread Leigh Sharpe
OK, it's portable. Any pointers on how to put it to use in this particular case? The database I have to read from is already locked into MS Access. I'd much rather MySQL, but it's not possible, as the decision has already been made. irony Not to mention the fact that Microsoft has their

Re: Running a script from command line as well as browser

2004-09-01 Thread Leigh Sharpe
using CGI.pm is much easier. eg: use CGI qw/:standard/; my $month=param(month); my $day=param(day); my $year=param(year); - Calling this as a cgi with appropriate values for day, month, year etc. gives you the values you are after. Calling it from the command line as follows also works:

Re: perl mysql table row update

2004-07-29 Thread Leigh Sharpe
I think what you want is: $sth=$dbh-do(UPDATE TableSLA set NodeID=\$nodeid\ WHERE ID=\$id\); - Original Message - From: Viswanatha Rao [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: 'Rhesa Rozendaal' [EMAIL PROTECTED] Sent: Friday, July 30, 2004 2:23 PM Subject: RE: perl mysql table row

Re: perl mysql

2004-07-23 Thread Leigh Sharpe
DBD::Mysql is the perl interface to MySQL. Specifically, to create a table: use DBI;use DBD::mysql; my $dbh=DBI-connect("DBI:mysql:host=$ip_address:database=$database","$username","$password");$sth=$dbh-do("create table $table_name ($table_definition)") or die "$!\n"; $dbh-disconnect();

GD::Graph y_max scale

2004-07-05 Thread Leigh Sharpe
Hi All, Can anybody tell me how to get the GD::Graph module to NOT auto-scale? I have an application where I want the y-axis on a graph ALWAYS at 10. By setting y_max to 10, it makes sure the y-axis never goes above 10, but in some circumstances, my data values don't go over, say, 2.

Re: Time::HiRes problems

2004-06-15 Thread Leigh Sharpe
Darrell Gammill [EMAIL PROTECTED] wrote: What do you get if you get the time as an array using gettimeofday? A difference would indicate it is a problem in the conversion of the system time format to a floating point format. Yes I have tried it. Same results. $Bill Luebkert [EMAIL

Re: Time::HiRes problems

2004-06-15 Thread Leigh Sharpe
Could be the problem. I'm using version 1.5 Is there a later one available for Perl 5.6? I can't use 5.8 on this project. - Original Message - From: Jan Dubois [EMAIL PROTECTED] To: 'Leigh Sharpe' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:22 AM Subject: RE