SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-12-06 11:57:55

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Deferring the execution of a command.

More than once, I have found myself running a program that calls a given script multiple times, and sometimes, way too many times. In some cases, for instance, it was only necessary to run the script once in one minute, instead of hundreds of times.
Sounds like I want something like dpkg's deferred triggers, right? pretty much so.

From Raphael Geissert's blog.

Offline

Be excellent to each other!

#2 2012-12-06 16:05:38

fatmac
#! Die Hard
Registered: 2012-11-14
Posts: 1,948

Re: Deferring the execution of a command.

That link is showing the use of 'sleep' to hold back the running of the script/program for the number of seconds given, this can be done in any 'sh' script, as far as I know.


Linux since 1999
Currently:  AntiX, & Crunchbang.
A good general beginners book for Linux :- http://rute.2038bug.com/index.html.gz
A good Debian read :- http://debian-handbook.info/get/now/

Offline

#3 2012-12-06 16:42:50

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: Deferring the execution of a command.

It does more than that.
Any new, identical commands launched within the 'wait' time are not executed, they just increment the wait time for the original command to be executed.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo