Skip to content

Conversation

broerman
Copy link

@broerman broerman commented Sep 3, 2020

example:
net.ipv4.ip_local_port_range = 1024 64999

@gtufte
Copy link

gtufte commented Oct 11, 2021

Would be nice to have this merged! I have some settings that run in a constant exec-loop due to the /usr/bin/test outputs tabs instead of spaces, e.g.

Puppet run debug output:

Debug: Executing: '/usr/bin/test "$(/sbin/sysctl -n net.ipv4.tcp_wmem)" = "4096 12582912 16777216"'

Output when command run manually:

/sbin/sysctl -n net.ipv4.tcp_wmem
4096	12582912	16777216

Command run with suggested fix

/sbin/sysctl -n net.ipv4.tcp_wmem | /usr/bin/tr '\t' ' '
4096 12582912 16777216

@bschonec
Copy link

Please merge this. I can confirm that the changes in the pull request solved the space/tab issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants