We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ nc -Ulk /tmp/socket # -U - open unix socket # -l - open for listening # -k - keep open for multiple connections
echo
import socket conn = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) conn.connect('/tmp/socket') # ^ this will fail if nobody is listening on Unix socket def echo(msg): conn.sendall(msg + '\n') echo('--- start ---') echo(sys.executable)
The text was updated successfully, but these errors were encountered:
Error for conn.connect on Unix socket.
conn.connect
socket.error: [Errno 111] Connection refused
socket.error: [Errno 2] No such file or directory
Sorry, something went wrong.
No branches or pull requests
echo
function to Python codeThe text was updated successfully, but these errors were encountered: