Useless Microoptimizations Homepage Forum Forum Index Useless Microoptimizations Homepage Forum
Don't get confused, this is just my homepage, not really a message board. I implemented it as a forum for reasons you can find here.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cratimeout - timeout wrapper for commandline tools (a semantically correct one)

 
Post new topic   Reply to topic    Useless Microoptimizations Homepage Forum Forum Index -> My software
View previous topic :: View next topic  
Author Message
Useless Microoptimizations
Site Admin


Joined: 09 Feb 2005
Posts: 114
Location: Boston, MA, USA

PostPosted: Wed Sep 14, 2005 5:54 pm   Reply with quote

cratimeout is a wrapper about commandlines. As the namesuggests, after a specified timeout the commandline will terminate.

Example:

   cratime 5000 ssh foobared.host.com ls

will not wait longer that 5 seconds for the ssh command to complete.

Usage is very simple: the first argument is a timeout in milliseconds, all other arguments for the commandline to be executed.

cratime has been coded carefully to change the semantics of the called program as few as possible. In particular, it preserves signal behavior. SIGINT, SIGQUIT etc. sent to the program will make the whole commandline have the signal semantics as if the program was called directly.

For now, cratimeout is a simple C program without configure script. Download it from http://www.cons.org/cracauer/download/cratimeout.c

Please give feedback if you notice problems. If compilcation turns out nontrivial on common platforms I will make a proper package out oof cratime.
Back to top
View user's profile Send private message Visit poster's website Permanent URL to this post in this thread
Display posts from previous:   
Post new topic   Reply to topic    Useless Microoptimizations Homepage Forum Forum Index -> My software All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group