nncp-cat-handler (393B)
1 #!/usr/bin/env bash 2 3 . /home/jb55/.nncpenv 4 5 msgfile=$(mktemp) 6 tmp=$(mktemp) 7 cat > "$tmp" 8 9 cat <<EOF > $msgfile 10 response from $NNCP_SENDER for command: 11 12 $ $@ 13 14 Output saved to $tmp 15 16 THIS FILE WILL BE DELETED when this closes 17 Make sure to move it or lose it! 18 19 Go to the next page to view output. 20 EOF 21 22 read -r -d '' cmds <<EOF 23 less $msgfile $tmp 24 rm -f $tmp $msgfile 25 EOF 26 27 urxvtc -e bash -c "$cmds"