Tagged Questions
2
votes
1answer
82 views
bash script - supervisor program
I have to write a shell-script that have to do the following tasks:
-in every 5 seconds it saves:
-how many users are using joe and/or vi;
-if ...
1
vote
1answer
103 views
security concern around adding cron user to web application group
I have a permissions issue on my CentOS 5.6 machine with regards to the cron user.
On my test/staging environment my cron user (picco-cron) is a member of one group - picco-cron, as below:
...
4
votes
1answer
109 views
In crontab is it possible to specify a user from a variable?
I am trying to have the following cron executed with a certain user.
U=`/usr/bin/w | grep -w :0 | awk '{ print $1 }'`
*/1 * * * * $U /opt/script.sh
It seems the deamon doesn't know how to interpret ...
5
votes
1answer
251 views
Run script when specific users logout
I need to run my application in screen when specific users are logged out and kill the screen when someone from my user list logged in. So I am thinking about bash script, which will be called ...