Comments (15)
This is expected, as well as ssh does. You may use tools like nohup
to keep process running in background.
from ttyd.
nohup makes my docker process stay alive after ttyd ends. and then I have to kill it manually, how do I fix this?
from ttyd.
ttyd just kills the process when the browser closes, I want it to stay open after the webpage closes but I still want it to close when I kill ttyd.
from ttyd.
Not support, this seems not the use scene of ttyd.
from ttyd.
I mean like where I can visit the webpage at any time and have access to the running process
from ttyd.
I want it to stay open after the webpage closes but I still want it to close when I kill ttyd
This is not possible, ttyd always send quit signal to process when client disconnected. if you want to share one terminal with multiple users, you can use a terminal multiplexer like tmux, for example: ttyd tmux new -A -s ttyd vim
.
from ttyd.
nope, not what I want. what I want is a session I can always connect to in the browser. i'm not going to be sharing it with others.
sorry if i'm bothering you, but you don't seem to understand what I want
from ttyd.
I Understood, but it is not possible for ttyd right now, so I gave you some workarounds.
What you want is something like tmux session managed by ttyd which maps connect
to attach
, disconnect
to detach
?
from ttyd.
can't you just add like a --nokill
option, something likeDoesn't shut down process on client disconnect
?
i'd add that option myself but i have no idea how :/
from ttyd.
No. ttyd doesn't store session, if it Doesn't shut down process on client disconnect
, that process will be stale, we can't identify which client it belongs to.
from ttyd.
I give up...
from ttyd.
Would it be possible to put an (Nginx) proxy in front which always keeps the connection alive and accepts coming and going connections and transfers these to the same session? For the ttyd
it would just seem that there is one long-running connection. Anyone got experience with this?
from ttyd.
I am looking for same functionality. I need to keep the session running and access whenever I need to, using browser. I appreciate if there are any updates or ideas? Many thanks
from ttyd.
I agree with the maintainer, this feature doesn't really make sense to handle in ttyd. It can be done with tools designed for running persistent sessions:
# start some persistent background terminal session (could also use tmux, Docker, etc)
screen -dmS htop-session htop
# attach to it when users connect to ttyd
ttyd bash -c 'screen -r htop-session'
from ttyd.
I also agree with the maintainer and many thanks for the solution @dmartin
In case somebody needs it, here I am leaving a link to my image
https://github.com/devopswise/wspacer-basic-workspace
from ttyd.
Related Issues (20)
- ttyd crashes on windows HOT 4
- Safari 17 Does Not Load WebSockets, TTYD 1.7.4 (ARM) Will Not Load HOT 8
- Query command HOT 1
- Why can't ttyd let the browser save passwords? HOT 1
- Resume publishing SHA256SUMS HOT 1
- Integration with dockerized alpine HOT 1
- Fonts being displayed incorrectly HOT 2
- Attach to process HOT 1
- message to user on max-client HOT 1
- Clear up security implications of default (no `--writable`) mode HOT 1
- Add some compibility for phones and add a local update checker that update it self HOT 1
- Would it be possible to add support for the bell character on the client? HOT 1
- 1.7.5 release reports incorrect version HOT 1
- 1.7.6 reports incorrect version HOT 4
- Segmentation fault and pty_spawn failed on armel device HOT 3
- [HELP] how to fix incorrect word spacing like this? HOT 3
- Programación
- Support headless mode
- How to use --url-arg HOT 2
- Add specifying parameters in the configuration file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttyd.