Re: A piping problem
On Sun, 6 Dec 1998, Joseph Hartmann wrote:
> #!perl
> while(<STDIN>){chop $_; print "$_\r\n";};
>
> I can give the command "less /usr/local/bin/printer.staircase.filer"
> to bash, and get a listing of the file -- it really IS there.
>
> But when I try to pipe stuff into the filter with the following command
> to bash "cat mytextfile | /usr/local/bin/printer.staircase.filter | lpr"
> I get the the following error report:
>
> bash: /usr/local/bin/printer.staircase.filter: No such file or directory
> lpr: stdin: empty input file
>
> Can anyone explain why bash tells me the file is not there?
You get No such file or directory -- probably because perl is not in your
path. Put the absolute path to perl in line one, like this:
#!/usr/local/bin/perl
hope that helps!
--
quiet rob
-----------
"Just keep telling yourself you are immortal" --Albert Hofmann
Reply to: