Re: maximum filename length

From: <brownrig_at_nyahnyahspammersnyahnyah>
Date: Sun Feb 05 2012 - 14:04:22 MST

I would have said the max filename length was 256, but your example is
well short of that :-/

In any case, I agree that something more graceful than a segv should
occur, and any limitations on filename should be those imposed by the
OS. I'll file a ticket on this one and look into it.

Thanks for pointing this out and apologies for the inconvenience....
Rick

On Sun, 05 Feb 2012 20:49:51 +0100
  Tompkins Adrian <tompkins@ictp.it> wrote:
> hello there,
>
> My NCL code was crashing with the dreaded "segmentation fault"...
>after
> some time, I realized the only thing I had changed was the length of
>the
> output PDF filename.
>
> ...and indeed changing this:
>
> outfile="/scratch/tompkins/vectri/dublin/vectri_sresa1b_bccr_bcm2_0_run1_ymonstd_lon27-42.0_lat-12-6.0_date20960101-21000101_ymonstd_cases_ratio"
>
> to something shorter got the code working again.
>
> Can I ask,
> 1. what is the maximum filename length allowable?
> 2. Perhaps there could be an error handler to catch this in
> gsn_open_wks, since a segmentation fault is a nightmare to track
>down (I
> was lucky I had only made one change).
>
> thanks again as always,
>
> Adrian
>
>
> --
> Adrian Tompkins | Earth System Physics
> +39 040 2240579 (office) | ICTP (UNESCO-IAEA)
> +39 040 2240449 (fax) | Strada Costiera 11
> www.ictp.it | 34151 Trieste, Italy
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Feb 5 14:04:30 2012

This archive was generated by hypermail 2.1.8 : Mon Feb 06 2012 - 14:24:56 MST