TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
simple bash script - redirect pipe- ignore
Please ignore this post. cat |nprint works great! Thanks,
Ben
On Sat, 6 Feb 1999, Ben Luey wrote:
> Thanks, I'll keep that in mind in future, but for my current purpose, I
> don't think it will work. The context is setting up a printer filter. lpr
> is going to pipe the file to be printed to my filter. I want my script
> simply to redirect that to nprint. myscript < myfile would work if I had a
> file, but instead I need do "nprint < what-was-piped-to-myscript
>
> Thanks,
>
> Ben
>
>
>
>
> On Fri, 5 Feb 1999, Christopher Palmer wrote:
>
> > On Fri, 5 Feb 1999, Ben Luey wrote:
> >
> > > How do I control what is piped to a script?
> > > I want to be able to type
> > >
> > > `cat myfile |myscript'
> > >
> > > and myscript will redirect the pipe (ie contents of myfile) to someother
> > > program.
> >
> > You don't want to pipe, you want to redirect. Try this:
> >
> > myscript < myfile
> >
> > That means, "Take 'myfile' as the input for 'myscript'".
> >
> >
> > ---------(( Christopher Reid Palmer : www.pconline.com/~reid/ ))---------
> >
> > the characters i am, made into a word complete
> > -- Meshuggah
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> > For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> > Try our website: http://tclug.real-time.com
> >
>
> Ben Luey
> lueyb@carleton.edu
> ICQ: 19144397
>
> So the GOP thinks the American public has a short-term memory. Well, I have
> one word for them -- potatoe.
> -- Karen Baird, Letters to Editor, San Francisco Chronicle 12/17/98
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
>
Ben Luey
lueyb@carleton.edu
ICQ: 19144397
So the GOP thinks the American public has a short-term memory. Well, I have
one word for them -- potatoe.
-- Karen Baird, Letters to Editor, San Francisco Chronicle 12/17/98