Brian Elliott Finley wrote:
Thus spake Andrea Righi ([EMAIL PROTECTED]):

Brian Elliott Finley wrote:

Better yet, is there any reason not to source the functions prior to
sourcing the variables?


Some functions in particular for the monitoring stuff are variables.txt dependent...


This is true, but sourceing the functions does not _execute_ the
functions.  It simply puts them into shell memory so that they are
available for execution.


Yes, but some functions (like send_monitor_msg) use some varibles ($DEVICE for example). When the function is loaded in memory if $DEVICE is not set it will remain null... also if you source the variables.txt later...

-Andrea

It's fine that the functions be sourced first, even prior to the
variables being put into the environment, as long as the variables are
there prior to the functions being called, or executed.

Cheers, -Brian



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Sisuite-devel mailing list
Sisuite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to