I'm trying to write something to run as a cron job that will perform an sftp
command and then run a batch file. I was trying to use:

system("sftp [EMAIL PROTECTED]")

But that stalls and waits for a password before continuing with the script.
Any ideas on how to pass the password when it's prompted?

Hope this makes sense.

TIA,
Steve

Reply via email to