cosmos72 / detachtty Goto Github PK
View Code? Open in Web Editor NEWThis project forked from huetsch/detachtty
Attach/detach from interactive processes across the network
License: Other
This project forked from huetsch/detachtty
Attach/detach from interactive processes across the network
License: Other
Reported by Matthias Urlichs in 2002, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=168380
detachtty doesn't work with command-line editing programs.
To reproduce:
The problem is that attachtty needs to set its own stdio to 100% raw
mode (and clean up after itself when it exits).
Reported by Marco Baringer in 2004, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=282640
hi,
i found myself wanting to use a script to send some lisp code to a
dettachtty'd lisp server. unfortunetly the first thing i could think
of 'echo (foo) | attachtty /socket' doesn't work since the stdin
socket gets closed. i don't think attachtty should deal with that
since when attachtty is used interactily that should be an error
(though doing something other than looping forever spitting out
error messages migth be nice). so, i figured adding an --eval
argument was the smartest thing to do.
the attach attachtty.c accepts a '--eval CODE' argument. when passed
CODE is sent directly to the socket and the connection is closed,
when the --eval argument isn't passed it runs like before.
i don't think my coding style is the best so if you want feel free
to edit/refactor/maul as much as you like.
Reported by Adam C. Emerson in 2005, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329948
Currently, detachtty unconditionally sets the umask to 077 before
opening the socket. This bothers me somewhat because I would like to
make the socket accessible to a group rather than just a single user.
(Even an option telling the program that I know it thinks it's a bad
idea but I'd really like to would be nice.)
Removing the umask fixing can be accomplished easily by removing lines
80, 128, and 160 of detachtty.c
Thank you very much.
Reported by Robert Marlow in 2005, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=298877
The description of --pid-file in the manpage for detachtty/attachtty
states "The process ID of attachtty is written to pidname." when it
should read "The process ID of detachtty is written to pidname."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.