The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
72 views

Fork a process inside a bash shell script

I've a simple shell script like #!/bin/bash sh -c "sleep 60" & exec sleep 120 In using the pstree command, I found something like `-sleep(11681)---sleep(11682) The first sleep is due to the ...
-1
votes
1answer
41 views

Multiple Background Processes at Single Line Works in The Foreground

I want to convert an uploaded PDF file to JPG images and zip these images after convert process finishes. I use the ImageMagick library's convert command for PDF to JPG conversion. To accomplish ...
1
vote
1answer
86 views

Reliably running background operations

I'm looking for a recommendation on how to reliably run background operations. I have many servers posting operation messages to AWS SQS, and I have another server which will run these CPU intensive ...
0
votes
1answer
117 views

How can I find a specific PHP process with pgrep (monit related)

I've got a number of php processes that I'm running in the background, with monit as the manager for them. My current config for monit looks like: check process myprocess1 matching ...
0
votes
0answers
104 views

Background process and read from /dev/pts/X

I tested it on Ubuntu 12.04. First, I run java process from user1 in background and close terminal. Then I open a new terminal (from user1) run special script that sends current tty name (/dev/pts/2) ...
1
vote
5answers
129 views

Amazon Linux: Can't log background task output?

We recently moved to AWS EC2 instances w/ the Amazon Linux distro. On our old servers (RH Enterprise), we've been able to run a command in the background (&) and also redirect the output to a log ...
0
votes
2answers
388 views

How to kill the process using the name of the program instead of PID?

I started my Python program in the background using nohup as mentioned below - nohup zook.py & Now I am trying to kill this process so I did the ps command as mentioned below ...
0
votes
0answers
61 views

Process created by proc_open() is being signaled 9

Not sure if this question is appropriate for this forum but my problem is that I'm trying to run Julia interpreter using PHP proc_open() function. I'm trying to access this interpreter online using ...
0
votes
0answers
42 views

How to use run_init with processes in the background

I'm working on a CentOS 5.9 machine. There's a program that runs in the foreground instead of correctly forking a daemon. It's /etc/init.d/myprogram script has something like below: start() { ...
2
votes
1answer
175 views

How often does a Linux check it's /etc/localtime file

I am trying to troubleshoot a problem. Some very helpful information would lead me to a solution is: Often does Linux check the /etc/localtime file? Additionally if there is a configuration file to ...
4
votes
1answer
308 views

nohup vs screen vs ? for manually starting daemon processes

When I need to start a background process on a low-importance server, I tend to use nohup: nohup ./server.sh & Most colleagues seem to prefer screen: screen -D -R mydaemon ./mydaemon.sh ^A ^D ...
2
votes
1answer
120 views

Rogue process tracking

I have a debian stable server and I am trying to find a process which wake-up every hour at exactly xh22 (1h22, 2h22, 3h22, etc...) and write something to the disk. However I cannot find the process, ...
3
votes
1answer
92 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
80 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
87 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
175 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
94 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
156 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 ...
2
votes
1answer
379 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
3k 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
227 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
931 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
404 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
197 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
401 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
3answers
389 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 ...
3
votes
2answers
439 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
185 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
316 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
281 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
604 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?
0
votes
2answers
1k 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 ...
8
votes
3answers
3k 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
2k 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
602 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
60 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
839 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 ...
3
votes
2answers
3k 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
2k 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
778 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
474 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... ...
5
votes
2answers
6k 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
322 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 ...
10
votes
4answers
7k 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
241 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 ...
6
votes
4answers
13k 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
759 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
280 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
999 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 ...
2
votes
4answers
1k 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