At 5:46 PM -0400 5/7/04, Sherm Pendley wrote:
On May 7, 2004, at 3:29 PM, Chuck Rice wrote:

How do I set up a perl program such as the one below to check mail without hard coding the password in the code?

If you're using Panther, the "security" command-line tool looks like it might be useful. You can use it to access the keychain from a script. "man security" for more info.


You'll need to open it as a child task using both input and output; for more about doing that from Perl, see "perldoc IPC::Open2" and perldoc IPC::Open3".

sherm--

Thanks. I did not know that that existed. I have some reading to do. -Chuck-




--
Fight Spam! Join CAUCE! == http://www.cauce.org/

Reply via email to