[Thread Prev][Thread Next][Index]
Re: reading from standard input
Andrew,
There is another way around this if you want to run ferret from the
command line as you described in your original post. I can't completely
remember how I bypassed the problem but it was one of 3 ways:
Try this from the command line:
ferret -batch < scriptname.jnl
ferret -server < scriptname.jnl
ferret -batch -server < scriptname.jnl
I don't have the files in front of me to check but one of these (i think
the first) should fix your problem.
This seems to be a problem with how readline is handled under linux.
Hope this helps.
Brent
>
> > Hi All.
> >
> > I've got a problem with Ferret v 5.22 on Linux (pre-compiled binaries, I'm
> > running RedHat 7.2)
> >
> > If I invoke ferret with a journal file passed in via stdin, e.g.
> > ferret < test.jnl
> > everything works fine on short scripts, but if there are more than 512
> > characters (including newlines) then ferret seems to skip over the first
> > 512 bytes.
> >
> > So far I'm working around this by passing in short files, although I
> > suppose I could pass in the simple instruction "go test.jnl" and that would
> > work too.
> >
> > Is there a more official way to do what I'm trying to do?
> >
> > Thanks,
> >
> > Andrew
--
Brent A. McDaniel
Dept of Earth and Atmospheric Sciences
Georgia Institute of Technology
Atlanta, Ga. USA
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement