Global Feed Post Login
Replying to Avatar ⚡tephen

nak req -k 7 -l 0 --stream wss://relay.damus.io | jq -r '.content'

works as intended

nak req -k 7 -l 0 --stream wss://relay.damus.io | jq -r '.content'

| while IFS= read -r line; do

echo "Latest: $line"

done

and nothing is ever sent to $line

nak outputs to stdout does it not? Works fine without --stream, but something about that...need to figure out how it writes that output.

Has anyone gotten piped output from #nak to work (whilst in event stream mode)

https://dl.vanderwarker.family/videos/nostr/nak_stream_pipe.webm

#bash #asknostr

Avatar
Jay 11mo ago

Try tail -f ing the jq?

Reply to this note

Please Login to reply.

Discussion

Avatar
⚡tephen 11mo ago

Before the while loop?

Thread collapsed
Avatar
⚡tephen 11mo ago

It won't output anything.

Avatar
Jay 11mo ago

I don't actually know how this works, sorry

Avatar
⚡tephen 11mo ago

Nah it's all good it's been a couple of days being like damn it...no

.. try something else....no 😂

I'll get there eventually 😁☺️

Thread collapsed
Thread collapsed
Thread collapsed