Article View: news.software.readers
Article #62031[slrn] Piping an article to a bash script to view attachment.
From: Steve
Date: Wed, 31 May 2000 00:00
Date: Wed, 31 May 2000 00:00
36 lines
1934 bytes
1934 bytes
I've been using slrn for over six months now and have recently tried to put a simple bash script together that will decode a message and show me the attached image. The main problem being that the majority of messages in the group that I read don't contain a begin line, I can save these files to disk and slrn will decode them for me, but if I pipe to a script like this: uudecode -o~/News/tmp.jpg display tmp.jpg uudecode complains that there is no begin line (as there usually isn't). The way I currently get round this is ":" to save the file, use the mouse to mark the file name from the post, go into another rxvt and open ImageMagic with the image, go back to slrn to read what the artist has to say about the image, go back and open up the image again and have a second look, (I normally close the image the first time because 1. I might not go back to it and 2. I'm to lazy to use the & key and 3 I'm going to need that command line again soon. If anyone knows of a better way of doing this please let me know. -- Cheers Steve email mailto:sjlen@ndirect.co.uk %HAV-A-NICEDAY Error not enough coffee 0 pps. web http://www.ndirect.co.uk/~sjlen/ or http://start.at/zero-pps 8:34pm up 5 days, 7:28, 1 user, load average: 2.18, 2.23, 2.21
Technical Details
Message-ID:
<slrn8j88av.dfr.sjlen@zero-pps.localdomain>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn8j88av.dfr.sjlen@zero-pps.localdomain> Subject: [slrn] Piping an article to a bash script to view attachment. Date: Wed, 31 May 2000 00:00:00 +0000 From: sjlen@ndirect.co.uk (Steve) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 629267905 X-Trace: 31 May 2000 01:05:37 GMT, 195.7.226.59 User-Agent: slrn/0.9.6.2 (Linux) Reply-To: sjlen@ndirect.co.uk Newsgroups: news.software.readers