If server file is only available through a proxy server, or you want to use a proxy for downloading files, Use -x followed by proxy address and port to download the file via a proxy server. I am using this command , where i am doing wrong, we are not getting any error in logs, running this command in java ,on linux server.
Save my name, email, and website in this browser for the next time I comment. Facebook Twitter Instagram. TecAdmin Home Ubuntu Having a problem installing a new program? Want to know which application is best for the job?
Post your question in this forum. View Public Profile. View Review Entries. Find More Posts by Freaksta. England Distribution: Mandriva Posts: Rep:. Some examples are given in the -o section of the curl man page. Find More Posts by Kenhelm. Posting Rules. Similar Threads. Because of its general availability, it is a great choice for when you need to download a file to your local system, especially in a server environment.
Downloading files off of the Internet can be dangerous, so be sure you are downloading from reputable sources. Out of the box, without any command-line arguments, the curl command will fetch a file and display its contents to the standard output. Fetching a file and display its contents is all well and good, but what if you want to actually save the file to your system?
You can check on things with the cat command:. Execute the following command to download the remote robots. Now use the cat command to display the contents of do-bots. If you happened to try to fetch the robots. To make your job easier, create a temporary directory in which to work, and then create subdirectories for the a-of-n's and download the file into that subdirectory, that way you'll have a single file to handle in each subdirectory easy to tell which one you need to process , which you can then move and rename, while preserving the extension.
Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 3 years ago. Active 3 years ago. Viewed 1k times. Then I would like the final result to be: file-a-of-n. But I don't want this: 2d9eceacf Something with curl along the lines of: curl -o file-a-of-n.
0コメント