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--

Reply via email to