#!/bin/bash # JSON=$(cat <<'EOF' # {"command":"nano","args":["-w","./hello.txt"]} # EOF # ) JSON=$(cat <<'EOF' {"command":"nano","args":["-w","./hello.txt"],"options":{"interactive":true}} EOF ) BASE64=$(echo -n "$JSON" | base64 -w0) echo "JSON: $JSON" echo "Running command..." build/runner "$BASE64"