Command Line Script
| From: | Steve Douville | Date: | Sat, 30 Oct 2004 06:35:22 +0000 |
| Subject: | Command Line Script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-200698@lists.php.net to get a copy of this message | ||
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 user@host")
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