$ftp->put doesn't work

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default $ftp->put doesn't work

    Hi,

    i wrote a simple script by using Net::FTP to transfer a mpeg file from
    /cdrom to the harddisk of my Sattelite-Reciever (which acts ay a ftp
    server).
    Now my problem is: Normally a 700MB file must be transferred, but when i
    execute the script,it says that everything is ok. I also can see the
    file on the server but it has a size of 0 byte. Can somebody help me ?

    here's the part of the script:

    ....
    $ftp->cwd("hdd/mpeg");
    $ftp->type("I");
    $ftp->put("/cdrom/mpeg2/avseq01.mpg");
    $ftp->quit;
    ....

    Altan Tütek Guest

  2. Similar Questions and Discussions

    1. Can't get <img> to work in XML
      I'm using PHP to grab info from a database and then spit out an XML file. I'm loading the XML file into my fla and having no problems getting the...
    2. Links don't work in Shockwave movie but work in p
      Hi, everyone: I encountered a strange problem. I downloaded a sample movie from Macromedia site and noticed that the same problem occurs what I had...
    3. F12 doesn't quite work
      I press F12, and the page displays locally, but the included files (PHP) don't get included. I could've sworn it was working, once upon a time. Now,...
    4. Still trying to get a Mac to work with GPS
      I am still trying to get a Mac to work with GPS. All of the leads so far suggested have not pointed me towards a soltion, allowing the use of a Mac...
    5. Net work set up
      1)i have 2 computers both with a network card connected by cable. 2) when running main (internet)computer XP home o/s 2nd computer 98 o/s the 2...
  3. #2

    Default Re: $ftp->put doesn't work

    Altan Tütek wrote:
    > Hi,
    >
    > i wrote a simple script by using Net::FTP to transfer a mpeg file from
    > /cdrom to the harddisk of my Sattelite-Reciever (which acts ay a ftp
    > server).
    > Now my problem is: Normally a 700MB file must be transferred, but when i
    > execute the script,it says that everything is ok. I also can see the
    > file on the server but it has a size of 0 byte. Can somebody help me ?
    >
    > here's the part of the script:
    >
    > ...
    > $ftp->cwd("hdd/mpeg");
    > $ftp->type("I");
    > $ftp->put("/cdrom/mpeg2/avseq01.mpg");
    > $ftp->quit;
    > ...
    >
    Specify 'Debug => 1' in the new() constructor and see if that tells you
    anything.

    Cheers,
    Rob

    --
    To reply by email u have to take out the u in kalinaubears.

    Sisyphus Guest

  4. #3

    Default $ftp->put doesn't work

    # $ftp = Net::FTP->new("some.host.name", Port => 21, Timeout => 15, Passive =>1, Debug => 0)
    # or die "Cannot connect to some.host.name: $@";

    Specify 'Passive =>1'
    JGP SOLDAT Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139