Hi all,

 OS Slackware 10.1
 DB PostgreSQL 8.0.3
 JFFNMS 0.82

 Slackware comes with Dillon's cron not Vixie's so this type of cron
(Dillon's) dislike environment variables and other shell stuff :(
Than for slackware users each line
 cd $JFFNMS && $PHP -q .....
included in jffnms crontab can be a script containing lines above. Example,
for tftp:
02   4 * * *    cd $JFFNMS && $PHP -q tftp_get_host_config.php >/dev/null
2>&1
can be:
02   4 * * *  /opt/jffnms/engine/tftp.sh
and tftp.sh contains:
-------- tftp.sh ----------
#!/bin/sh
JFFNMS=/opt/jffnms/engine
PHP=/usr/bin/php

cd $JFFNMS && $PHP -q tftp_get_host_config.php >/dev/null 2>&1

-------- tftp.sh ----------
or something equivalent.

   Best regards,
   lwd.




                
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to