lua-users home
lua-l archive

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




On Fri, Dec 10, 2010 at 12:22 AM, Jeff Pohlmeyer <yetanothergeek@gmail.com> wrote:
On Thu, Dec 9, 2010 at 10:15 AM, Yehuda Eisenstark wrote:

> f = io.popen("/usr/bin/scan", filename)

> That obviously does not work. How do I pass the "filename" variable to the
> /usr/bin/scan script?


Maybe try:
 f=io.popen("/usr/bin/scan " .. filename)

(Note the space after "scan")

You might need to do some additional quoting if your filename
contains spaces, etc.

 - Jeff


who can we pass filename's content as stdin to that process?