SCIENTIFIC-LINUX-USERS Archives

June 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
ToddAndMargo <[log in to unmask]>
Reply To:
ToddAndMargo <[log in to unmask]>
Date:
Mon, 2 Jun 2014 15:56:04 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (102 lines)
On 06/02/2014 03:34 PM, Chris Schanzle wrote:
> On 06/02/2014 06:26 PM, ToddAndMargo wrote:
>> On 06/02/2014 03:20 PM, ToddAndMargo wrote:
>>> On 06/02/2014 03:15 PM, Brandon Vincent wrote:
>>>> On 06/02/2014 03:12 PM, ToddAndMargo wrote:
>>>>> Hi Brandon,
>>>>>
>>>>> I tried that. I got an HTML page. :'(
>>>>>
>>>>> -T
>>>>
>>>> I just tried fetching that page as the sole wget parameter with no
>>>> switches and it downloaded as a regular text file.
>>>>
>>>> Can you post an example of where it returns HTML?
>>>>
>>>> Brandon Vincent
>>>>
>>>
>>> Hi Brandon,
>>>
>>> In Firefox, I right clicked on the link, saved
>>> as eraseme.sh. You get the picture.
>>>
>>> -T
>>>
>>>
>>> # more eraseme.sh
>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
>>> <head>
>>> <title>livecd - Fedora Live CD Tools</title>
>>> <meta name='generator' content='cgit v0.10.1'/>
>>> <meta name='robots' content='index, nofollow'/>
>>> <link rel='stylesheet' type='text/css' href='/cgit-data/cgit.css'/>
>>> <link rel='shortcut icon' href='/favicon.ico'/>
>>> <link rel='alternate' title='Atom feed'
>>> href='https://git.fedorahosted.org/cgit/livecd/atom/tools/livecd-iso-to-disk.sh?h=rhel6-branch'
>>> type='application/atom+xml'/>
>>> </head>
>>> <body>
>>> <div id='cgit'><table id='header'>
>>>
>>
>>
>> I did get the script with the long wget command. I did
>> have to go in with vi and whack off a bunch of stray
>> line on the top.
>
> Baffling. You must have mis-clicked on the link, and selected "Save page as" rather than "Save link as".
>
> Alternatively, left-click on the Plain page, see just all the plain text, then right-click "Save page as."
>
> Similarly, with wget, simply:
>
>      $ wget https://git.fedorahosted.org/cgit/livecd/plain/tools/livecd-iso-to-disk.sh
>      --2014-06-02 18:30:07-- https://git.fedorahosted.org/cgit/livecd/plain/tools/livecd-iso-to-disk.sh
>      Resolving git.fedorahosted.org... 140.211.169.199
>      Connecting to git.fedorahosted.org|140.211.169.199|:443... connected.
>      HTTP request sent, awaiting response... 200 OK
>      Length: 49361 (48K) [text/plain]
>      Saving to: “livecd-iso-to-disk.sh”
>
>      100%[============================================================================================================>] 49,361 254K/s in 0.2s
>
>      2014-06-02 18:30:07 (254 KB/s) - “livecd-iso-to-disk.sh” saved [49361/49361]
>
>      $ less livecd-iso-to-disk.sh
>
>
> shows a plain text file.
>
> $ file livecd-iso-to-disk.sh
> livecd-iso-to-disk.sh: Bourne-Again shell script text executable
>
> Please try again for a sanity check for all those who have experiences different from yours!

Hi Chris,

    Made me look.  It wouldn't be the first time.  Tried it again
to make sure.  No symptom change.

    I was linking on "Save Link as".  I am running
Firefox 29.0.1 from the Mozilla ftp site binaries.

    Anyway, I was just wondering if anyone had come up
with a better wget run line.  Guess I am asking "theoretical
question".

    The script doesn't work anyway.

-T



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ATOM RSS1 RSS2