[ale] script
Wandered Inn
esoteric at denali.atlnet.com
Mon May 21 15:23:36 EDT 2001
Cor van Dijk wrote:
>
> Greetings,
> I am trying to write a script which will feed a single line of output of
> "locate" into a simple imageviewer like
> "gqview" or "kview" (redhat6.2). I tried both shell scripting and Perl,
> so far with little succes. Obvious things
> like piping wont work. Perl seems to categorize this problem under
> "interacting with strangers". Also, there might be image viewers which
> will accept a command line from a file, but I haven't found any.
> Any ideas welcome.
xv $(locate FILES_WITH_THIS_PATTERN)
If you're using a different shell, you might have to use:
xv `locate FILES_WITH_THIS_PATTERN`
>
> Cor van Dijk
>
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
--
Until later: Geoffrey esoteric at denali.atlnet.com
"Great spirits have always found violent opposition from mediocre minds.
The
latter cannot understand it when a man does not thoughtlessly submit to
hereditary prejudices but honestly and courageously uses his
intelligence."
- Albert Einstein
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list