473,396 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to use ncftp in perl

Hello guys!
I need to know how can I use ncftp commands in perl. I can use simple ftp and sftp commands as perl has its NET:: modules for them..but I was unable to find such for ncftp.

Thanks in advance for any help :)

Sorower
May 29 '07 #1
5 2471
miller
1,089 Expert 1GB
Welcome Sorower,

I would advise you to simply use Net::FTP. However, if there is some special command that ncftp supports that Net::FTP does not, then you'll have to wrap your use of ncftp with Expect.

cpan Expect

It will not be easy to code for every eventuality, but you could automate the use of ncftp using this module.

- Miller
May 29 '07 #2
Thanks a lot Miller.

This module looks very useful. I am going to use that.

Actually I have my Expect codes which can handle ftp, sftp and ncftp according to my needs. I was planning to migrate to perl.

Is there any advantage that perl gives over Expect in secure automatic file transfer issue?

I know perl but never used in secure file transfer cases. Expect had been very useful in this case so far.

--Sorower
May 29 '07 #3
miller
1,089 Expert 1GB
Honestly Sorower, I've never used Expect. I simply know that it is the module that is used to automate certain tasks when there is not a perl module to handle it.

I've yet to come by a circumstance where I needed it, which is why I first advised you to just stick with Net:: modules. Nevertheless, I'm certain that it is simply a case of sticking with what's familiar.

- Miller
May 29 '07 #4
You are absolutely right about Expect Miller.

The reason I was thinking of perl is just to have the future expansion facility to cover few more features on the same scripts.

I will try with NET module.

Thanks a lot for your help :)

Sorower
May 30 '07 #5
miller
1,089 Expert 1GB
Your welcome Sorower. Hope it works out.

- Miller
May 31 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

31
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is...
0
by: krigare | last post by:
CPAN 1.76 ncftp 3.1.7 Redhat 9 I am behind a firewall. I do have ncftp configured to handle the firewall settings. In fact I can manually (from the command line) do: #> ncftpget...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
13
by: Otto J. Makela | last post by:
I'm trying to install to php the Perl-1.0.0.tgz package (from http://pecl.php.net/package/perl, enabling one to call perl libraries) to a pre-existing Solaris system. Unfortunately, the attempt...
6
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might suggest PHP, but I had a look at the PHP documentation...
4
by: billb | last post by:
I installed a perl extension for PHP to use some perl inside my php primarily because I have perl working with oracle and not php and oracle. So I want to use my old perl scripts, and use the...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.