Re: difference web/cli

2005-12-27 Thread Brano Gerzo
Shawn Corey [SC], on Tuesday, December 27, 2005 at 19:44 (-0500) has on mind: SC> If the script is called via the web server, it probably does not have SC> any arguments. It could also be invoked from different users. See SC> `perldoc perlvar` and search for '$<' and '$>'. thanks for idea, argum

Re: difference web/cli

2005-12-27 Thread Shawn Corey
Chris Devers wrote: On Tue, 27 Dec 2005, Brano Gerzo wrote: I am programming one script. It should be accessible as cgi-bin from web, and also as commandline from shell. But I don't know how to properly handle arguments and to know, if script was called from commandline, or from web. Anyone

Re: difference web/cli

2005-12-27 Thread Chris Devers
On Tue, 27 Dec 2005, Brano Gerzo wrote: > I am programming one script. It should be accessible as cgi-bin from > web, and also as commandline from shell. > > But I don't know how to properly handle arguments and to know, if > script was called from commandline, or from web. > > Anyone could he

difference web/cli

2005-12-27 Thread Brano Gerzo
Hi all, I am programming one script. It should be accessible as cgi-bin from web, and also as commandline from shell. But I don't know how to properly handle arguments and to know, if script was called from commandline, or from web. Anyone could help me ? Thanks. -- To unsubscribe, e-mail: [