Ok, So I am trying to install McMyAdmin, I am running the gui version of Ubuntu.
Here are the instructions provided by the dev.
We have a long running process on a remote server which is kicked off manually from time to time. Unfortunately internet connections die, kernels panic and a whole host of other challenges can be encountered by the ssh session used to connect and start the job.
Screen seems like a perfect way to ensure the process isn't interrupted.
It is a good practice to run long processes in screen session, to protect them from session hangups. But what should I do if I already have a process that is running and I just forgot to run screen? Is it possible to 'capture' current session somehow and protect it with screen?
I have a peculiar problem. My server supports multiple ssh session simultaneously, so that multiple admins can manage it simultaneously.
We have a command which calls ztail to show the compressed log files and when the current ssh session is closed (without pressing ctrlc, to stop the tail command), the command should ideally stop working.
I'm looking to switch from screen to tmux for my terminal multiplexing needs, but there's a feature of screen that I need to replicate in tmux: the -X option, which allows one to run arbitrary screen commands inside an existing screen session.
I would like to send a command to a screen session and if possible get the output.
My attempt at sending a command to a screen session is as I found on this website and lots of others, but it doesn't seem to work:
root@server [~]# screen -X "script -a -c 'ls -l' /tmp/command.log" && cat /tmp/command.log
cat: /tmp/command.log: No such file or directory
root@server [~]#
Note there is on
I have a script on an embedded device that calls screen to start if a user logs in via a ssh session...
#!/bin/sh
SCREENRUNNING=`pgrep SCREEN`
if [ -z "$SCREENRUNNING" ]; then
echo "Screen not running so let's start the Master session
sleep 2
screen -dmS Master
sleep 2
screen -x root/Master
else
echo "Screen is already running let's connect to existing sessio
I have a peculiar problem. My server supports multiple ssh session simultaneously, so that multiple admins can manage( via Command line interface) it simultaneously. we have a command which calls ztail to show the compressed log files. Now when the current ssh session is closed( without pressing ctrl - c , to stop the tail command), this command should ideally stop working.
This is driving me nuts. I run an opensim server on system, and currently have a watchdog script used to check that the server is running and either run it or re-start it as necessary (in the event of a server crash).The server itself is run in a gnu screen session so that I can log in to the server remotely via ssh. At the moment I run my watchdog at login, which is not ideal.