Debian :: Monitor Running Process And Execute A Command When Change?

Jan 31, 2010

I want to monitor the process running and execute a command if some new process start. For example send a mail if any new process start.

View 1 Replies


ADVERTISEMENT

General :: Check If Process Is Running / If Not / Execute Another Script

Jul 11, 2011

I have a game server running using java, and it tends to crash sometimes, and only way to start it now is manually, so i thought i could create a script to check periodically if java is running, and if it isn't, run my startup script for the game server also, if it's possible it should log when it actually started the server startup script into a text file or something, so i can check why it crashed.

View 6 Replies View Related

Ubuntu :: Execute Bash Script After Running Process Finishes?

Jul 28, 2011

I have a computation going which takes a long, but uncertain, amount of time. I have another computation which needs to be run, but _after_ the first one is done. I won't be at the computer at that time to manually start the new process. I've done some Googling, and I found how to delay execution by a specific amount of time (e.g. "start process x in exactly 8 minutes from now), but that isn't quite what I want to do. Essentially, I'd like to tell the shell, "When process #nnnn finishes running, then start process x". Is there a way to do this?

View 6 Replies View Related

Software :: Program To Monitor A Directory And Execute A Script On A Change In Dir?

Oct 27, 2010

What is the best program to use to monitor a directory and execute a script when a new file is dropped in the directory? I've searched Google and just can't seem to find what I'm looking for. I would like to execute a shell script after a .CSV file is moved to a certain directory to generate a chart of the data contained in that file. I've got the script, now I only need to know how to execute it when a new CSV file is dropped into the directory. The Linux Distribution is RHEL 5.

View 2 Replies View Related

General :: Way In Zabbix To Monitor Whether A Process Running( Up / Down)

Jun 13, 2011

Is there a way in zabbix to monitor whether a process is running( up/ down)

i am using zabbix 1.8.4

View 2 Replies View Related

Debian :: Running Same Process Multiple Times(from Another Account) / An Instance Of Newsbeuter Is Already Running Error?

Aug 6, 2010

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.

View 1 Replies View Related

General :: Change Cpu Utilization Of Running Process?

Apr 28, 2011

Can we change cpu utilization if its have very high in running mode without stop that process.

View 1 Replies View Related

General :: Command / C Function To See Cpu Number On Which Process Running?

Feb 22, 2011

When I fork multiple processes, is there some command or c function to see the cpu number on which the processes are running?

View 3 Replies View Related

General :: Specify Password For Sudo Command When Running Bg Process?

Jun 23, 2010

I'd like to start a background job using the sudo command and route its output to a file. This presents a problem because the prompt for the password doesn't work properly. It looks something like this when I try it:

Code:
Mac:server user$ sudo php crossdomain_server.php > data/crosscomain_output.txt &
[3] 30303
Mac:server user$ Password:
[3]+ Stopped sudo php crossdomain_server.php > data/crosscomain_output.txt
Mac:server user$

Basically I'm not properly prompted for the password and as soon as I type anything in my background job fails because it didn't receive the password. Is there any way to execute a sudo command by supplying the password on the same line as the command?

View 9 Replies View Related

General :: Unix Command That Allows To Know Which Process Is Running On Processor Core?

Mar 16, 2011

Unix command that allows to know which process is running on processor core?

View 2 Replies View Related

General :: Command To Find Out For How Many Milli Seconds A Process Is Been Running

Feb 15, 2011

Is there any command to find out for how many Milli seconds a process is been running?s -a -o pid,etime | grep "process pid" gives the time in min:seconds. I wanted in milliseconds .

View 10 Replies View Related

SUSE :: Automate Execute Command, Reboot And Execute Command?

Dec 1, 2008

Is there a way to execute some command and then after the command completes utomatically reboot the system and then after the system reboots execute another command ? For example look at the sequence shown below(1) Execute command-1(2) After the command-1 in (1) is completed,reboot the system (3) Execute command-2(4) After execution of command-2 reboot the sytemIs there a way i can automate this process so that i need not reboot the system manually

View 5 Replies View Related

Debian :: How To Run Execute Command In Terminal

May 4, 2010

i have one executable file (filename : "tet"). i can run this command in other linux os like: "fedora, cent os" using command "./tet", and it's working fine. but this command not working in debian. i don't know how to execute this file.

1. i have tried with 755 and 777 permission
2. i have tried "home/fullpath/tet"
3. i have tried "/tet"
4. i have tried "./home/fullpath/tet"

but above all commands are failed. to run this execute file

View 10 Replies View Related

Debian Programming :: Execute System Command Using Qt

Feb 19, 2014

I was writing code to execute system command, using GDM3 an logged in as root (just commented line #auth required

pam_succeed_if.so user != root quiet_success , in /etc/pam.d/gdm3).

When i execute:

Code: Select allvoid criarWindowsDialog::on_pushButton_2_clicked() {
    ui->commandTextEdit->append("Processo iniciado ...");
    QProcess processo;
    QString comando;
    QStringList args;
    QString fullCommand;
    QString stdOut;
    QString stdError;

[CODE]..

View 0 Replies View Related

Debian :: Switching Into Running Process?

Mar 9, 2011

if i start a program over ssh by 'foo &'how can i go back 'in' this process, so i could see the output and type in commands?

View 1 Replies View Related

Debian :: Failed To Execute Child Process "gnome-screenshot" (No Such File Or Directory)?

May 11, 2011

When I press )print screen button ) it says ....here was an error running gnome-screenshot:Failed to execute child process "gnome-screenshot" (No such file or directory)

View 4 Replies View Related

Debian Configuration :: Running A Nondaemonized Process At Startup?

Feb 15, 2011

