Bug 86549 - curl instructions lead to iso to stdout
curl instructions lead to iso to stdout
Product: Red Hat Network
Classification: Red Hat
Component: RHN/Web Site (Show other bugs)
RHN Stable
All Linux
medium Severity medium
: ---
: ---
Assigned To: Chip Turner
Red Hat Satellite QA List
Depends On:
  Show dependency treegraph
Reported: 2003-03-25 07:52 EST by Philip Long
Modified: 2007-04-18 12:52 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-04-01 10:57:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Philip Long 2003-03-25 07:52:52 EST
Description of problem:

curl -C - -O 'very_long_url'

As suggested on the web page sends the iso to STDOUT. (At least for the phoebe
curl).   Probably not what anyone wants.

Version-Release number of selected component (if applicable):

How reproducible:

Every time.

Steps to Reproduce:
1. curl -C - -O 'very_long_url'
Actual results:
iso goes to STDOUT

Expected results:

iso goes to appopriately named file

Additional info:

Reccomended fix:

Change instructions to read

curl -C - -O 'very_long_url' >  filename.iso
Comment 1 Mihai Ibanescu 2003-03-25 09:39:06 EST
Are you positively sure this sends to stdout? Don't be confused by the apparent
stray dash after -C. man curl shows:

              Use "-C -" to tell curl to automatically  find  out
              where/how  to resume the transfer. It then uses the
              given output/input files to figure that out.

Also we recommend using -O:

              Write  output to a local file named like the remote
              file we get. (Only the file part of the remote file
              is used, the path is cut off.)

              You  may  use this option as many times as you have
              number of URLs.

I did not manage to make the output come to stdout unless I explicitly dropped
the - after -C.
Comment 2 Philip Imants Long 2003-03-25 14:21:57 EST
Yup, this is what I used:

curl -C --O 'very_long_url'

(which is what it looks like under phoebe and an LCD, on a CRT it is clearly a
stray '-') as opposed to

curl -C - -O 'very_long_url'

Comment 3 Mihai Ibanescu 2003-03-31 17:07:53 EST
Well. please do try with the stray -, this is what the documentation says,
doesn't it?
Comment 4 Bret McMillan 2003-03-31 17:29:44 EST
Also, use 'O' vs '0'... zero is bad :(
Comment 5 Philip Long 2003-04-01 08:41:50 EST
Yes, it works fine with the proper syntax.  I was just "faked into" using
improper syntax as the stray - did not seem to have a space between it and the -O.

Comment 6 Josef Komenda 2003-04-01 10:57:19 EST
We've cleaned up the documentation on this page to try and prevent this from
happening again. Closing. 

Note You need to log in before you can comment on or make changes to this bug.