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)
{
"id":"b64d5e2040626a6b9803a7a5dab5f2c19432020a81eeda0be40b6e6daaef0b6b",
"pubkey":"f839fb6714598a7233d09dbd42af82cc9781d0faa57474f1841af90b5c930939",
"created_at":1738498604,
"kind":1,
"tags": [
[
"t",
"nak"
],
[
"t",
"bash"
],
[
"t",
"asknostr"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content":"nak req -k 7 -l 0 --stream wss://relay.damus.io | jq -r '.content'\nworks as intended\n\nnak req -k 7 -l 0 --stream wss://relay.damus.io | jq -r '.content' \n| while IFS= read -r line; do \necho \"Latest: $line\" \ndone\n\nand nothing is ever sent to $line\nnak outputs to stdout does it not? Works fine without --stream, but something about that...need to figure out how it writes that output.\n\nHas anyone gotten piped output from #nak to work (whilst in event stream mode)\n\nhttps://dl.vanderwarker.family/videos/nostr/nak_stream_pipe.webm\n\n#bash #asknostr",
"sig":"b79cc56db4e285c30e587b550b561f00986def7107b644f77f68175ff1fc1715d0835787b002b73e6eb83b9466809e2f656349b481b5c4c3123e7728c7d07b2b"
}