Hi Anton, beside the example Rene showed about using pstopnm etc., you could use a frame buffer X server. This X server does all its "displaying" in a hidden memory buffer, but for the application it looks like talking to normal X. I use it in cron scripts where I need graphics, but don't want X windows popping up on the screen. In my script I have: #! /bin/sh # Make sure framebuffer X server runs on display 1 XVFB=`ps ax|grep Xvfb | awk '/Xvfb :1$/ { print $5 $6 }'` if [ "$XVFB" != "Xvfb:1" ]; then Xvfb :1 > /dev/null 2>&1 & fi export DISPLAY=:1 export ROOTSYS=/home/rdm/root export PATH=$ROOTSYS/bin:$PATH export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH cd /home/rdm/alice/mdc3/sql root -q rungraph.C > /dev/null 2>&1 cp -f rate.gif avrate.gif /net/pcroot/user/httpd/root/root/alimdc3/ exit 0 -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:35 MET