lua-users home
lua-l archive

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


On Fri, Dec 10, 2010 at 05:17:00AM +0200, starwing wrote:
> 
> 
> > On Fri, Dec 10, 2010 at 12:22 AM, Jeff Pohlmeyer <yetanothergeek@gmail.com<mailto:yetanothergeek@gmail.com>> wrote:
> > On Thu, Dec 9, 2010 at 10:15 AM, Yehuda Eisenstark wrote:
> > > How do I pass the "filename" variable to the /usr/bin/scan script?
> > 
> > Maybe try:
> >  f=io.popen("/usr/bin/scan " .. filename)
> 
> who can we pass filename's content as stdin to that process?

f=io.popen("cat filename | /usr/bin/scan")

Dirk