Forum Moderators: coopster & phranque

Message Too Old, No Replies

Print commandline output in browser

Some work, some do not ?

         

Damian

3:23 pm on Aug 5, 2002 (gmt 0)

10+ Year Member




I'm trying to print the output of system commands to a browser..

This does work:
$HOSTNAME=`hostname`;

this does not work:
$UPTIME =`uptime`;

Both commands do work fine in telnet.

Can someone help me understand why ?

I'm actually trying to solve a problem with the 'dnsquery' command but I think the above illustrates the issue...it does not look like it is a syntax problem.

I'm on a virtual server and running FreeBSD.

Brett_Tabke

8:32 pm on Aug 6, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



hmmm. I've run into that one before, and often switching to list context does the trick.

@t=`foo.exe`