Dude, assign it to a variable.

$tempdir = system("ls -l /tmp")

-----Original Message-----
From: Chuck [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 11, 2001 3:42 PM
To: PERL-CGI List
Subject: Easy way to get output from system()



I have several CGI's that use system() to get various OS details.

What is the most reliable way to glean this information after using this
command:

For example:

#!/bin/perl

system("ls -l /tmp")

How can I get that data?

Thanks,
CC



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

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

Reply via email to