Re: login shell?





Bryan R Harris wrote:

Is there a way to determine in perl whether the current script was run from a login shell or not?

if(-t STDIN) { print "Hello terminal\n"; } else { print "Content-type: text/html\n\n"; print "Hello <b>Browser</b>\n"; }

HTH :)
.