Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm using gdb to debug a program via a ssh session. After a while, the ssh session closed, and I can find it using ps command after I establish a new one. Is there any way that I can bring it back to foreground? The environment is Linux Redhat
No.
The proper way to do this would be to use a program like screen or tmux to start the gdb session. This way, you can re-connect to your screen/tmux session even if your SSH session dies.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am using a postgres database for the first time. I am using python 3 in miniconda in Windows 10 and Lubuntu.
I want to start my database server from my python script (on the cron). When it starts, nothing else get executed in my script. Do I need multi-threading or it's something else?
thanks everyone
I tried subprocess.run() instead of os.popen() and it works
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to work on a current logfile, hosted on Server#1, without being ON Server#1.
How can I read the content, to get scripts process on an other machine (Server#2)
I don't want Server#1 to be impacted by my scripts.
Use ssh to get the log file contents, and pipe it to the script running locally:
ssh Server1 cat logfile | path/to/script
scp, netcat, FTP, rsync... you have so many options.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is there anyway that i can log all the commands that a certain user or user group has run in an ubuntu CLI.
I need to keep a track of all the commands run by a certain group of users say
UsrGrp1:usr1,usr2,usr3
as i'm running a Cluster of machines and all are being controlled by different users. And i need to monitor those through the root user of every machine.
The history command gives me all the command logs. But it can be modified by the user itself. So i need to keep the logs under the root user only.
You can try logkeys a keylogger for linux. Another options could be script but with this you need to write a trigger to start it at each user login.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I successfully installed a script to automatically launch in /etc/init.d on my new Raspberry Pi.
Unfortunately, it is a node.js app that never returns, and therefore hangs the device during boot (this is on Debian). Yes, I'm an idiot.
Is there a secret handshake I can do during boot to prevent it from running my init.d script so I can get to login and a shell to fix it?
What I did to solve this is this, and I warn you, it involves Windows.
I mounted the flash card on my PC and edited "cmdline" and added "ro 1" to the end of the kernel config. This only allows boot to proceed thru runlevel 1 and then drops you into root shell after a prompt.
NOTE: Windows 8 can read the kernel config file unmodified - no special drivers needed.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
Is there any way to setup my SSH client or my GNOME terminal or whatver so that when I SSH into a remote server it opens up TWO connections (or tabs or whatever)?
I always like to have two SSH connections to my remote servers open - one for displaying log files and another to do actual work. It bugs me that I have to login twice everytime.
Possible? Sensible? What's the verdict?!
I'm not sure what you're trying to accomplish. If you only have one terminal open, where would the two connection send output and get input? You might find something like "screen" useful that lets you have multiple virtual terminals that display to a single physical terminal. You use a key sequence to switch between them. I use it all the time when working over a remote login to a Unix box. It's also nice because you can re-attach to your virtual terminals if you lose your connection.