News for hackers. Stuff that matters.
Re:Sh.py by freehunter on Monday September 17, 2012 @02:38PM (#4534109)
Lua has a function called os.execute() where you can call programs and utilities from the command line. Cross platform as well; I've got more than one Lua script where it's working in the command line and can handle being on Unix or on Windows.

A common example of this that I use quite often is "clear" or "cls". It makes the determination what OS it's using, then issues the appropriate command to clear the terminal window.

There are no comments on this comment yet.