Perl SFTP Executing commands

Please support our Perl advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2008
Posts: 8
Reputation: koteswarvijay is an unknown quantity at this point 
Solved Threads: 2
koteswarvijay's Avatar
koteswarvijay koteswarvijay is offline Offline
Newbie Poster

Perl SFTP Executing commands

 
0
  #1
Sep 25th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: Perl SFTP Executing commands

 
0
  #2
Sep 25th, 2008
Have you looked at Net::SFTP or Net::SFTP::Util ?
Last edited by KevinADC; Sep 25th, 2008 at 4:10 pm.
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 237
Reputation: katharnakh is an unknown quantity at this point 
Solved Threads: 33
katharnakh's Avatar
katharnakh katharnakh is offline Offline
Posting Whiz in Training

Re: Perl SFTP Executing commands

 
0
  #3
Sep 26th, 2008
With Net::SSH::Perl you can execute commands remotely.

katharnakh.
Last edited by katharnakh; Sep 26th, 2008 at 1:47 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 8
Reputation: koteswarvijay is an unknown quantity at this point 
Solved Threads: 2
koteswarvijay's Avatar
koteswarvijay koteswarvijay is offline Offline
Newbie Poster

Re: Perl SFTP Executing commands

 
0
  #4
Sep 26th, 2008
Originally Posted by KevinADC View Post
Have you looked at Net:FTP or Net:FTP::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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: Perl SFTP Executing commands

 
0
  #5
Sep 26th, 2008
Sorry, I have never used them.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Perl Forum
Thread Tools Search this Thread



Tag cloud for Perl
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC