LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-11-2013, 03:20 AM   #1
natarajan
LQ Newbie
 
Registered: Dec 2013
Posts: 1

Rep: Reputation: Disabled
Command execution for particular period time


I want to execute a command for a particular peroid of time. If it takes more than desired time then the command should be killled..

In rhel 6 timeout is there.but in rhel 5.4 any option is there..Please revert
 
Old 12-11-2013, 03:44 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
In RHEL 5 there is a sample script /usr/share/doc/bash-3.2/scripts/timeout. You can use it or try to write down your own script to suit your needs. In alternative you can try to install the latest coreutils (maybe under /usr/local or even better in a non-standard location, in order to not interfere with the version installed on your system).
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best method for automatic command execution every time a system boots up Ahsaniqbalkmc Linux - Newbie 8 08-14-2013 07:47 PM
grep greater than time period?? nomiezvr4 Programming 52 08-18-2011 11:19 AM
command execution time minil Programming 10 08-20-2010 04:59 PM
Long period of time to install Peter_APIIT Fedora 4 03-25-2007 12:03 AM
Only starting command in a specific time period jeroenvrp Linux - Software 3 07-20-2004 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:01 AM.

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
Open Source Consulting | Domain Registration