ftp from a C program

ftp from a C program

Post by Kiran G. Ja » Fri, 06 Jan 1995 23:12:37



Hello netters,
        Is there any way of doing ftp from within a C program without using
        a system call and execing a shell script out of it??

Thanks,
--Kiran

 
 
 

ftp from a C program

Post by Patrick Horg » Sun, 08 Jan 1995 10:08:12



|> Hello netters,
|>   Is there any way of doing ftp from within a C program without using
|>   a system call and execing a shell script out of it??
|>
|> Thanks,
|> --Kiran

Of course, you can open a socket connection to the site's ftp port and speak
ftp protocol yourself.  You could also get Cern's libwww which contains routines
to do this.

Patrick
--

     These opinions are mine, and not Amdahl's (except by coincidence;).

    ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~  
  /                        |                           | (\               \
 |  Patrick J. Horgan      |  Amdahl Corporation       |  \\    Have       |

 |  Phone : (408)992-2779  |  P.O. Box 3470 M/S 316    |    \\/    Will    |
 |  FAX   : (408)773-0833  |  Sunnyvale, CA 94088-3470 |   _/\\     Travel |
  \                        |  O16-2294                 |      \)          /
   ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~

 
 
 

ftp from a C program

Post by Alan B. Evan » Wed, 11 Jan 1995 01:31:42




> |> Hello netters,
> |>      Is there any way of doing ftp from within a C program without using
> |>      a system call and execing a shell script out of it??
> |>
> |> Thanks,
> |> --Kiran

> Of course, you can open a socket connection to the site's ftp port and speak
> ftp protocol yourself.  You could also get Cern's libwww which contains routines
> to do this.

> Patrick

You could also open a pipe using popen to ftp.

--alan

 
 
 

ftp from a C program

Post by Larry Emme » Wed, 11 Jan 1995 02:21:58






>> |> Hello netters,
>> |>  Is there any way of doing ftp from within a C program without using
>> |>  a system call and execing a shell script out of it??
>> |>
>> |> Thanks,
>> |> --Kiran

>> Of course, you can open a socket connection to the site's ftp port and speak
>> ftp protocol yourself.  You could also get Cern's libwww which contains routines
>> to do this.

>> Patrick

>You could also open a pipe using popen to ftp.

>--alan

The xarchie package contains source code that does this.  It even
has a compiler flag you can set to generate a command line ftpget-
type command.  That is 'ftpget -bin hostname pathname' or something
like that grabs the file for you.

I never quite managed to get this to work the way I wanted it to,
but I didn't play with it for very long either.

I think the last version I looked at even had notes about generalizing
the ftp code into an ftp API.  Of course all details above are from
memory so you might want to check me on them before getting your hopes
up too high.

Regards,

Larry Emmett  (EMMT)  / You can't do the  \    Texas Instruments, Inc.

(214)995-5070       / attempting the absurd.\        Dallas, TX

 
 
 

ftp from a C program

Post by Stephen Reppuc » Wed, 11 Jan 1995 21:46:17



.
.
.


>>> |> Hello netters,
>>> |>      Is there any way of doing ftp from within a C program without using
>>> |>      a system call and execing a shell script out of it??
>>> Of course, you can open a socket connection to the site's ftp port and speak
>>> ftp protocol yourself.  You could also get Cern's libwww which contains routines
>>> to do this.
>The xarchie package contains source code that does this.  It even
>has a compiler flag you can set to generate a command line ftpget-
>type command.  That is 'ftpget -bin hostname pathname' or something
>like that grabs the file for you.

>I think the last version I looked at even had notes about generalizing
>the ftp code into an ftp API.  Of course all details above are from
>memory so you might want to check me on them before getting your hopes
>up too high.

I needed the same type of thing about a year ago.  I got a copy
of something called 'libftp', written by Oleg Orel, but it wasn't quite
tight enough for my taste, so I wrote my own library to provide this
API.  It's not a complete implementation, but enough to do the basic
file transfer operations (STOR, RETR, STAT, RN{FR,TO}, etc.)

I had email'ed a copy of my work to a professor at DePaul University
who was supposedly going to do some cleanup on it to allow it to be
placed into the GNU project, but it's been over four months since I've
heard from him, so I'm assuming that he decided not to do this.

If there's enough call for it, (and someone that wants to ante up to
do the release work :^)) I'd be happy to work with someone to make this
library publicly available.


on this.

<Steve Reppucci, Fax International, Burlington, Massachusetts>

 
 
 

1. FTP sites with 'UNIX Network Programming' book program code?

Hello netters,
        I am looking for FTP site with the program code of
'UNIX Network Programming' book (R. Stevens). Any ideas?

michael
--
Michael Haldey  |  Genasys II Pty Ltd
                |  13th Level, 33 Berry St, North Sydney, NSW, Australia
                |  Phone:    +61-2-954-2878 (-9930 FAX)

2. mount and umount hard disk

3. FTP: Looking for source code for FTP client program

4. "lp" prints only the first line of any text file.

5. Linuxppc.com ftp site & Mac FTP programs

6. Solaris 2.3 licensing?

7. "Mary had a neat program...neat program...neat program...

8. Recovering DAT tape

9. Solaris ftp v Pro-ftp v WU-ftp

10. FTP: New Linux FTP site: ftp.kernel.org

11. Secure ftp, ftp over stunnel og ftp-ssl.

12. Graphical FTP program?

13. Xt/Example programs, ftp site?