A few years ago, I created a subroutine called write_mh_opts that does what you want, i think.  It's in handy_utilities.pl and it is documented in mh.pod.  Unlike the iniedit script, it modifies just the requested ini entry and doesn't remove duplicate entries or comments.  I haven't used it much lately, so backup your ini file first and make sure it does what you expect.  

On 5/15/2011 6:37 PM, Ryan Davies wrote:

Hi All,

I was wondering, How would one go about setting a config parm from the code loop?


e.g. a web module that requires a key from another service to fetch or update data, when the web code runs, gives you your unique URL - (e.g. twitter and FB give you unique URL's to visit to auth the app), you go to that, authorize, get key, go back to MH, enter key which would get saved to mh_parms file



Ryan Davies

------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay
________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365