Redhat 9.0 ftp Incompatabilities?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Jones

    Redhat 9.0 ftp Incompatabilities?

    Hi, the first question has nothing to do with Perl, can anyone tell me why:

    1. When I ftp a file from RH 9.0 to AIX, regardless of transfer mode
    (binary or ASCII), the resultant file always has "^M"s appended to each
    line?

    2. The RH 9.0 ftp daemon (ftpd) returns "OK" when you list a
    non-existant file or directory? By "OK" I mean, it prints "226 Directory
    send OK." and gives a status code of "2", whereas other ftp daemons
    (TRU-64, AIX, even IIS!) return "5". These codes I obtained by using the
    Perl NET::FTP module.

    3. The RH 9.0 ftp daemon (ftpd) cannot the "size" command from Perl
    NET::FTP (i.e. $ftp->size($filename )), while "size" does work when
    issued from an ftp command-line client?

    My assumption of complete compability between different "flavours" of
    UNIX was obviously, err, optimistic. :)

    Cheers,
    Dave

  • UnixFan

    #2
    Re: Redhat 9.0 ftp Incompatabiliti es?

    David Jones <DJ@nospam.co m> wrote in message news:<L7wDb.544 63$aT.50544@new s-server.bigpond. net.au>...[color=blue]
    > Hi, the first question has nothing to do with Perl, can anyone tell me why:
    >
    > 1. When I ftp a file from RH 9.0 to AIX, regardless of transfer mode
    > (binary or ASCII), the resultant file always has "^M"s appended to each
    > line?
    >[/color]

    Verify your original file: the "^M"s are most probably there, run "od"
    command to check, not "vi".
    [color=blue]
    > 2. The RH 9.0 ftp daemon (ftpd) returns "OK" when you list a
    > non-existant file or directory? By "OK" I mean, it prints "226 Directory
    > send OK." and gives a status code of "2", whereas other ftp daemons
    > (TRU-64, AIX, even IIS!) return "5". These codes I obtained by using the
    > Perl NET::FTP module.
    >
    > 3. The RH 9.0 ftp daemon (ftpd) cannot the "size" command from Perl
    > NET::FTP (i.e. $ftp->size($filename )), while "size" does work when
    > issued from an ftp command-line client?
    >
    > My assumption of complete compability between different "flavours" of
    > UNIX was obviously, err, optimistic. :)
    >
    > Cheers,
    > Dave[/color]

    Comment

    Working...