[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: passing variables to io.popen
- From: Dirk Laurie <dpl@...>
- Date: Fri, 10 Dec 2010 08:50:03 +0200
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