LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-31-2003, 04:46 AM   #1
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
killing process at time limit


Hello,
I'm currently writing a small program that takes some applications, and executes them, but with some constraints: The constraint I'm currently stucked in is that the program mustn't run in more than 5 seconds, so if for example it takes more than 5 seconds, I kill the process..
So, basically what I want to achieve, is to check, as soon as the program is executed, if 5 seconds are exceeded. If yes, it aborts, otherwise, I let the program run..
I'm using bash shell..

Hope it's clear,
Thanks in advance,
Hfawzy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Killing a process after x amount of time... virid Linux - Newbie 3 03-17-2006 07:13 AM
Killing a process fails. Have tried all I know. Racy Linux - Software 6 09-18-2005 01:57 PM
Killing a process by its name rabeea Linux - Networking 3 03-17-2005 06:30 AM
Killing a process on startup...... har5ha Linux - Software 3 07-24-2004 01:52 PM
Really Killing a Process! lazlow69 Linux - Newbie 14 05-10-2003 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration