Friday, July 31, 2009

Not able to open an ssh connection from a perl script(running on windows)?

have apache web server installed on my windows host. running a perl script on this machine and want to open an ssh connection to a remote unix machine and gather some data and output to the browser.


perl version used: 5.6


i am getting all dependcy errors..like some modules not found etc..I installed some modules following the instructions through PPM, but it keeps asking for other modules and I install them and so on so forth...I just dont think I got it right because i believe it wouldn't be this difficult. whether I am getting this error because i am running 5.6(not the latest) or because my perl script is running on a windows machine(rather than on a unix machine), I am not sure.





let me know if u want to take a look at the code snippet...

Not able to open an ssh connection from a perl script(running on windows)?
What kind of data are you collecting? Can this be done with a database connection rather than a perlscript running external programs? It seems like your program will be very inefficient if you have to open a program every time it makes a request for data.
Reply:For a start there is no support for ssh on Windows. You need third party software for this. A good programme is puTTy, which has facilities for setting up port forwarding etc and running the whole thing in auto mode. you could call this from your page.

garden ridge

No comments:

Post a Comment