public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* download file
@ 2008-09-16 18:18 Bhikkhu Mettavihari
  2008-09-16 18:32 ` Ben Kevan
  0 siblings, 1 reply; 6+ messages in thread
From: Bhikkhu Mettavihari @ 2008-09-16 18:18 UTC (permalink / raw)
  To: Linux Newbie

hi,

I am on linux

How do I download a file from this site ?

http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY

when I do
$wget  http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY
then I get a small file by the name of  "gm.asp?ai=214" with content like this.

<asx version="3.0">
                                <!-- GMX -->
                                <title>CastUP: Unknown Error</title>
                                <entry>
                                        <title>Error: Unknown Error</title>
                                    <author></author>
                                        <ref href="http://" />
                                </entry>
                        </asx>


Regards
Mettavihari
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: download file
  2008-09-16 18:18 download file Bhikkhu Mettavihari
@ 2008-09-16 18:32 ` Ben Kevan
  2008-09-16 18:52   ` Renê
  0 siblings, 1 reply; 6+ messages in thread
From: Ben Kevan @ 2008-09-16 18:32 UTC (permalink / raw)
  To: Bhikkhu Mettavihari, Linux Newbie

On Tuesday 16 September 2008 11:18:36 am you wrote:
> hi,
>
> I am on linux
>
> How do I download a file from this site ?
>
> http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY
>
> when I do
> $wget  http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY
> then I get a small file by the name of  "gm.asp?ai=214" with content like
> this.
>
> <asx version="3.0">
>                                 <!-- GMX -->
>                                 <title>CastUP: Unknown Error</title>
>                                 <entry>
>                                         <title>Error: Unknown Error</title>
>                                     <author></author>
>                                         <ref href="http://" />
>                                 </entry>
>                         </asx>
>
>
> Regards
> Mettavihari
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

The reason you are getting that is because that's the file you're telling it 
to download. 

wget is working perfectly. 

Are you trying to have wget figure out where the asp file is pointing you to 
download? 


--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: download file
  2008-09-16 18:32 ` Ben Kevan
@ 2008-09-16 18:52   ` Renê
  2008-09-17  0:42     ` Bhikkhu Mettavihari
  0 siblings, 1 reply; 6+ messages in thread
From: Renê @ 2008-09-16 18:52 UTC (permalink / raw)
  To: Ben Kevan, Linux Kernel Newbie

Are you getting this error because address contains the & character,
that it's used by shell to start proccess in background,
you can easily download file with wget by putting double quotes in address:

wget "http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY"

or use \& instead &, like this:

wget http://switch3.castup.net/cunet/gm.asp?ai=214\&ar=1050wmv\&ak=TY

Cheers;

Renê

On Tue, Sep 16, 2008 at 3:32 PM, Ben Kevan <ben.kevan@gmail.com> wrote:
>
> On Tuesday 16 September 2008 11:18:36 am you wrote:
> > hi,
> >
> > I am on linux
> >
> > How do I download a file from this site ?
> >
> > http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY
> >
> > when I do
> > $wget  http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY
> > then I get a small file by the name of  "gm.asp?ai=214" with content like
> > this.
> >
> > <asx version="3.0">
> >                                 <!-- GMX -->
> >                                 <title>CastUP: Unknown Error</title>
> >                                 <entry>
> >                                         <title>Error: Unknown Error</title>
> >                                     <author></author>
> >                                         <ref href="http://" />
> >                                 </entry>
> >                         </asx>
> >
> >
> > Regards
> > Mettavihari
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.linux-learn.org/faqs
>
> The reason you are getting that is because that's the file you're telling it
> to download.
>
> wget is working perfectly.
>
> Are you trying to have wget figure out where the asp file is pointing you to
> download?
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: download file
  2008-09-16 18:52   ` Renê
@ 2008-09-17  0:42     ` Bhikkhu Mettavihari
  2008-09-17  1:37       ` Renê
  0 siblings, 1 reply; 6+ messages in thread
From: Bhikkhu Mettavihari @ 2008-09-17  0:42 UTC (permalink / raw)
  To: Linux Newbie

Hi Renê and Ben

Thank you for the reply's

On Wed, Sep 17, 2008 at 12:22 AM, Renê <rene@grad.icmc.usp.br> wrote:
> Are you getting this error because address contains the & character,
> that it's used by shell to start proccess in background,
> you can easily download file with wget by putting double quotes in address:
>
> wget "http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY"
>
> or use \& instead &, like this:
>
> wget http://switch3.castup.net/cunet/gm.asp?ai=214\&ar=1050wmv\&ak=TY

Thank you so much. I do get the file that wget is asking for.
But as you might know I am trying to download the video file that is
referenced to in this file
If any one of you can help with that would be great.

regards
Mettavihari
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: download file
  2008-09-17  0:42     ` Bhikkhu Mettavihari
@ 2008-09-17  1:37       ` Renê
  2008-09-19  4:07         ` Bhikkhu Mettavihari
  0 siblings, 1 reply; 6+ messages in thread
From: Renê @ 2008-09-17  1:37 UTC (permalink / raw)
  To: Bhikkhu Mettavihari; +Cc: Linux Newbie

I think that are lot of ways, but this one should work:

1) Get the file with stream urls:

wget -O videos "http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY"

PS: The contents will be saved in file "videos"

2) Extract the stream urls:

cat videos | grep "mms://" | sed "s/<ref href=\"\(.*\)\".*/\1/" > urls

3) Now file "urls" contains each stream url

4) You can save the stream with Mplayer:

mplayer -dumpstream
"mms://s95wm.castup.net/server12/39182686-61.wmv?ct=BR&rg=NA&aid=214&st=0&ts=0&cu=77D67414-0C4A-4A7E-A3EE-41600FDA4131"

PS: Do not forget to put the stream url in double quotes :)

Cheers;

Renê

On Tue, Sep 16, 2008 at 9:42 PM, Bhikkhu Mettavihari
<draketools@gmail.com> wrote:
> Hi Renê and Ben
>
> Thank you for the reply's
>
> On Wed, Sep 17, 2008 at 12:22 AM, Renê <rene@grad.icmc.usp.br> wrote:
>> Are you getting this error because address contains the & character,
>> that it's used by shell to start proccess in background,
>> you can easily download file with wget by putting double quotes in address:
>>
>> wget "http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY"
>>
>> or use \& instead &, like this:
>>
>> wget http://switch3.castup.net/cunet/gm.asp?ai=214\&ar=1050wmv\&ak=TY
>
> Thank you so much. I do get the file that wget is asking for.
> But as you might know I am trying to download the video file that is
> referenced to in this file
> If any one of you can help with that would be great.
>
> regards
> Mettavihari
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: download file
  2008-09-17  1:37       ` Renê
@ 2008-09-19  4:07         ` Bhikkhu Mettavihari
  0 siblings, 0 replies; 6+ messages in thread
From: Bhikkhu Mettavihari @ 2008-09-19  4:07 UTC (permalink / raw)
  To: Renê; +Cc: Linux Newbie

Thank you Renê

That is working fine.

with metta
Mettavihari

On Wed, Sep 17, 2008 at 7:07 AM, Renê <rene@grad.icmc.usp.br> wrote:
> I think that are lot of ways, but this one should work:
>
> 1) Get the file with stream urls:
>
> wget -O videos "http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY"
>
> PS: The contents will be saved in file "videos"
>
> 2) Extract the stream urls:
>
> cat videos | grep "mms://" | sed "s/<ref href=\"\(.*\)\".*/\1/" > urls
>
> 3) Now file "urls" contains each stream url
>
> 4) You can save the stream with Mplayer:
>
> mplayer -dumpstream
> "mms://s95wm.castup.net/server12/39182686-61.wmv?ct=BR&rg=NA&aid=214&st=0&ts=0&cu=77D67414-0C4A-4A7E-A3EE-41600FDA4131"
>
> PS: Do not forget to put the stream url in double quotes :)
>
> Cheers;
>
> Renê
>
> On Tue, Sep 16, 2008 at 9:42 PM, Bhikkhu Mettavihari
> <draketools@gmail.com> wrote:
>> Hi Renê and Ben
>>
>> Thank you for the reply's
>>
>> On Wed, Sep 17, 2008 at 12:22 AM, Renê <rene@grad.icmc.usp.br> wrote:
>>> Are you getting this error because address contains the & character,
>>> that it's used by shell to start proccess in background,
>>> you can easily download file with wget by putting double quotes in address:
>>>
>>> wget "http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak=TY"
>>>
>>> or use \& instead &, like this:
>>>
>>> wget http://switch3.castup.net/cunet/gm.asp?ai=214\&ar=1050wmv\&ak=TY
>>
>> Thank you so much. I do get the file that wget is asking for.
>> But as you might know I am trying to download the video file that is
>> referenced to in this file
>> If any one of you can help with that would be great.
>>
>> regards
>> Mettavihari
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at http://www.linux-learn.org/faqs
>>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-19  4:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 18:18 download file Bhikkhu Mettavihari
2008-09-16 18:32 ` Ben Kevan
2008-09-16 18:52   ` Renê
2008-09-17  0:42     ` Bhikkhu Mettavihari
2008-09-17  1:37       ` Renê
2008-09-19  4:07         ` Bhikkhu Mettavihari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox