Re: How to create png and email

Christoph Haas <[email protected]>
Newsgroups gmane.network.cricket.user
Organization christoph-haas.de
Message-ID <[email protected]>
On Friday 08 September 2006 01:22, Singh Saimbhi wrote:
> Is there any way I can create just a png file at a given time or just
> ask cricket to create a png file?

Find out the URL of the PNG and set up a cronjob to wget the image at that 
time. That's what I do for archiving. Example for my 23:59 cronjob:

#!/bin/bash -e
MONTH_DIR=`date +'/var/www/archive/%Y/%m'`
mkdir -p $MONTH_DIR

# Fetch PNG and store as today's image
FILE=`date +'/var/www/archive/%Y/%m/%d.png'`
URL="http://myserver/cgi-bin/cricket/mini-graph.cgi?type=png;target=......."
wget -q -O $FILE "$URL"

> The reason is that I want to email a graph in my notifications.

Shouldn't be too hard to chain a wget call with a sendmail call 
like "mutt -a ...".

Cheers
 Christoph

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.