Curl ftp upload success but no file exist on the server !!!!
hello,
I'm trying to upload a file to this ftp server and others ftp://ftp.byethost12.com as you can see in the output of CURL using the -v option
curl reports that the upload succeeded but when i connected to the server with file-zilla there is no file uploaded the same command
upload files to other servers but does work with others although it reports a successful transfer.
Code:
curl --disable-epsv -v -T"/root/backupcfg.tar.bz2" -u"username: password" "ftp://ftp.byethost12.com/New/"
* About to connect() to ftp.byethost12.com port 21 (#0)
* Trying 209.190.85.253... connected
* Connected to ftp.byethost12.com (209.190.85.253) port 21 (#0)
< 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
< 220-You are user number 53 of 500 allowed.
< 220-Local time is now 13:54. Server port: 21.
< 220-This is a private system - No anonymous login
< 220-IPv6 connections are also welcome on this server.
< 220 You will be disconnected after 2 minutes of inactivity.
> USER b12_5477853
< 331 User b12_5477853 OK. Password required
> PASS password
< 230-Your bandwidth usage is restricted
< 230-User b12_5477853 has group access to: 5477853
< 230 OK. Current restricted directory is /
> PWD
< 257 "/" is your current location
* Entry path is '/'
> CWD New
< 250 OK. Current directory is /New
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (209,190,85,253,131,23)
* Trying 209.190.85.253... connected
* Connecting to 209.190.85.253 (209.190.85.253) port 33559
> TYPE I
< 200 TYPE is now 8-bit binary
> STOR backupcfg.tar.bz2
< 150 Accepted data connection
} [data not shown]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12444 0 0 100 12444 0 824 0:00:15 0:00:15 --:--:-- 824* Remembering we are in dir "New/"
100 12444 0 0 100 12444 0 773 0:00:16 0:00:16 --:--:-- 0< 226-File successfully transferred
< 226 1.207 seconds (measured here), 10.07 Kbytes per second
100 12444 0 0 100 12444 0 763 0:00:16 0:00:16 --:--:-- 0* Connection #0 to host ftp.byethost12.com left intact
> QUIT
< 221-Goodbye. You uploaded 13 and downloaded 0 kbytes.
< 221 Logout.
* Closing connection #0
Currently I am trying to download a file from a secure site that I do not control. I need to use a pem cert to get past their firewall. Currently I am trying to use curl to get the file and return it using the following information pemcert.txt containing the cert, username, password, domain,... (0 Replies)
Hi
I'm having some trouble with a bash shell script that I'm writing. In the script, I'm trying to upload a file to a backup repository using ftp, but the whole file doesn't get uploaded.
This is the file's properties at the start (I've highlighted the file size in red):
-rw-r--r-- 1 root... (2 Replies)
hi
please help me out here,
i want to use curl command in shell script to test web pages,
what i have is an opening page, when i click on a button on opening page, the next page comes up and then i have to upload a file n then click another button to submit and then comes the output page,... (2 Replies)
Hello,
I have a script that finds the latest version of a file in a folder on my Minecraft server. I'm trying to come up with something that will then FTP that file over to my fileserver.
Here's what I have that finds the newest file:
find /home/mc/archive/sbhouse -type f -mtime +45 -exec... (7 Replies)
I am trying to delete old file in ftp server, after transferring new file successfully .
but here i am checking both the file available or not using ls command.
if both the file available means i need to get file_new and file_old file size as greater than zero.
but i am getting only for... (3 Replies)
HI,
I need a script to find new files that created after 6:00 from /home/ugh /demo/conn /UAT/d01 and upload them into ftp server according to system date:
Please help me (1 Reply)
Hi,
I want to create a script that parses the content of a file (on each line there is a filename with full path containing the latest fiels created on that day) and uploads every file to a ftp location.
Any elegant way to do it ? (4 Replies)
The html page of the form data is as below
<form name="uploadform" id="uploadform" action="htmlupload.php" enctype="multipart/form-data" method="post"> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="tcat"> Upload Files ... (0 Replies)
Discussion started by: jaango123
0 Replies
LEARN ABOUT XFREE86
dput
dput(1) General Commands Manual dput(1)NAME
dput - package upload tool for Debian
SYNTAX
dput [options] [host] package.changes ...
DESCRIPTION
This is a tool for uploading Debian packages into the archive. You may specify to which host it should upload the file by passing it an
host argument. If omitted, dput uses the host specified by default_host (or, historically default_host_non-us) configuration option. Also
you have to pass the program one or more name of package.changes files and then they will be sequentially uploaded.
This program will then upload the package for you into the archive, using a selected upload method. Currently dput supports ftp, scp,
rsync, http, https, and local. The method scripts have been split from the main script so it is easy to add new methods. Look in
/usr/share/dput/ for examples.
Should something go wrong with your upload to destinations using the Debian upload queue daemon (e.g. ftp-master), you can remove files
from the upload queue with dcut(1).
OPTIONS-c, --config - define a config file to use.
-d, --debug - activate debugging mode, helpful if bugs occur.
-D, --dinstall - do a dry run of dinstall after the upload.
-f, --force - force an upload of an already uploaded package.
-h, --help - print help information and exit.
-H, --host-list - print the lists of hosts that dput knows about.
-l, --lintian - run lintian before the upload.
-U, --no-upload-log - do not write a .upload log file after uploading.
-o, --check-only - check only the package and do not upload.
-p, --print - print the configuration that dput is using.
-P, --passive - use passive ftp instead of active. Note that passive ftp is the default unless specified otherwise in the configuration
file.
-s, --simulate - simulate an upload only.
-u, --unchecked - don't check GnuPG signature on the changes file.
-e, --delayed - Upload to a DELAYED queue, rather than the usual Incoming. This takes an argument from 0 to 15. Note that a delay of 0 is
different from no delay at all.
-v, --version - print version information and exit.
-V, --check-version - check if the user has already installed and tested the package before putting it into the archive.
ENVIRONMENT
This program doesn't depend on any environment variables. But if the variable USER is set, it will be used.
LICENSE
This program is distributed under the terms of the GPL.
BUGS
Please send bug reports to the author.
FILES
/etc/dput.cf
global dput configuration file
~/.dput.cf
peruser dput configuration file
SEE ALSOdput.cf(5)dcut(1)
/usr/share/doc/dput
/usr/share/dput
AUTHOR
dput was written Christian Kurz. The current maintainer is Thomas Viehmann <tv@beamnet.de>.
Many other people have contributed to this code. See the Thanks file.
COMMENTS
The author does appreciate comments and suggestions from you.
October 5, 2001 dput(1)