Command Line Script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux