Networking :: Forcing SSH Process To Continue Running?
Apr 27, 2009
running a large program on a remote SSH server the other day when I was disconnected. This is a large program, ~48 hours to complete, and I was disconnected around hour 40. I have restarted the program using the following (Note: I am already ssh'd into the server) ./20090427_9crossing > 20090427_9crossing.out & Now, I believe this will run the program in the background and output to the file. So, if I get disconnected again will it continue to run? If not, is there a way that I can get it to keep running?
I've been running my shellscript for about half an hour now. It's taking longer than I thought to process all the data. I have the process ID of it. Is it possible to save the process and log out then log in and continue the process? I know how to pause a process using kill -pause pID and continue it using kill -cont pID. But that only work if you don't log out after pausing it.
My requirement is nearly transferring 50GB files from remote server to local server via SCP command,while transferring the data its break-en because of some reasons in 35% itself. is it possible to resume the transfer process again from this 35% process.
I am downloading a big file on linux VPS, and I am connecting remotely via Putty to do it? Once I initiated the wget command to download the file, if I close the putty window, will wget continue to download the file in the background even though the session is technically closed?
Several times in the last few days the desktop has frozen. I don't know if it's KDE issue or another conflict.All programs seem to continue running smoothly, but none of the menus on windows will work, or anything in the task manager, or desktop itself. I've tried killing the task manager but it doesn't affect the issue. If I knew what process was causing this, I might be able to restart it.
Possible Duplicate: Leave bash script running on remote terminal while not logged in? I run a program, say ./a.out 10 from the shell prompt. Assume that there's a while(1) inside the program being run. Now if I try to close the shell, it warns me that it'll kill my running program too! So, how to kill the shell and still let my program continue running in the background?
I tried exec ./a.out 10 but the shell is still there. Another alternative is to simply double click my executable but then how will I pass command line parameters?
I installed Debian 5.0.8 alongside Windows XP 64bit, and the installation went fine. However, when I choose to boot into Windows, the menu still shows the option to continue with the Debian installation. Debian was installed by burning the iso in Windows and then launching the CD rather than booting into the CD. My searches turned up with results to actually continue with the installation process, which like I said, went just fine. I want to boot right into Windows from Grub (if Windows is selected) instead of having the installation menu pop up again.
Sometimes I connect to my Debian box from another computer (using SSH on Cygwin or Linux), and once ina while I want to run some console apps. And sometimes some of these apps might complain about "another intance, Error: an instance of newsbeuter is already running (PID: 2496)". Is there a work around for this issue at all(without killing the original instance") ? The reason I do not want to kill the app because there might be 2 users connected to the same machine that might be using the same app.
How can I force a Wine application (or Wine itself) to use a specific network interface? I have installed hamachi and am trying to play starcraft over virtual LAN. However, when I run Starcraft with hamachi running, it does not work. I have now determined that hamachi creates a network interface called "ham0". How do I force Wine/Starcraft to use the "ham0" network connection? I have looked into forcebindip but it crashes on wine.
How can I force a Wine application (or Wine itself) to use a specific network interface? I have installed hamachi and am trying to play starcraft over virtual LAN. However, when I run Starcraft with hamachi running, it does not work. I have now determined that hamachi creates a network interface called "ham0". How do I force Wine/Starcraft to use the "ham0" network connection?I have looked into forcebindip but it crashes on wine .
After seeing those 4G phone commercials with that newfangled mobile hotspot tech, I have to admit I was eager to trade in my crappy 2 year old CDMA phone for one. That is, until I saw the price tag. 30$ a month for hotspot? No way, so what I did was activate the tethering feature buried deep within the primitive OS accessible only with a plethora of codes and hackery. So long story short: I can now network on the go because Ubuntu sees my device as a "mobile broadband device". Unfortunately, my ipod lacks a USB port for tethering so I use my freed up wireless card to make an AD-HOC network for my ipod to connect through my makeshift modem. Now, my issue is that the modem isn't really that mobile any more because I have to have my laptop OPEN to keep my networks on ,otherwise I close my laptop and no more Adhoc or mobile broadband! So, my question is if I can close my laptop but still keep it connected to the mobile broadband and broadcasting the adhoc network.
I recenlty set up a headless linux home server by my router will my spare computer parts. I have NFS and even a COD4 server running on it for my friends and me. Because the box is headless, I take controll over it with ssh and start the COD4 server from there, but the problem is, if I close the terminal I have the ssh running from, it closes my server, meaning my desktop needs to be up and running the entire time. That kinda ruins the point of my server
So my question is, is there a way for me to run the command so that it will not close with the terminal AND that I can still send commands to the server.
Is it possible, using ps, to determine where a process is running from? I have two applications, both are identical and running in parallel directories, such as /app1/start.sh and /app2/start.sh. If I run ps -ef then I'm unable to tell the difference between the two
Using ps (or alternative), how can I tell that PID 123 belongs to app1?
If I run top, there's a process plymouthd always running, often taking a few percents of CPU. I found that "plymouth" would be a splash screen. My PC is booted already though, I don't need a splashscreen once it has booted. Is this a bug? How can I get rid of this process that always uses %CPU?
Maybe someone can shed some light on this process that is running. It is using my CPU about 100% since there are 2 instances of it running with about 50% used by each.abc_sieve_2.10_i686-pc-linux-gnuI've never noticed it running before and don't think I've installed anything except updates.
I am writing network module (LKM). I got process information by current->pid and current->comm. But now i want current state of task. I want to know the state of running the process. I dont find any information in struct task_struct structure. how can i get the state of current running process.
How can i get the notification of process which are currently running?
We wrote one script which is being fired for every minute, instead of that is there any to trigger the event from linux core implicitly if there is any change in my process(pid)?
I have not been able to find any information on this, mostly because I am sure I am searching for the wrong terms. Let me explain what it is I need to do.I have a timeclock process that needs to be running all the time on my Red Hat server. Right now, I manually start the process from terminal:Code:# ./timeclockThis runs the process inside the terminal. The only problem is that if I close the terminal by accident, the timeclock stops working. This is all well and good for now, until I get more timeclocks.Then I will need to have one terminal open per. What I would like to do is to make this process run at start up, and run behind the scenes (no terminal). At the same time, I need to be able to re-run the process (again, hopefully behind the scenes) in case the timeclock goes offline or the process crashes.I know very basic things about Linux administration, and I know it is possible to do this (as there are processes now setup by someone else that do this), I just do not know how. EDIT: An idea I had would be to make the script run every minute, checking to see if the process is already running, and if it is not, then to start it. That way it would automatically correct itself if it went offline.
I have stellarium 0.10.2 but whenever I run it, it does not save my settings. A look at its output is:
Code: $ stellarium QProcess: Destroyed while process is still running. [ This is Stellarium 0.10.2 - [URL] ] [ Copyright (C) 2000-2009 Fabien Chereau et al ] Writing log file to: "/home/arthur/.stellarium/log.txt" File search paths: 0 . "/home/arthur/.stellarium" 1 . "/usr/share/stellarium" Config file is: "/home/arthur/.stellarium/config.ini" Sky language is: "en_US" Application language is: "en_US" Loading Solar System data ... Loaded 38 / 38 planet orbits Loading star data ... Loading "stars_0_0v0_1.cat": 0_0v0_1; 5013 Loading "stars_1_0v0_1.cat": 1_0v0_1; 21999 Loading "stars_2_0v0_1.cat": 2_0v0_1; 151416 Loading "stars_3_1v0_0.cat": 3_1v0_0; 434064 Finished loading star catalogue data, max_geodesic_level: 3 navigation/preset_sky_time is a double - treating as jday: 2.45151e+06 Loaded 10051 / 13226 NGC records Loading NGC name data ... Loaded 222 / 222 NGC name records successfully Loaded 88 / 88 constellation records successfully for culture "western" Loaded 85 / 85 constellation art records successfully for culture "western" Loaded 89 / 89 constellation names Loading constellation boundary data ... Loaded 782 constellation boundary segments Loading star names from "/usr/share/stellarium/skycultures/western/star_names.fab" Loaded 230 / 230 common star names Loading star names from "/usr/share/stellarium/stars/default/name.fab" Loaded 3215 / 4359 scientific star names Creating GUI ... try_pbo_zcopy: failure 2 try_pbo_zcopy: failure 2 try_pbo_zcopy: failure 2 try_pbo_zcopy: failure 2 try_pbo_zcopy: failure 2 try_pbo_zcopy: failure 2 try_pbo_zcopy: failure 2 try_pbo_zcopy: failure 2 try_pbo_zcopy: failure 2 try_pbo_zcopy: failure 2
The failure continues for as long as the app is running.
How do you move a running process to the background? For example, type the command sleep 60 on the command line and try moving that process to the background.
I just installed Wine (1.1.3* dev release) and installed Notepad++ (OSS) and Net Meter (Freeware, the latest beta is actually OSS too). I also intend to install a few other things later. The only failure so far is the latest WinSCP So it made me wonder about what running a process/software as "root" actually means. When I use U.S.C or 'apt-get install' to install software on my computer, and type my password, it displays that keyring icon on my systray.
Does this mean I am root at that moment? And how about running wine, the wine processes, and any windows *.exe I'm installing and running? I basically am afraid that I am running all the wine-related stuff as root, even though there is no indication that I at least have elevated privileges. What is/are the worst-case scenario(s) about wine?
Firefox keeps freezing.the process keeps running.I've uninstalled firefox, installed different versions, ie 3.6, 3.7 etc, I've removed my profile folder in my home directory.same results. I've ran firefox as a SU and I get this output from the terminal
(firefox-bin:28892): GLib-WARNING **: g_set_prgname() called multiple times /home/josh/.gtkrc-2.0:2: error: scanner: unterminated string constant - e.g. `style' (parent won, so we're not deferring)