@ls = `la -al`;
will do it.
$ls = system("ls -al");
will save the exit status of the command, rather than the output.
Jim
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 06 April 2003 12:01
To: [EMAIL PROTECTED]
Subject: accessing the string from system("ls -al") / browse dir script
I'm trying to put the string from the system("ls -al") into a variable. It
simply prints to the page and puts 1 in the variable.
I wan't to use this variable to determine the permissions for the files on a
linux machine. Is there an easier way?
Tricia
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]