I m using a Php program ,which on click triggers a shell script ,with in which it try to ssh to remote host and login.. to pass the password for ssh to remote host ,i m using expect script(whihc supplies the password)
when i run this script through shell command line it works perfectly.but when i use the php web program it is not working .the expect script triggers ssh to remote host but password is not supplied .
expect script which is triggered by shell script
spawn ssh -t IPAddress
the above php is triggered by html for on click
Thanks in advance