Hi Dan,
pqcat(1) will already do what you want if you use the options "-vl-" and
redirect standard output to /dev/null. For example:
pqcat -vl- -o 360 -f NNEXRAD >/dev/null
Regards,
Steve Emmerson
Dan Vietor wrote:
> Is there any way to do this??
>
> I am wanting to check the viability of my ingestors, specifically
> whether pqing is running or whether data is getting into pqing or that
> products are getting inserted properly with pqinsert. What I want is a
> list of products in the PQ. I looked at pqcat and this is sort of what
> I want but without the dump of product data. So I created a pqlist
> program that outputs a list of products:
>
>> pqlist -o 360
> 9325 20081120163711.332 NNEXRAD 246 SDUS53 KICT 201635 /pN0RICT <
> ftp-svr-p
> 6646 20081120163711.333 NNEXRAD 247 SDUS73 KICT 201635 /pN0ZICT <
> ftp-svr-p
> 21199 20081120163711.464 NNEXRAD 248 SDUS72 KMFL 201635 /pTV2FLL <
> ftp-svr-p
> 164 20081120163711.495 NNEXRAD 249 SDUS32 KMFL 201634 /pNMDPBI <
> ftp-svr-p
> 2191 20081120163711.496 NNEXRAD 250 SDUS38 PACR 201627 /pNVWAKC <
> ftp-svr-p
> 2053 20081120163711.496 NNEXRAD 251 SDUS36 KSTO 201633 /pN3RBBX <
> ftp-svr-p
> 5406 20081120163711.496 NNEXRAD 252 SDUS36 KSTO 201633 /pN3SBBX <
> ftp-svr-p
> 12685 20081120163711.500 NNEXRAD 253 SDUS54 KCRP 201634 /pN0VCRP <
> ftp-svr-p
> 8707 20081120163711.560 NNEXRAD 254 SDUS51 KBUF 201635 /pN0VBUF <
> ftp-svr-p
> 371 20081120163711.560 NNEXRAD 255 SDUS55 KPSR 201627 /pNVLYUX <
> ftp-svr-p
> 700 20081120163711.560 NNEXRAD 256 SDUS75 KPSR 201627 /pNETYUX <
> ftp-svr-p
> 6441 20081120163711.561 NNEXRAD 257 SDUS74 KOUN 201635 /pN0ZTLX <
> ftp-svr-p
> 1904 20081120163711.561 NNEXRAD 258 SDUS59 PAFG 201627 /pNCRAEC <
> ftp-svr-p
> ...
> 2936 20081120163803.104 WMO 282 FEUS71 KLWX 201637 /pEOLLWX <
> ftp-svr-p
> 9287 20081120163804.007 NNEXRAD 468 SDUS52 KFFC 201636 /pN0RJGX <
> ftp-svr-p
> 116 20081120163803.094 EXP 000
> USPLN1-ltg-2008_11_20_16_38_00.uspln <
> uspln-proc1.wsicorp.com_v_216.236.239.157
> 116 20081120163803.113 EXP 000 NAPLN1-2008_11_20_16_38_00.dat
> < uspln-
> proc1.wsicorp.com_v_216.236.239.157
> 5175 20081120163805.092 NNEXRAD 469 SDUS36 KPDT 201629 /pN3RPDT <
> ftp-svr-p
> 4074 20081120163805.092 NNEXRAD 470 SDUS33 KGLD 201635 /pN1PGLD <
> ftp-svr-p
> ...
> Nov 20 16:44:13 pqlist NOTE: Exiting
> Nov 20 16:44:13 pqlist NOTE: Number of products 2868
>
> I can then parse this with a Perl script to make sure data from my
> various ingestors are making it into the PQ.
>
> I'm OK with using my pqlist code but I don't want to manage this if the
> LDM API changes. I was curious if there was a way to do this with an
> existing program.
>
>
> ------------------------------------------------------------------------
>
>
> *Daniel Vietor* *Mail:* devo@xxxxxxxxxxxxx <mailto:devo@xxxxxxxxxxxxx>
> Unisys Corp *Title:* Engineer/Meteorologist
> 2476 Swedesford Rd *Phone:* 610-648-3623
> Malvern PA 19355 *Fax:* 610-695-5524
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ldm-users mailing list
> ldm-users@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/