Hi Gys!
It would be nice to get some suggestions for my problem here. I'd like to execute a command by another user than Root. This should be done by a script. The process within the script must be like this:
ROOT#su - <USER>
USER#ls -ltr /opt/freeware/glitter/*.log > /tmp/glitter.txt
Please notice that I have a different user environment. Perhaps I should directly do in the crontab? I've tried to do with this user, but it doesn't work
Thanks for all help!
Kind Regards, Oliver
It would be nice to get some suggestions for my problem here. I'd like to execute a command by another user than Root. This should be done by a script. The process within the script must be like this:
ROOT#su - <USER>
USER#ls -ltr /opt/freeware/glitter/*.log > /tmp/glitter.txt
Please notice that I have a different user environment. Perhaps I should directly do in the crontab? I've tried to do with this user, but it doesn't work
Thanks for all help!
Kind Regards, Oliver