News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
possible to use io.popen?
Author Message
Senior Member

Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
Question  possible to use io.popen?

Lua has this handy alternative to os.execute which grabs the output of a shell command:

mycmd = io.popen("some_command")
myoutput = mycmd:read("*a")

Is this possible with MurgaLua? If not, is there something similar which doesn't require writing the command's output to a file and then parsing the file?

Thanks for reading.

04-26-2007 03:41 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
possible to use io.popen? - mikshaw - 04-26-2007 03:41 PM
RE: possible to use io.popen? - JohnMurga - 04-26-2007, 07:23 PM
RE: possible to use io.popen? - mikshaw - 04-27-2007, 02:48 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: