RE: GD graph title line break

2006-01-10 Thread Mark Zvolanek
Scott, 

\n\r does not work for me.

$my_graph-set(
#   title   = $title,
title   = line 1 \n\r
line 2,
);

I also tried to use preserve_nl = 1,
See image for result.
Thanks
Mark

-Original Message-
From: Scott Campbell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 10 January 2006 11:42 PM
To: Mark Zvolanek; Perl-Win32-Users@listserv.ActiveState.com
Subject: RE: GD graph title line break

I believe \n\r will do it for you in GD.


Scott Campbell
Senior Software Developer
Somix Technologies
http://www.somix.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Mark Zvolanek
Sent: Monday, January 09, 2006 7:12 PM
To: Perl-Win32-Users@listserv.ActiveState.com
Subject: GD graph title line break


Hi,
How do I add new line to the gd graph title?
I tried \n, this did not work.
Thanks
Mark

---
[This E-mail scanned for viruses by Declude Virus]



GDtitle.PNG
Description: GDtitle.PNG
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


GD graph title line break

2006-01-09 Thread Mark Zvolanek



Hi,
How do I add new 
line to the gd graph title?
I tried "\n", this 
did not work.
Thanks
Mark
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Thread and Net::SSH::W32Perl

2005-09-04 Thread Mark Zvolanek
Hi,
I am trying to implement small multi threaded SSH application, on a IIS6.
Code works fine without the Threads. 
But I get SSH'ish looking error when trying to use Threads.
Can anyone offer any advice what I might be doing wrong? Perhaps a working
example or a link to one.
Below is the output of my code followed by simplified perl code I run.
Thanks
Mark

Btw, I have Perl v5.8.7 built for MSWin32-x86-multi-thread, with
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define

OUTPUT produced:
started thread 1 Remotehost1
started thread 2 Remotehost2
[Mon Sep 5 14:36:15 2005] remotecommand_mthread.pl: PARI: *** forbidden at
C:/Perl/site/lib/Math/Pari.pm line 978. [Mon Sep 5 14:36:15 2005]
remotecommand_mthread.pl: thread failed to start: PARI: *** unknown type 83.
at C:/Perl/site/lib/Math/Pari.pm line 978. 


CODE snippets
use Thread;
use Net::SSH::W32Perl;


for my $hostname (@ExecuteHost) {
$ThreadHash-{$hostname} = Thread-new(\RemoteExecute, $hostname,
$RemoteCommand);
print br, 'started thread ',$TotalHostsThreads, ' ', $hostname;
}
foreach my $hostname (keys %{$ThreadHash} ) {
$TotalOutput .= $ThreadHash-{$hostname}-join;
print 'ended thread ', $hostname, br;
}


sub RemoteExecute{
my $host = shift;
my $rcmd = shift;

my $ssh = new Net::SSH::W32Perl($host, [protocol = 1, port=22]);
$ssh-login(GetAdminPassword($host));
...
my ($This_out, $This_err, $This_exit) = $ssh-cmd($rcmd);
return $This_out;
}

__END__
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


open file question

2003-01-06 Thread Mark Zvolanek
Is there a difference between two lines shown below?
Both open a file for writing.

open FH, out.log;
open FH, , out.log;

Thanks
Mz
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



FW: process output pipe autoflush

2000-12-11 Thread Mark Zvolanek

Many thanks to $Bill, Carl and Michael,

The cause was the buffering in the executable involved,
I had the coder insert fflush(stdout) after each printf statement.
Also my understanding on buffering has somewhat improved.
Thanks again.

|__
| Mark Zvolanek
| +612 9227 0479



-Original Message-
From: $Bill Luebkert [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 5 December 2000 15:08
To: Mark Zvolanek
Cc: '[EMAIL PROTECTED]'
Subject: Re: process output pipe autoflush


Mark Zvolanek wrote:
 
 Hello,
 
 I have a problem with autoflush. Platform is Windows NT 4 / sp6.
 
 I use the following code:
 
 $command = 'executable.exe param1 ';#option 1
 # $command = 'DIR C:\ /S';  #option 2
 open (PIPE, "$command |");
 $| = 1;
 while (PIPE){
 print;
 }
 
 If I use line with (option 2) the output does not get buffered as
expected.
 If I use line with (option 1) the output of the executable is buffered.
 
 If I execute the line "executable.exe param1" on the DOS prompt
 the oputput is produced immediately.
 I tried both autoflush PIPE and select((select(PIPE), $| = 1)[0])
commands,
 I even print out the value of $| during execution, it is set to 1.
 
 What am I doing wrong?

How do you know the data is being buffered or not?

Are you doing this under CGI conditions?

Do you understand what buffering does?

It basically forces each line out individually (when $| is set) rather 
then waiting for an internal buffer (maybe 512/1024 bytes??) to fill before 
outputting.  Leaving STDOUT buffered ($| not set) is more efficient.

If you were to slip a sleep 1 into your loop, you would see the result 
since one would print one line every second and the other would wait several

seconds and then print several lines.

-- 
  ,-/-  __  _  _ $Bill Luebkert   ICQ=14439852
 (_/   /  )// //   DBE Collectibles   http://www.wgn.net/~dbe/
  / ) /--  o // //  Mailto:[EMAIL PROTECTED]   http://dbecoll.webjump.com/
-/-' /___/__/_/_http://www.freeyellow.com/members/dbecoll/
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



process output pipe autoflush

2000-12-04 Thread Mark Zvolanek

Hello,

I have a problem with autoflush. Platform is Windows NT 4 / sp6.

I use the following code:

$command = 'executable.exe param1 ';#option 1
# $command = 'DIR C:\ /S';  #option 2
open (PIPE, "$command |");
$| = 1;
while (PIPE){
print;
}

If I use line with (option 2) the output does not get buffered as expected.
If I use line with (option 1) the output of the executable is buffered.

If I execute the line "executable.exe param1" on the DOS prompt 
the oputput is produced immediately.
I tried both autoflush PIPE and select((select(PIPE), $| = 1)[0]) commands,
I even print out the value of $| during execution, it is set to 1.

What am I doing wrong?

Thanks,
|__
| Mark Zvolanek
| +612 9227 0479


___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users