Hi there.
I'd like to dump gmetad data to an XML file for offline processing.

The output XML file should look exactly like the output you get from
telneting the gmeta server at port 8651.

I have no problem dumping to a file while in terminal, using:
/usr/bin/telnet localhost 8651 | /bin/grep -v "Trying ::" | /bin/grep -v
"Trying 127" | /bin/grep  -v "Connected to " | /bin/grep -v "Escape
character" >  /var/lib/ganglia/xmls/gmetad_out.xml

However, when I try to do it using cron for periodic updates the output is
trunked, probably because the telnet session is closed before stdout dumps
the info to the file or something like that.
I tried using nohup option, but with no luck.

Any ideas?

Thanks

Paul
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to