[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: passing variables to io.popen
- From: Jeff Pohlmeyer <yetanothergeek@...>
- Date: Thu, 9 Dec 2010 10:22:35 -0600
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