[CS-FSLUG] Command line query

Frank Bax fbax at sympatico.ca
Thu Jan 20 07:23:04 CST 2005


At 06:59 AM 1/20/05, Brian Derr wrote:

>On Tue, Jan 11, 2005 at 08:50:09PM -0600, Ed Hurst wrote:
> > I've conspired with my wife to present a recent photo of us. Pay close
> > attention, as these two are really quite dangerous. Expect to see this
> > image soon on an APB  :-D
> >
> >    http://ed.asisaid.com/VnE.jpg
>
>I want to view this picture.  Here is my dilemma:  I'm too lazy to copy
>the text and paste it to Firefox so I want to download it with wget and
>view it with xv.  What would the syntax be?  The following is what I've
>tried.
>
>1.)  wget http://ed.asisaid.com/VnE.jpg | xv -
>2.)  xv - < wget http://ed.asisaid.com/VnE.jpg
>3.)  xv - < `wget http://ed.asisaid.com/VnE.jpg`
>4.)  wget http://ed.asisaid.com/VnE.jpg > xv
>
>None of these seem to work and in fact a couple of them do weird things.
>Any ideas of a one-liner that can download and open the JPEG for
>viewing?  :-)


All of your attempts assume that wget will output the picture to stdout, 
which wget cannot do - wget creates a file.  Therefore, you should try this:

wget http://ed.asisaid.com/VnE.jpg ; xv VnE.jpg

Frank 





More information about the Christiansource mailing list