On Friday 25 March 2011 06:25 AM, Rajagopal Swaminathan wrote:
Greetings,
On 3/25/11, Rony Billgnulinuxist@gmail.com wrote:
I am happy to announce that the application is finally ready.
Great!! Wonderful!! Fantastic!!
May a red lettered day be marked in Indian FLOSS Calandre for this application.
Thanks for your reply but please avoid the heavy praising formality. I am not a programmer and have no knowledge of any programming language. There is no heavy coding or server and database in this system.
Is it FLOSS? Where is the link?
It is a simple bash script just like the one I had already posted earlier. It was tweaked with the 'date +%s -d 'today 10am'' option that Binand had suggested and I have added variables to make it a common script. Conditional statements have been added to keep out those who are not in the list of employees and those who have already marked themselves for that day. To do this There are 2 text files used as reference. One is a list of employees. The user_name is checked against this list. In the other text file, everyday before everyone arrives, a cron job will wipe its contents. Whenever a user is marked, the name is appended to this blank file called 'present' as members who are present. If a user is in the 'present' file then he/she cannot re-muster for that day. There is a second script that will daily run after some hours and it takes every name in the list of employees file and compares it with those in the 'present' file and marks those who are not present as Absent in their monthly log.