/usr/share/ploticus/chunk_read is in ploticus 2.42-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | /// this chunk is included by prefabs to read data..
//
#if @data = "" && @inlinedata = ""
#write stderr
Error: either 'data' or 'inlinedata' must be specified.
#endwrite
#exit
#endif
//
//// read data file..
#proc getdata
#if @inlinedata != ""
#set tmpfile = $tmpfilename( inline )
#write stderr
#+ tmpfile is @tmpfile
#endwrite
#write @tmpfile
#+ @inlinedata
#endwrite
pathname: @tmpfile
#elseif @data = stdin || @data = -
standardinput: yes
#else
// changed to use pathname - scg 5/24/05
pathname: @data
#endif
#ifspec delim
#ifspec header fieldnameheader
#ifspec comment commentchar
#ifspec select
#ifspec echodata showresults
#ifspec nfields
#if @context = chron
#include $chunk_chronfilter
#elseif @context = stack && @stackarea = yes && @y2 != ""
#include $chunk_stackareafilter
#elseif @context = vdist
#include $chunk_vdistfilter
#elseif @context = heatmap
#include $chunk_heatmapfilter
#endif
#endproc
#if @inlinedata != ""
#shell
rm -rf @tmpfile
#endshell
#endif
#if @NRECORDS = 0
#exit
#endif
// #write stderr
// Got @NRECORDS records, @NFIELDS fields per record.
// #endwrite
|