[ILUG] Re: [techtalk] How a script is called

Conor Daly conor.daly at oceanfree.net
Thu Aug 17 08:24:49 EST 2000


On Thu, Aug 17, 2000 at 01:24:25AM +0100 or so it is rumoured hereabouts,
 Fergal Daly thought...
> At 19:48 16/08/00, Conor Daly wrote:
> >
> >Nice answers everyone but, alas, there is an implicit assumption that there's
> >only one arg or none involved.  I'm accepting up to three args in any order at
> >present and have no control over how the script is called in the case of a
> >pipe.
> 
> Not trying to start (another ;-) fight but did you read my reply? Using if 
> [ -t 0 ] makes no assumptions about arguments, it is a common and standard 
> way of checking whether you're being piped or not. You can find it in no 
> less an authority than the Perl Cookbook and I'm sure many other places,
> 
Fergal,

Your (sexy) answer didn't appear at my mail client until after I posted the
above response.  I responded to that somewhere in this thread also.

Thanks again!! :-)

-- 
Conor Daly <conor.daly at oceanfree.net>

Domestic Sysadmin :-)





More information about the Techtalk mailing list