Re: login shell?
- From: mlists@xxxxxxxxxxxxxxx (JupiterHost.Net)
- Date: Wed, 27 Jul 2005 20:08:52 -0500
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 :) .
- Follow-Ups:
- Re: login shell?
- From: Jay Savage
- Re: login shell?
- References:
- login shell?
- From: Bryan R Harris
- login shell?
- Prev by Date: RE: MySQL in a for loop
- Next by Date: Re: Messenger
- Previous by thread: Re: login shell?
- Next by thread: Re: login shell?
- Index(es):