lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

execute("dir > temp_file.txt")

then read the file using open()... there is a tmpfile() function as well I
think that will make up a filename for you.

----- Original Message -----
From: "CRIBBSJ" <>
To: "Multiple recipients of list" <>
Sent: Monday, November 26, 2001 4:56 PM
Subject: Returning result from execute function.

> This is probably going to be a pretty basic question, but how do you return
> the result of an execute() call.  For example, on windows I want to do a:
> execute("dir")
> and get back the directory listing.  Instead, all I get is a status code.  I
> have looked at the docs, but it only talks about the status code.
> Thanks in advance for any help.
> Jamey