03-11-2013
ionotifywait is not available in Redhat 5.6
Hi,
I need to monitor the file creation in some directory and i came to know that it can be achieved using ionotifywait tool but this is not available in Redhat 5.6
Do you have any idea wthether i can monitor the file without using inotifywait tool? Any other way to monitor the file creation file?
-Pawan
Moderator's Comments:
|
|
@Panwan Kumar: please start a new thread for this
|
|
Last edited by Scrutinizer; 03-11-2013 at 05:34 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
:confused:
I have a process which was schedule to run from 8am - 6pm daily. The scripts will search & run the commands that i was predefined in the database. Ususally, there were about 6-7 jobs for each submission and each job takes about 1-2 hrs and running one by one. And, I have a cron job... (3 Replies)
Discussion started by: hk_newbie
3 Replies
2. UNIX for Dummies Questions & Answers
There is a process which is consuming too much time.. how to find that process and kill it. (3 Replies)
Discussion started by: shreenivas
3 Replies
3. Programming
hello everybody!!
i want ur help! it is urgent!!
...
pid=fork();
if(pid==0)
{
execl(a program);
exit(1);}
else if (pid>0)
{
timer(5); //(command 1)timer is a function that count up to 5sec
if(kill(pid,0)==0)kill(pid,9);//(command 2)
wait(&status);
....
}
else
perror("error");... (3 Replies)
Discussion started by: nicos
3 Replies
4. UNIX for Dummies Questions & Answers
I need a simple line to run from apple remote desktop's Unix terminal on multiple different machines to see if Microsoft Entourage is running and kill it.. I imagine this could be done with a ps auxwww and grab the second field, (PID) put it into a variable and do a kill $variable using awk, but... (5 Replies)
Discussion started by: glev2005
5 Replies
5. Shell Programming and Scripting
Hi
I have the process to kill regulary, but the PSID is dymatic change and not sure how to kill the specific process ID
Check the tradekast_rvd is running , if such process, kill the els process id
ps -e f |grep tradekast_rvd
ps -ef |grep els
then I kill els process id
... (2 Replies)
Discussion started by: linux_user
2 Replies
6. UNIX for Advanced & Expert Users
I would like to kill a process after a certain amount of time. Can I please get some ideas on how to do this? (9 Replies)
Discussion started by: cokedude
9 Replies
7. Shell Programming and Scripting
Good afternoon
I need to KILL a process in a single command sentence, for example:
kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'`
That sentence Kills the process ID corresponding to the program CAL255.4ge.
However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies
8. Shell Programming and Scripting
Hi,
I need a script to kill the process if it running for long time.
Inputs for the scripts:
1.test.sh (will be running fron cron scheduler)
2.1 hr (ie threshold_time - if the test.sh is running for more than 1 hr test.sh has to kill)
Thanks,
Divya (1 Reply)
Discussion started by: Divya Nochiyil
1 Replies
9. Shell Programming and Scripting
Hello,
I have multiple scripts (vlc1, vlc2,...vlc5) and as I do not know how to run them as upstart processes, I entered my script links into rc.local file.
Here is the sample one for process vlc1:
$ nano /etc/rc.local
added below line into rc.local
/var/bin/./vlc1 &
Port nr of vlc1... (7 Replies)
Discussion started by: baris35
7 Replies
10. Shell Programming and Scripting
All,
1.What is the unix comand used for all current running process (Including All current running processes Parent ->child->subchild process)
2.If child and subchild processes are running then what is the unix command to kill parent and its all child subchild processes in UNIX.
Kindly... (7 Replies)
Discussion started by: skp
7 Replies
LEARN ABOUT OSX
chudremotectrl
CHUDREMOTECTRL(1) General Commands Manual CHUDREMOTECTRL(1)
NAME
chudRemoteCtrl - start or stop the collection of performance monitor data in a performance monitor remote server application.
SYNOPSIS
chudRemoteCtrl [ -m ] [ executable [args... ] ]
chudRemoteCtrl -s label
chudRemoteCtrl -e
chudRemoteCtrl -k PID
DESCRIPTION
chudRemoteCtrl is a command line tool that allows for the collection of performance data by any active performance monitor remote server
application. There are currently two CHUD Tools that can be put in remote performance monitor server mode: MONster, and Shark (as well as
their command line counterparts). Typically, chudRemoteCtrl is invoked on the command line or in a shell script, followed by the path to an
executable to be measured and its arguments. chudRemoteCtrl issues a chudStartRemotePerfMonitor message immediately after launching the
specified target program. When the launched program terminates, chudRemoteCtrl issues a chudStopRemotePerfMonitor message, and then exits.
When the '-s', '-e' or '-k PID' options are used, no program is launched.
OPTIONS
-r seconds: If the 'chudStartRemotePerfMonitor' message fails to either acquire or start the remote monitoring service, then keep try-
ing to start again, until the specified number of seconds has elapsed. The same thing is true of the '-e' option. If there is a '-r
<seconds>' argument on the command line, and a failure occurs trying to stop the remote profiling program, the stop message will be
sent again until the retry time limit is reached.
-s label: Issue a chudStartRemotePerfMonitor message with the specified label and exit. A 'label' is a string of up to 32 characters.
-e Issue a chudStopRemotePerfMonitor message and exit.
-q silence some of the non-essential warning and error output.
-kPID Send a UNIX signal (SIGUSR1 to start profiling, SIGUSR2 to stop profiling) to the specified process-id. For example, if a command-
line profiling tool, is running as PID 4267, using '-k 4267' along with a '-s' will send a SIGUSR1 to the command-line profiling
tool and it will start sampling, while '-k 4267' along with a '-e' will send a SIGUSR2 to the command-line profiling tool and it
will stop sampling. A 'start' example: % chudRemoteCtrl -s session_42 -k 4267. And a 'stop' example: % chudRemoteCtrl -e -k 4267.
The command-line CHUD tool 'shark' responds to UNIX signals and toggles performance profiling. You can repeatedly send '-s <label>
-k <PID#>' to shark and it will toggle profiling start or stop. Sending '-e -k <PID#>' to shark will stop sampling (if it's run-
ning) and cause shark to EXIT.
-m Set the performance monitor mark bit in the main thread of the launched child process.
DIAGNOSTICS
chudRemoteCtrl returns a zero (0) upon success and a non-zero value on failure.
BUGS
Please send your comments, suggestions and bug reports to: perftools-feedback@group.apple.com
SEE ALSO
monster(1), shark(1)
CHUD
6 October 2003 CHUDREMOTECTRL(1)