[Neworleans-pm] Revised timeclock.pl

Dave Cash dave at gnofn.org
Fri Jun 17 02:15:46 PDT 2005


On Thu, 16 Jun 2005, Simon Dorfman wrote:

> First of all, nice work Dave!  Danke Schön!

Thanks!

> I see you hardcoded /home/dave/.timeclock on line 13.

Oops!  That was meant to be temporary.  It's gone now.

> I simply changed that to /Users/simon/.timeclock but I thought I'd
> point it out because I'm pretty sure the old version of the script
> just detected the home directory and didn't require hard coding of
> it's path.
>
> Before changing that this was the result:
> $ ./timeclock.pl clientname
> /home/dave/.timeclock is not a directory

Actually, you should just remove that line altogether (the copy on
the neworleans.pm.org site is now right, if you want to grab it.

> I have two feature ideas:
> 1. I'd like to be able to charge a different rate for different
> clients. Maybe a client config file similar to the client code
> file you're currently using would be a good way to implement it.

This feature already exists.  And it's documented!  See both the
CONFIGURATION and FILES sections.

> 2. I'd like to enter a comment when starting the clock.  This way,
> in case I forget to stop the clock, I can see a comment like
> "troubleshoot xyz" and remember what I had started the clock for.

This wouldn't be too hard of a thing to add or even to make
configurable.  Take a crack at it and let me know if you have
questions.

Dave

/L\_/E\_/A\_/R\_/N\_/T\_/E\_/A\_/C\_/H\_/L\_/E\_/A\_/R\_/N\
Dave Cash                              Power to the People!
Frolicking in Fields of Garlic               Right On-Line!
dave at gnofn.org                                  Dig it all.


More information about the NewOrleans-pm mailing list