[wplug] cron job whose action is promted?

Jonathan S Billings billings at negate.org
Mon Nov 15 12:21:02 EST 2004


Russ Schneider wrote:
> On Sun, 14 Nov 2004, Bill Moran wrote:
> 
> 
>>mysqldump has a --password= switch that allows you to provide the
>>password on the command line ... no prompting.
> 
> 
> Yeah, everyone's answering me about different mysql processes.  While 
> these are cool, I really was interested in the answer in broader terms.
> 
> I really would like to know how to handle being prompted for something 
> like a password from a cron job.

Several of us have suggested expect, and I think I still prefer using 
perl's Expect.pm, but you can also use the python and perl 
implementation of open2 or open3.


-- 
Jonathan S. Billings <billings at negate.org>


More information about the wplug mailing list