Skip to content

Commit

Permalink
gsexec
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyperTHC committed Nov 18, 2023
1 parent 9726158 commit e312f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ LOG=results.log bash -c "$(curl -fsSL https://gsocket.io/xs)"
{% highlight sh %}
# cut & paste this into your shell on your workstation or add to ~/.bashrc
gsexec() {
set +bm
set +m
{ echo "$2; kill -9 \$\$; __START"; sleep infinity;}|{ gs-netcat -s "$1"|sed -n '/__START/,$p'|tail +2; kill 0;}
set -bm
set -m
}
{% endhighlight %}

Expand Down

0 comments on commit e312f33

Please sign in to comment.