Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readall.sh nc: invalid option -- 'q' #429

Open
Der-Schubi opened this issue May 6, 2021 · 2 comments
Open

readall.sh nc: invalid option -- 'q' #429

Der-Schubi opened this issue May 6, 2021 · 2 comments
Assignees

Comments

@Der-Schubi
Copy link

Hello,

i'm using Arch Linux and the readall.sh Script isn't working, as netcat has no switch 'q'.
This switch is only used on OpenBSD netcat (Debian, Ubuntu, ...), but Arch uses GNU netcat.

Both versions have a switch "w" for the timeout, even though the long version is different.
As for the EOF part of 'q', GNU netcat knows a 'c' switch. I'm not sure if 'w' would be enough here?

GNU netcat 0.7.1:
-w, --wait=SECS timeout for connects and final net reads
-c, --close close connection on EOF from stdin

OpenBSD netcat (Debian patchlevel 1.206-1ubuntu1):
-w timeout Timeout for connects and final net reads
-q secs quit after EOF on stdin and delay of secs

For reference: #67 #68

Best Regards,
Christian

@GuillaumeC
Copy link

GuillaumeC commented May 17, 2021

Hello,

To force read all values I use this command:
ebusctl f -l "*" -a|awk '{print $2}' | xargs -L1 -t ebusctl r

Regards

@kratz00
Copy link
Contributor

kratz00 commented Sep 9, 2021

@Der-Schubi Arch Linux gives you a choice to install your preferred netcat flavor (The default is gnu-netcat though).

[kratz00@helios scripts]$ sudo pacman -S netcat
:: There are 2 providers available for netcat:
:: Repository extra
   1) gnu-netcat
:: Repository community
   2) openbsd-netcat

Enter a number (default=1): 2

@john30 john30 self-assigned this Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants