The background-process tag has no wiki summary.
0
votes
0answers
33 views
BASH: launch background process and check when it ends [migrated]
How can I launch a process in background and check when it ends within a bash script?
My idea is a script like this:
launch backgroundprocess &
while [ Process is running ];do
echo "PROCESS ...
3
votes
1answer
36 views
Move a running process in background and keep it running even if you disconnect
You already have a running process and you want to put it to run in background.
If you want to be sure that this will still run after you close you ssh connection, what should you do?
Note: you are ...
0
votes
1answer
23 views
In AWS Ubuntu, python process stopped itself when running in background with &
command to start python process:
python /root/serverFiles/Cusp.py 8001 >> /root/log/cusp.log 2>&1 &
Cusp.py is a python code to call a bio-sequence process tool and return result. ...
0
votes
0answers
48 views
Manage a PHP background process
When you have a PHP background process running, what are recommended approaches to:
1/ Monitor that the process is alive and/or automatically launch a new one if it dies
2/ Make sure that there are ...
2
votes
1answer
91 views
Send input to background process [closed]
I have a process that i run with this command:
java -jar loginserver.jar &
I need to be able to send commands to this program. I've tried bg/fg but apparently it doesn't persist thru sessions. ...
0
votes
4answers
84 views
Seeing what background process is up to
I currently have a background process on my unix server that's running hours longer than it should be.
I can't remember the command to allow me to see the output of a background process. I'll ...
0
votes
1answer
90 views
How to delay and queue commands for execution at a later time? [closed]
My site receives numerous uploads and I can't afford to waste cycles and time processing them on the spot (e.g., trimming, optimizing, resizing, etc.). What technologies exist to delay and queue these ...
0
votes
0answers
31 views
Is there a good host for console applications? [closed]
We have several applications that run in AppHarbor that we are bringing in-house. Our worker processes for AppHarbor are developed as windows console applications. What is the best way to host these ...
2
votes
1answer
137 views
Dynamic number of supervisord controlled processes
I am using supervisord's [program:x] to keep my background queue runners up and running. The amount of numprocs is set to a static number, but now I am looking for a solution to dynamically adjust the ...
1
vote
5answers
790 views
Running python app in the background on linux
Weird question here, but I'm playing with a python chat server/client combo on my Linux server. Currently, if I do this:
$: cd /path/to/chat/server
$: sudo python ChatServer_Listen.py
This starts ...
0
votes
1answer
109 views
Sending signals to running Upstart job
How can I send signals or events to a running Upstart job?
I run a Node.js HTTP server with Upstart as a daemon and sometimes need to put it into maintenance mode for backups and stuff.
I'd like to ...
3
votes
1answer
199 views
How to send running process to background?
Once in a while I will issue a command that takes longer than I had thought it would (archiving a directory or something). How do I escape the process, send it to the background, and return to the ...
2
votes
3answers
304 views
Am I using too much memory? (Rails on EC2 with Resque)
I am looking at the memory usage of the Rails application (it uses background processes via Resque) and since the common answer to the question, "how many workers is too many" was "test and see", I ...
0
votes
1answer
161 views
Continue running a task with terminal disconnected?
Say I'm running a task on a remote (Ubuntu) server which last hours, but I need to disconnect my shell client now. Foolishly, I didn't use screen or think of starting the task with nohup.
Is there a ...
0
votes
1answer
259 views
Not killing background processes when exiting an xming / xlaunch gnome-session
I am logging in to a remote linux box using xlaunch with gnome-session --display=$DISPLAY. If I start a background process, is there a way to have it stay alive (keep running) when I exit Xming so ...
0
votes
2answers
211 views
“Silent” Backgrounding a Process
I have added a git pull & to my bashrc to keep a particular project always up to date!
However this means every time I open a terminal I get a message like
[17]+ Running git pull
And a few ...
2
votes
2answers
186 views
Shell background processes: what do characters in termination message mean?
I had three background processes, and here's what I've got:
[1] Done zcat jan.txt.gz > j
[2]- Done zcat feb.txt.gz > f
[3]+ Done ...
0
votes
2answers
148 views
Apache, httpd process 4MB+ memory use, Wordpress, Dedicated Server
What is happening to apache? I cannot trace down the processes doing this to my server. I can't anymore, the server is crashing every day a few times. Don't know what to do anymore, tried all the ...
3
votes
2answers
221 views
Spawning multiple instances of a daemon in Ubuntu
I have a python script that listens and blocks while it waits for data on a redis list.
It runs fine in upstart using the following:
description "stage message consumer"
author "Nilesh Ashra"
start ...
1
vote
1answer
215 views
Is there an issue with working directory when using service to launch an init script?
I am curious, is there something I need to watch out for when spawning process as background jobs from init scripts using service?
Here is the line that works at terminal, in a bash script/an init ...
0
votes
1answer
280 views
What's the difference between cron and services like Supervisord?
Recently I came across supervisor while researching beanstalk stuff. Can someone explain to me why I might use a process management service like that instead of plain old cron jobs?
-1
votes
2answers
607 views
Process running in background got killed in linux
I am having a remote server to which i connect using ssh. I started a process(mongodb) on the server using following command-
"/usr/bin/mongod --dbpath /mnt/ebs-300/mongodb --logpath ...
7
votes
3answers
2k views
How do I start a process in suspended state under Linux?
Practically, I need a process which behaves, as if I had pressed Ctrl+Z just after it started.
Hopefully, it is possible to do such thing using a shell script.
(Also, knowing the resulting PID would ...
2
votes
3answers
1k views
How does antivirus work on a Remote Desktop Services server?
We're rolling out a new Remote Desktop Services server and have decided that it's probably time to install antivirus software on it; while we wait for our vendor/supplier to tell us about the ...
2
votes
2answers
424 views
Proper Bash Daemon Script Creation
On Ubuntu, I copied /etc/init.d/skeleton as a new file and made it "all" executable (just like the others in that directory). In it, I made a "foo" that was just another Bash script in /usr/sbin, but ...
0
votes
2answers
55 views
Start processes at the same time
I have written a bash script which inturn needs to run around 130 Perl scripts.
#!/bin/bash
perl file1.pl &
perl file2.pl &
perl file3.pl &
....
....
perl file130.pl &
The above ...
0
votes
2answers
585 views
Where are the SQLServer jobs stored?
I'd like to know what is the process a SqlServer job is executing, but I only can find that it calls DTSRun with an encrypted string.
After decoding the string, it results is just the name of the job ...
1
vote
2answers
2k views
start sinatra app in background with stdout and stderr redirected(append) to a file
I have a sinatra app which I run on my local machine using ruby app.rb.
While deploying it on a remote machine via ssh, How do i run it in background and redirect stdout and stderr to a log file. On ...
0
votes
3answers
1k views
Run netcat in background on Ubuntu Lucid 10.04
I am trying to do a pg_dump from one server and simultaneously restore at the other server.
The command on source server (192.168.3.94):
pg_dumpall -v | nc 192.168.3.95 4000
The command on the ...
1
vote
1answer
564 views
Run a php script as a background process in wamp server
I have two php scripts that need to be run as continuous back ground processes in WAMP server.
Wamp server is installed in window 7 PC. These scripts are already reside in separate folder in the www ...
1
vote
1answer
424 views
kill all process spawned by parent process with ssh -x -n on other node
Hi
A software named G09 works in parallel using Linda. It spawns its parallel childs on other node as
/usr/bin/ssh -x compute-0-127.local -n /usr/local/g09l/g09/linda-exe/l1002.exel ...other_opts...
...
3
votes
3answers
3k views
Writing to stdin of background process
I'm on an Ubuntu 10.04 box, and started a server in the background (myserver &) over ssh. It's been running fine, but I need a way to get at the server's stdin, as the only way to control the ...
0
votes
2answers
288 views
View a program under a different login session? (Windows Server 2008)
we have a server which is running WinSrv 2008 (not R2). There is a scheduled task on this server which runs at startup and just runs continuously, waking on an interval per a db setting to do work and ...
9
votes
4answers
5k views
How can I run mongod in the background on unix (mac osx)?
I would like to run mongod in the background as an always present sort of thing. What would be the best way to do this? Kind of like the way I can run MySQL on startup and it's just always there ...
3
votes
5answers
211 views
Is there a simple way to daemon-ify a simple task?
I ssh into a server than start a job (for instance rsync), then I just want to be able to log out from the server and let the job run its course. But if I just do rsync ... & I think it's still ...
5
votes
4answers
10k views
Tools to run a background process command line in windows?
In linux we just need to append a & and that's all.
What for windows?
1
vote
2answers
726 views
Will the background process exit when you log out in linux?
[root@~]# ./file.sh &
I don't know if $! will terminate if I just log out immediately?
0
votes
1answer
252 views
Running A command in linux via ssh2 that keeps running when session ends
a simple question to one who knows...
I want to run a program in a Linux shell (ssh2)
I run the program with '&' so it should run on the background
But when I end the session , the program ...
1
vote
3answers
861 views
Running multiple PHP CLI's in the background gives MySQL errors
We run a meta search engine (price comparison) where each search spawns a number of real-time searches on various websites and presents the merged and sorted search results on our site.
We use ...
1
vote
4answers
898 views
Bash: Put a job in the background and then tail the log
How do you make the escaping work so that the & is actually running the first command in the background?
# foo param1 param2 >> run.out &; tail -f run.out
3
votes
5answers
2k views
Running Subversion post-commit hook as a background process
Because currently our Subversion post-commit hooks take way too long to execute I've been trying to speed things up.
I've been thinking about executing the actual hooks as a background process, so ...
2
votes
2answers
827 views
Linux: Background process linked to terminal window
I am running linux and I am running a script/program in the background using
cmd &
This works fine on Solaris, but on my Linux box (2.6.9-55/ Red Hat), the background process stops when the ...
4
votes
4answers
18k views
There is any way to run processes in the background in Windows? nohup equivalent for windows
nohup runs a process in the background. There is any equivalent for Windows?
2
votes
1answer
14k views
cmd.exe: how to start a background process, run some things, stop background process
I want to run a batch script that:
starts a background process (a Selenium RC server, if that matters);
waits until the background process starts to listening some port (or wait a fixed amount of ...