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