try this:
usage:
create an alias in your profile
At the command line type firefox. It will start the background process then run firefox.
If you do not want the alarm thing to happen type /path/to/firefox to bypass the alias.
I am writing a script that takes two parameters: the name of another script and an integer that represents a number of seconds. The script must execute the second script (first parameter) for the specified number of seconds (second parameter), suspend it for the same number of seconds, and continue... (9 Replies)
Hi All,
I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages.
How can i terminate this daemon ? ? ?
Regards,
Vijay Hegde (3 Replies)
Hi all
i have simple c program , when i wish to kill the app
im using kill(0,-9) , but it seams this command don't do any thing and the program.
just ignore it .
what im doing wrong here ?
im using HP-UX ia64
Thanks (9 Replies)
I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
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)
Hello all,
Hopefully someone can point me in the right direction...
I have a script written in bash which is pretty basic and just stop/starts various services based on particular conditions. What I am trying to build is a reporting type function which will send out an email with various stats... (3 Replies)
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)
Hi,
Do anybody experience to write a bash script in order to kill a specific process (java) after certain time of running?
eg.
java java.jar task_run.txt
I will run a java program (java.jar) which will run a long list of process (task_run.txt) one by one.
I plan to terminate the java... (5 Replies)
Discussion started by: perl_beginner
5 Replies
LEARN ABOUT OSF1
clock
clock(3) Library Functions Manual clock(3)NAME
clock - Reports CPU time used
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <time.h>
clock_t clock (void);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
clock(): XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
DESCRIPTION
The clock() function reports the amount of processor time used by the calling process and each of its terminated child processes for which
a wait function has been executed. When a child process does not wait for its children, its child-process times are not included in its
times.
RETURN VALUES
The clock() function returns the amount of processor time (in microseconds) used since the first call to clock(). To convert the time to
seconds, divide it by CLOCKS_PER_SEC (which is defined to be 1,000,000 in <time.h>). If the processor time used is not available or its
value cannot be represented, the clock() function returns (clock_t)-1.
RELATED INFORMATION
Functions: ctime(3), getrusage(2), times(3), wait(2)
Standards: standards(5) delim off
clock(3)