nostr-scripts/slow-post-all.sh
Václav Navrátil 130b34f430
Syntax fix
I was not able to run the previous code, but I'm running bash in Cygwin so it is possible it was a local problem.
2024-08-01 15:05:38 +02:00

12 lines
394 B
Bash

#!/bin/bash
# Take a file as argument and publish it to relays mentioned in the for cycle below
# File should be a jsonl file with one json object per line
for RELAY in wss://relay.nostrplebs.com wss://relay.nostr.band
do
echo "Publishing to ${RELAY}"
# We can post to different relays in parallel, they don't know about each other
python3 slow-post.py "${RELAY}" < "${1}" &
done