I have a script that needs to start executing on startup. Because I originally wrote it for MacOSX I never cared to learn how to daemonize it (thanks launchd!). Are there any relatively easy ways to run it on startup on debian to?

View 2 Replies View Related

Debian :: Execute Command Mactime In Order To Control Changes Made To The File System?

Apr 23, 2011

I am trying to execute command mactime in order to control changes made to the file system, but I am getting an error. I am running the shell as root, and it is the first time I run the command in this system - Debian Squeeze up to date. The I/O is as follows:

# mactime 3/1/2011
cannot exec /bin/date: No such file or directory
cannot exec /bin/hostname: No such file or directory
cannot exec /bin/uname -n: No such file or directory
Cannot open /var/cache/tct/data/Amnesiac/body: No such file or directory

The first three lines of output are the ones that are worrying at the moment; I am not concerned with the last. Although error messages suggest the programs date, hostname and uname do not exist in /bin directory, they are available as shown by

[Code]...

View 3 Replies View Related

Ubuntu :: Change The Args Passed To A Terminal Command While It Is Running?

Apr 14, 2011

I'm trying to ssh my ubuntu laptop with my android phone. But with the app I have (connectbot) I don't seem to be able to pass any args to the command. I want to pass the -Y command to allow my phone access to the screen on my laptop so i can use my laptop (somewhat) from my phone. Can you change the args passed to the command while it is running?

View 5 Replies View Related

Debian :: Kill An Process Running From An Folder And With User Parameter?

Dec 4, 2010

i googled around and finally stumbled over this forum. I've been wondering, how would i kill an process running from an folder and with user parameter? I usually type this into the ssh console: pkill -9 < process > -U < username >

But i want users be able to run it multiple times, and killing only an specific process and not every single one.

View 4 Replies View Related

Debian :: New Monitor Cant Change Refresh Rate

Apr 14, 2011

I just upgraded from a 1280x1024 17" to a 1920x1200 24".However, at 1920x1200, I do not have an option to change the refresh rate to anything but 60Hz, but Id like to run 70 or 75Hz.My monitor is an Asus PA246Q. Digital Signal Frequency : 30~83 KHz(H)/ 50~76 Hz(V).I am running Debian 6.Video card is an ATI Radeon 4850/1GB, and I am using the fglrx driver.

View 3 Replies View Related

Debian Hardware :: Cannot Change Monitor Resolution

Jan 27, 2015

I have a fresh installation of Debian 7.8 on my Dell Precision notebook. Somehow I failed to configure Xorg in a proper way. I do have X up and running, but I can not change my monitor resolution. Here is my graphics card.

Code: Select all$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Radeon HD 8800M Series

I tried to follow suggestions from Debian Wiki, somehow nothing really worked (https://wiki.debian.org/AtiHowTo)

Code: Select all# aticonfig
aticonfig: No supported adapters detected
Code: Select all# X -configure
Terminated with an error, below is the Xorg.0.log file
Code: Select all[   227.953]
X.Org X Server 1.12.4

[code]....

View 2 Replies View Related

Debian Multimedia :: Change Font Size In X For High-res Monitor

Jun 9, 2015

I've a high resolution monitor(2560x1440) on my laptop running Debian testing and would like to change the font size in X. I manage to change most of the fonts to a readable size through the openbox configuration manager. But the font in my login window and for example in apps like vlc is still very tiny. How this could be changed ....

View 2 Replies View Related

Red Hat / Fedora :: Command To Stop That File/process Or Is It Just Kill The Process To Stop The Process?

Nov 11, 2010

I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./start_tomcat.sh to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process

View 2 Replies View Related

Programming :: Effect Of Using Eval To Execute A Command As Opposed To Writing It On The Command-line?

Jun 18, 2010

Code: cmd='date | wc'

$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?

View 4 Replies View Related

General :: Get Crontab To Execute Process Every 10 Minutes?

Jan 31, 2011

I am trying to get a process ( SARG access log report tool ) to run every 10 minutes but I cannot get it to work.
Here is the content of the crontab file
______________________________
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command

[code]....

View 5 Replies View Related

General :: Execute File In Different Process On Ubuntu?

Oct 28, 2010

Means I want to execute two executables one by one at the same time as shown below:execute1
execute2these are two executables. but the second one is executed after 1st one is closed is there any way two execute both.One way isgnome-terminal -e execute1execute2but here i want to hide the terminal window..........

View 3 Replies View Related

Software :: Execute A Program As The Very Last Step Of Boot Process?

Feb 2, 2011

I want to execute a program at the very last step of Linux boot process. For Debian based Linux distro that uses BSD boot process, I came up with 2 solutions:

1) I should somehow call my program from the /etc/rc.local script (although is this the last step of the boot process?)

2) Use the "multi_end" and "sysinit_end" hooks for executing it at the end of rc.multi rc.sysinit respectively (I don't know how to do it though).

View 6 Replies View Related

Ubuntu :: BASH: Execute Next Command Until Another Command Succeed?

Mar 19, 2010

I have a big bash script ,its goal is to download movie one by one . But I often get into a problem: if this script is executed in cron,it often does not completely download the movie.I often find the movies it downloaded are several KB while the movie is actually 20MB.So I think it is because it did not wait for finishing one task ,and jump to download another.So I want to know ,is there a way to force the bash script to wait until one movie downloaded completely and then start to download another movie ?

View 8 Replies View Related

General :: Only Execute 2nd Command On Successufl Execution Of 1st Command?

Aug 19, 2009

I have a script which builds a project and then runs junit tests. However, if the build fails, the junit tests fail with the same error message.Therefore the command which runs the junit tests should only be executed if the build was successful.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved