Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

RE: RE: Server Monitor via Web

by BigJoe (Curate)
on May 23, 2000 at 05:55 UTC ( #14318=note: print w/ replies, xml ) Need Help??


in reply to RE: Server Monitor via Web
in thread Server Monitor via Web

With a system("..", ".."); call does it return the output? I thaught it just returned a 1 or a 0 based on if it worked. Can you just put read(filename, $var, size) ? Without opening?


Comment on RE: RE: Server Monitor via Web
Replies are listed 'Best First'.
RE: RE: RE: Server Monitor via Web
by KM (Priest) on May 23, 2000 at 06:11 UTC
    Yes, my fsck-up. I forgot what you were doing for a minute when I saw backticks :) You may want to use a pipe, or look at perlsec to see how to safely emulate backticks with fork() and exec(). Now matter how you do it, good to look into all the other possibilities :)

    Cheers,
    KM

    Re: A negative vote on this post
    Why would someone vote negative on a post where there is not only a correction, but viable options for someone to learn with and raise thier clue factor? C'mon people. Unless you are giving good advice, think before you do this.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://14318]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-08-02 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (12 votes), past polls