* Holger Weiß <[email protected]> [2013-11-13 23:01]:
> For the moment, a wrapper script such as the following might do the
> trick:

Er, the record separator was missing.  Second try:

  #!/bin/sh -e
  export PATH='/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin'
  dump_file='/var/tmp/send_nsca.dump'
  cat >>"$dump_file"
  printf '\027' >>"$dump_file"
  send_nsca "$@" <"$dump_file" && rm -f "$dump_file"

Holger

Reply via email to