7 Aug
2003
7 Aug
'03
19:43
* Kieran Swanepoel (kieran.swanepoel@za.didata.com) [030807 06:32]:
su - sag and enter the password and then I type history, I get the history of commands. But if i log in as follows from root: su - sag -c "history" , then no history gets printed ?
I think it's because 'su - -c' doesn't start an interactive shell so $HISTFILE is unset, but I'm not positive. 'su - sag -c "cat ~/.bash_history"' should do what you want (minus the last command of course). -- -ckm