Search

Sponsored Links

Meta

Categories

Archives

Recent Posts

RSS Feeds

26
Feb

A Simple Timer…

Related Blog Items

I got inspired by an officemate’s suggestion (thanks sir Chie) to make a tool which allowed you to invoke a command and have it timed to the second. This is because we needed a tool which would run a script in a predetermined number of seconds, and cron was too clumsy to use. So with his idea, I came up with a piece of software (under the GPL) which allowed you to invoke any application (or command) every N number of seconds.

The application was pretty simple, but I am posting the code here for the general public to look at and use for their own purpose. (This application is under the GPL, and if you’re interested in using the application or getting the actual sources, email me to get the package.

I am still applying for space on sourceforge (or some other hosting maybe here in the Philippines for it). Enjoy!

/* timer — a timed command invocation tool. Copyright (C) 2005 Dean Michael C. Berris, et al This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */

facf24fc933d9e966e0b9afba53095ca000

Comments and optimizations welcome.

by Dean Michael

download the above source code

creative commonsThis work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.

Popularity: 6%

You need to log on to convert this article into PDF


Related Blog Items

No Comments

No comments yet.

Leave a comment

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image