21 lines
392 B
Bash
Executable File
21 lines
392 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
# JSON=$(cat <<'EOF'
|
|
# {"command":"nano","args":["-w","./hello.txt"]}
|
|
# EOF
|
|
# )
|
|
|
|
JSON=$(cat <<'EOF'
|
|
{"command":"nano","args":["-w","./hello.txt"],"ssh":{"host":"localhost","user":"j","key":"auto"},"options":{"interactive":true},"env":{"TERM":"xterm-256color"}}
|
|
EOF
|
|
)
|
|
|
|
|
|
BASE64=$(echo -n "$JSON" | base64 -w0)
|
|
echo "JSON: $JSON"
|
|
echo "Running command..."
|
|
build/runner "$BASE64"
|
|
|
|
|