Re: FTP management from C code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 21, 2005 at 10:13:12AM +0200, Garcia Jérémie wrote:
> I hope this question is not too stupid but I can't find any piece of
> info on the web.

Note that your question is not kernel related and therefor off topic
for this list.

> I want to develop a C code in which one I need to do a "ping" test
> ant then do FTP transfer.
> Some OS as VxWorks offers a library to do that (pingLib & ftpLib).
> Does Linux is able to give the same features?

If you search freshmeat.net I'm sure you should be able to find
something. Ping is so straightforward that it doesn't need a library.

> If not how can I achieve that goal?
> 
> ps: there is the "system()" command but it is too restrictive. 

If system() is too restrictive, you can always try popen() or fork()
and exec() to do things yourself.

>So any other idea?

Use Perl instead of C. According to "man perlfaq9", the Perl
LWP::Simple and Net::FTP packages can do FTP transfers, and Net::Ping
can do ping. See manual pages Net::Ping, Net::FTP, LWP::Simple.


Erik

-- 
Erik Mouw
J.A.K.Mouw@xxxxxxxxxxxxxx  mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux