21 May
2009
21 May
'09
09:01
Per Jessen wrote:
Next question - what is the right/correct way to determine if /etc/profile.local is being run from a local console? (I'm not sure what the correct term is?) I only want set the timeout when someone is logged in as root locally.
Again, I'm not entirely sure but you could check whether the controlling terminal is a real tty or a pts. You could also check what the parent process is - login or an ssh or somesuch. I don't know what is "correct" :) Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org