On Thu, Jan 14, 2010 at 1:08 AM, Paul Banyan23 <
plbanyan0@gmail.com> wrote:
> 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
>
>