DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Perl (http://www.daniweb.com/forums/forum112.html)
-   -   Perl SFTP Executing commands (http://www.daniweb.com/forums/thread147631.html)

koteswarvijay Sep 25th, 2008 7:30 am
Perl SFTP Executing commands
 
Hi All,
I am connecting to Unix host from Windows and using SFTP connection. I am able to connect and do put & get. But I need to do even more. I want to write a function to which I will pass the command and that commands needs to be executed. Command could be anything, like listing of directories & files, or doing put or get, etc. I am not finding solution for this. If anyone could help me I would really appreciate. Its bit urgent, hence please reply fast.

Thanks,
Vijay K.

KevinADC Sep 25th, 2008 4:09 pm
Re: Perl SFTP Executing commands
 
Have you looked at Net::SFTP or Net::SFTP::Util ?

katharnakh Sep 26th, 2008 1:47 am
Re: Perl SFTP Executing commands
 
With
Net::SSH::Perl
you can execute commands remotely.

katharnakh.

koteswarvijay Sep 26th, 2008 10:53 am
Re: Perl SFTP Executing commands
 
Quote:

Originally Posted by KevinADC (Post 699035)
Have you looked at Net::SFTP or Net::SFTP::Util ?

I have looked into that, but I am not able to understand. I would appreciate if you could give me a sample piece of code of executing command. I can use only SFTP connection but not SSH directly.

KevinADC Sep 26th, 2008 12:52 pm
Re: Perl SFTP Executing commands
 
Sorry, I have never used them.


All times are GMT -4. The time now is 10:41 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC