Hey
DGPickett,
A question to clarify. I need to execute 4 different commands with 4 different users so it means that I have to switch the users 4 times. As per my understanding, I can use the following commands.
set LOG='ABC/ABC/ABC.LOG
1 sudo/su - user -c "command" >> $LOG
exit
2. sudo/su - user2 -c "comand" >> $LOG
exit
3. sudo/su - user3 -c "command" >> $LOG
exit
4. sudo/su - user4 -c "command" >> $LOG
By doing that, each user have it's own environment veriables so do I need to setup the envs or it will catch it own its own.
One of the commands, I want to add grep command to one of the processes. If it finds, kill it. how can I get a specific running process and kill it if finds?
Your help is really appreciated
Thanks,
Afi