943,777 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 3292
  • Perl RSS
Sep 25th, 2008
0

Perl SFTP Executing commands

Expand Post »
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.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
koteswarvijay is offline Offline
8 posts
since Sep 2008
Sep 25th, 2008
0

Re: Perl SFTP Executing commands

Have you looked at Net::SFTP or Net::SFTP::Util ?
Last edited by KevinADC; Sep 25th, 2008 at 4:10 pm.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
Sep 26th, 2008
0

Re: Perl SFTP Executing commands

With Net::SSH::Perl you can execute commands remotely.

katharnakh.
Last edited by katharnakh; Sep 26th, 2008 at 1:47 am.
Reputation Points: 19
Solved Threads: 34
Posting Whiz in Training
katharnakh is offline Offline
237 posts
since Jan 2006
Sep 26th, 2008
0

Re: Perl SFTP Executing commands

Click to Expand / Collapse  Quote originally posted by KevinADC ...
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.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
koteswarvijay is offline Offline
8 posts
since Sep 2008
Sep 26th, 2008
0

Re: Perl SFTP Executing commands

Sorry, I have never used them.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: How to open directory ?!
Next Thread in Perl Forum Timeline: convert XYZ co-ordinates to distance in pdb file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC