The pid tag has no wiki summary.
0
votes
1answer
7 views
Ruby On Rails - Resque - Stop Workers / Pid-Command
I have used this command to start a resque schedule on Ubuntu but how do I do if I want to stop the workers and schedules?
PIDFILE=./resque.pid BACKGROUND=yes QUEUE="*" rake resque:scheduler >> ...
0
votes
5answers
53 views
How to get the pid of a running process using a single command that parse the output of ps?
I am looking for a single line that does return the pid of a running process.
Currently I have:
ps -A -o pid,cmd|grep xxx|head -n 1
And this returns the fist pid, command. I need only the first ...
2
votes
0answers
27 views
How to deal with the discontinuity of yaw angle at 180 degree
I'm working on a vehicle control and using a 9DOF sensor (accelerometer, magnetometer and gyroscope). For the yaw angle, I have a discontinuity problem at pi rad. (180 deg.).
I'm controlling the ...
0
votes
1answer
76 views
C# How do I get unique PID for each browser tab in external browser ie. Chrome/Firefox/IE
When opening Windows Task Manager to view the PID of all open processes, I can see that all the open tabs in my Chrome browser have their own unique PID, however I get the same PID no matter what tab ...
0
votes
0answers
15 views
newsyslog: pid file doesn't exist: /var/run/lighttpd.pid
We're running lighttpd-1.4.26 on FreeBSD 7.2-RELEASE. Each time we rebooted the machine, and the lighttpd was started by rc script, the pid file won't automatically write into /var/run/lighttpd.pid.
...
1
vote
3answers
57 views
How to kill a running for loop on linux?
I'm working on Linux,
I have executed the for loop on a Linux terminal as follows:
for i in `cat fileName.txt`
do
echo $i
vim $i
done
fileName.txt is a file contains the large no of file entries ...
2
votes
5answers
51 views
how to find PID in php
I am writing a php script which will run through cron . Its task is to call other php scripts. The called scripts can also be executed externally. What I want is that while one file is executing, it ...
0
votes
1answer
54 views
Multiprocessing output to file
Is there a way to redirect the stream to file when creating an instance of class Process or during execution Process(target=..., args=(...)).start()
I asked about the typical pythonic way
...
0
votes
1answer
36 views
Arduino - PD - Line Following
#include <QTRSensors.h>
#define NUM_SENSORS 5 //Number of sensors used
#define NUM_SAMPLES_PER_SENSOR 4 //Average 4 analog samples per sensor reading
#define EMITTER_PIN ...
1
vote
1answer
37 views
Script to HUP parent and child process
I need a shell script to send a HUP to the parent and child processes.
I am using freeBSD with tcsh? #/bin/sh
Somehow, I need to pipe the PID output from pgrep to kill -HUP in a loop in a shell ...
0
votes
0answers
67 views
How to identify safari's “flash plugin” and get its pid
I've got 64bit safari running a flash video (OSX snow leopard). I try to list all process using the ps command in a shell window. Flash for safari comes up as "Plugin Process" However, if there are ...
0
votes
0answers
110 views
Lowpass filter for PID controller in discrete time
I am trying to implement a PID controller (in MATLAB .m file, not simulink), and I wanted to add a low-pass filter to my system.
So the filter normally goes on the negative feedback loop (i.e., I ...
0
votes
1answer
12 views
OS X - Determine the enviroment for a given PID?
For a given process ID, what is the best/most direct way to determine the environment variables (e.g. PATH)? Must be able to query for any arbitrary environment variable. PATH is just the first ...
0
votes
4answers
64 views
Explain some tips of bash
I get a piece of code for PID file control.
The style of programmers, I don't understand..
I don't know -->
Use of && on
[[ $mypid -ne $procpid ]] **&&**
And relaunch ourselves ...
0
votes
1answer
52 views
Identifying PID source of DNS request (Windows XP)
I wish to identify the process that is making DNS requests. Looking at the query gives me a clue, but doesn't help me identify the exact process.
I can see the local port number in Wireshark, but the ...