[pca] read uname/showrev/pkginfo data from stdin

David Stark dave at davidstark.name
Fri May 8 22:42:21 CEST 2009


Asif Iqbal wrote:
> Is there a way for pca to read the uname/showrev/pkginfo  data from 
> stdin instead of from a file?
> 
> I am running hobbit (http://hswn.dk/hobbit/) which collects all the 
> uname/showrev/pkginfo
> data and keeps it in the memory for my 500 hosts.
> 
> I can make 500 /tmp/hostname dir and have the pca read it from each of 
> those /tmp/hostname files.
> 
> But it would be lot faster if I could feed that data directly to pca 
> through stdin.
> 
> It would make the pca report generation lot faster.
> 
> Also I like to hear some other suggestion(s).

In the current absence of any other ideas, you create a single 
/tmp/pca-pipes dir, then
$ mkfifo /tmp/pca-pipes/{uname,showrev,pkginfo}'
then just echo or redirect the data into those named pipes to be read 
by PCA.

Probably not as fast as an anonymous pipe, but faster than creating 
real files, since you'd only have to make the fifos once, and  can 
re-use them for each host.

Just a thought.

Dave

> Thanks
> 
> -- 
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu <http://pgp.mit.edu>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> 
> 




More information about the pca mailing list