Good morning/afternoon,

I've been trying to get a simple read from a pipe to work, but its not
doing what I'm intending. I'm using EmbperlObject ('cuz it rocks), but
get the same thing in just regular Embperl mode. My base.html is
extremely simple: just the look and a Execute('*') call.

So, Uptime 2 works below, but not Uptime 1 and Uptime 3.  What am I
doing wrong? It's gotta be something simple...


--------------------------------
Uptime 1:
 
[- open (UP, "uptime |") -]
 
[$ while ($line = (<UP>)) $]
  <b>[+ $line +]</b>
[$ endwhile $]
 
[- close (UP) -]

<br><br>
Uptime 2: [+ `uptime` +]

<br><br>
Uptime 3:
[-
  open (F, "uptime |");
  while (<F>) {
    print OUT $_;
  }
  close (F);
-]

---------------------------------

Wim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to