9 lines
No EOL
153 B
Bash
Executable file
9 lines
No EOL
153 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SERVER="ws://localhost:8000/"
|
|
|
|
for FILE in "$@"; do
|
|
JSON=$(printf '{"data_path": "%s"}' "$FILE")
|
|
echo "$JSON" | websocat "$SERVER"
|
|
|
|
done |