home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 1174 
 August Abolins to Maurice Kinal 
 looking to just list "string" in gpg out 
 17 Jan 26 22:07:00 
 
MSGID: 2:221/1.58@fidonet 28856bdc
REPLY: 2:460/256 0000062f
PID: OpenXP/5.0.64 (Win32)
CHRS: ASCII 1
TZUTC: -0500
Hi Maurice...

 MK>> If you have 'tee' handy then try this;
 MK>> H:/temp $ { gpg ppp.txt | tee NUL2; } &> NUL1 ; grep \" NUL2

 MK>> 'tee' will only output stdout to NUL2.  Both stderr and stdout will get
 MK>> written to NUL1 which if you don't need it could be redirected to
 MK>> /dev/null or whatever your sh enviroment uses to represent the void. Het
 MK>> leven is goed, Maurice

 A> No..  I want to parse stderr that gpg produces.

I got it!

H:\temp>gpg --batch --yes -d ppp.txt > NUL 2> NUL2 & busybox grep \" NUL2
      "seanrima-gpgmail "
      "Philipe "
      "Phil Lejman "
      "Paul Kapaldo"


or.. without busybox:

H:\temp>gpg --batch --yes -d ppp.txt > NUL 2> NUL2 & findstr /C:""" NUL2
      "seanrima-gpgmail "
      "Philipe "
      "Phil Lejman "
      "Paul Kapaldo"

I wanted to avoid any and all prompts for either the gpg passphrase and the  
file overwrite prompt so that I can use this in a batch/script for any  
updated ppp.txt that I need.


-- 
  ../|ug

--- OpenXP 5.0.64
 * Origin: Got Mobile? This echo = https://t.me/+RLI5gLJrHo6IIuzL (2:221/1.58)
SEEN-BY: 10/0 1 103/705 105/81 106/201 124/5016 128/187 129/14 153/757
SEEN-BY: 153/7715 154/10 30 110 203/0 214/22 218/0 1 601 700 840 860
SEEN-BY: 218/880 221/1 6 226/30 227/114 229/110 112 134 206 300 317
SEEN-BY: 229/400 426 428 470 664 700 705 240/1120 5832 263/1 266/512
SEEN-BY: 280/464 5003 291/111 292/8125 301/1 310/31 320/219 322/757
SEEN-BY: 341/66 234 342/200 396/45 423/81 460/58 633/280 712/848 770/1
SEEN-BY: 902/26 5020/400 5075/35
PATH: 221/1 280/464 103/705 218/700 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca