Sorry if this gets duplicated, posting through gmane. I want to defined a variable in my TMDA configuration that gets the results of a simple shell script
nummsg=`ls -1 /vs1/gcasey/.tmda/pending/*.msg | wc -l` and then use it in my templates i.e. %(nummsg)s as explained in the TMDA FAQ. I don't know a lot of python, nor how the config file is parsed by python. Is there a simple way I can accomplish my goal. The code segment above is what I want "a count of files/msgs in my pending directory"; so if it's better to do it with a python code I can put in my .tmdarc please make a suggestion. Thanks. _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users