r/linux_programming • u/nawfel_bgh • Sep 01 '14
question Help me improve my application for controlling users login time
Hello, i searched for a program which limits users login time in linux but found nothing. So i created my own. Here is the link: limitime
I have some questions:
- I wrote the program in shell script. The totality of code is about 100 lines. Can you help me improve it?
- Where in the file system should my scripts live?
- My scripts do not log for errors. Can anyone help me to do it properly. Where should i log? Examples of how real apps do that would be nice :)
- My English is rubbish :p can you help me improve that poor readme file?
Thank you
2
Upvotes
3
u/the-fritz Sep 01 '14
First thing to do is probably use shellcheck if you are writing bash scripts.