Hi all,
having read lots of posts about
SU I don't quiet understand this :
I'm doing regular backups of my database (u betta do) and therefore use
su - username -c "sqlscript special data_base" in a unixscript which is even using cron. (yep!)
Now I need some other script, still with this database, to do some updates to it, nightly.
Manually, I can run the usual command (being root) as above but the problem is that I can't get out of it unless keying
exit in. Even keying
exit between the quotes doesn't work.
When keying
exit in at commandline, I get back to my root-shell and the script is launched correctly.
Any idea would be greatfully accepted!