joshua-redfield / lauf

A lightweight application and task launcher programmed in the shell scripting language. Lauf is no longer being updated or improved.
http://github.com/joshua-redfield/lauf
GNU General Public License v3.0
3 stars 0 forks source link

Lauf/Timeout feature #21

Closed joshua-redfield closed 13 years ago

joshua-redfield commented 13 years ago

Lauf will only run a single command without it's arguments for a duration of time, This means you can't do something like this ping google.com for 10s you can only something like gnome-system-monitor for 10s

joshua-redfield commented 13 years ago

Think I may have figured out a fix, haven't tried it yet though. First I'll have to count how many words are in the string $lauf_exec, then check against each one for the word "for" with a count(So I can tell where the for is located $lauf_exec$count kind of thing). Then use parameter expansion ${lauf_exec%"$for_count $time_count"}. In theory this should work.

joshua-redfield commented 13 years ago

Fixed and closed.