Navigation Menu

Skip to content

Commit

Permalink
use printf in shell example client
Browse files Browse the repository at this point in the history
this fixed the Bad line seen problem because of a trailing newline more
reliably
  • Loading branch information
mrtazz committed Sep 11, 2012
1 parent 31dfd7a commit 92eff4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/statsd-client.sh
Expand Up @@ -18,7 +18,7 @@ fi
exec 3<> /dev/udp/${STATSD}/${PORT}

# Send data
echo -n "$1" >&3
printf "$1" >&3

# Close UDP socket
exec 3<&-
Expand Down

0 comments on commit 92eff4d

Please sign in to comment.