[Thread Prev][Thread Next][Index]
Re: [ferret_users] 'head -1' syntax causes Fprint to fail
Hi Remik,
The Fprint script is in
/usr/local/ferret/bin/Fprint
and one can see the offending line in there. The first line of that
script indicates that it's a csh script, not tcsh, so perhaps that's the
difference.
Since the OS upgrade I've noticed that a lot of my csh scripts have
broken, and to fix them I've had to change them to tcsh. You could try
that with Fprint, or you could just change the offending line to the new
syntax. (Actually, I'd be more interested to learn exactly what are the
differences between the old & new csh!)
Andrew
On Fri, 7 Apr 2006, Remik Ziemlinski wrote:
We have a ferret script that causes the error message:
head -1 t_ref
grep -s ^GKSM
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
when invoking Fprint with "spawn Fprint -o ($psfile) ...".
What's odd is that other scripts don't cause 'head' to abort like this.
info coreutils head
explains that
POSIX 1003.1-2001 does not allow 'head -1' syntax. Anyone know the cause for
'head' to be in or out of obsolete mode in the context of Fprint and ferret?
From the tcsh shell, the following works:
head -1 t_ref
GKSM...
which head
/usr/bin/head
head --version
head (coreutils) 5.2.1
uname -a
Linux rsz 2.6.9-34.EL #1 Fri Feb 24 16:44:51 EST 2006 i686 i686 i386
GNU/Linux
(aka red hat enterprise linux)
FERRET v5.70 (gcc3.2)
Linux(g77) 2.4.18 - 10/08/04
7-Apr-06 12:03
Thanks,
--
Remik Ziemlinski Raytheon Company
NOAA/Geophysical Fluid Dynamics Lab. Remik.Ziemlinski at noaa d0t gov
P.O. Box 308 1.609.452.6500 ext. 6977
Princeton, NJ 08542 USA 1.609.987.5063 fax
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement