Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13528 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33562 invoked by uid 1010); 26 Oct 2004 15:35:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33529 invoked from network); 26 Oct 2004 15:35:36 -0000 Received: from unknown (HELO mproxy.gmail.com) (216.239.56.243) by pb1.pair.com with SMTP; 26 Oct 2004 15:35:36 -0000 Received: by mproxy.gmail.com with SMTP id w67so99432cwb for ; Tue, 26 Oct 2004 08:35:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=XW6TSMBhtHMu3Q85GjXTJSddPPvBXUZ3epRCsDgomrlRa5/Gv6GZIz+twQxqwpPIUd1uKaHY+aG+kf4cGtDsTR857c4ePGZ4a7n90RwmN0DiVGk094CpxUYOT0rMNSG47LDWn/cobN+OfanDd4UdEoHAmQoW9HnZCwWAae61SSs= Received: by 10.11.117.20 with SMTP id p20mr655456cwc; Tue, 26 Oct 2004 08:35:35 -0700 (PDT) Received: by 10.11.117.13 with HTTP; Tue, 26 Oct 2004 08:35:35 -0700 (PDT) Message-ID: <4e89b42604102608353c0618de@mail.gmail.com> Date: Tue, 26 Oct 2004 16:35:35 +0100 Reply-To: Wez Furlong To: Kamesh Jayachandran Cc: internals@lists.php.net, helly@php.net, edink@php.net In-Reply-To: <1098804786.17596.207295922@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1098796701.32385.207284415@webmail.messagingengine.com> <4e89b42604102607014c368073@mail.gmail.com> <1098801076.10214.207288490@webmail.messagingengine.com> <4e89b42604102607573001098e@mail.gmail.com> <1098804786.17596.207295922@webmail.messagingengine.com> Subject: Re: [PHP-DEV] Can someone allocate 2 command line switches for php cli on NetWare? From: kingwez@gmail.com (Wez Furlong) Shanes idea is good, but I know that if I was on netware, I'd prefer to have a function to do it, rather than a command line switch. Just my thoughts, --Wez On Tue, 26 Oct 2004 08:33:06 -0700, Kamesh Jayachandran wrote: > Wez, > > Seems interesting but the bit invasive to the scripts they already have. > They have to change call my custome ext/netware function I will try this > solution too. > > Thanks > With regards > Kamesh Jayachandran > On Tue, 26 Oct 2004 15:57:47 +0100, "Wez Furlong" > > > said: > > How about moving this kind of functionality into ext/netware and > > having a couple of functions that manipulate the netware > > screens/interactivity stuff? > > > > Then the scripts themselves can control exactly what is needed; this > > feels better to me, as it is more in line with other systems. > > > > --Wez > > > > On Tue, 26 Oct 2004 07:31:16 -0700, Kamesh Jayachandran > > wrote: > > > Hi Wez, > > > We have bash ported to NetWare which is new addition to our Netware > > > distro. > > > But still people tend to use System Console to run their programs. > > > Basically this is the requirements from some of Netware customers to use > > > php interpreter for running some cron jobs which does not need any > > > pressanykey(No interactivity with the user). > > > > > > For other regular scripts invoked manually by user needs sort of > > > interactivity before closing the screen. > > > > > > Regarding the pressanykey we can use NetWare system defaults to have > > > prompt functionality upon exit without having any code to have > > > pressanykey code. > > > > > > Still we need to have switches to have this interactivity or not(Based > > > on usage regular/cron) > > > We need one more switch to determine whether to have output in the > > > Logger screen(System wide log console) or Interpreter screen. > > > > > > With regards > > > Kamesh Jayachandran > > > > > > On Tue, 26 Oct 2004 15:01:34 +0100, "Wez Furlong" > > > said: > > > > > > > > > > Doesn't netware have a standard wait or pause utility for this kind of > > > > thing? > > > > > > > > It feels like PHP is the wrong place to add this kind of option; why > > > > should every application that runs on netware include code to open a > > > > screen? Why should every application that runs on netware include > > > > press-any-key code? > > > > > > > > Surely it is better to port a real shell and put the netware code in > > > > there instead? > > > > > > > > --Wez. > > > > > > > > > > > > On Tue, 26 Oct 2004 06:18:21 -0700, Kamesh Jayachandran > > > > wrote: > > > > > Hi All, > > > > > I need two cli switches to handle some special cases to NetWare specific > > > > > php invocation. > > > > > In linux and windows where shell and command prompt far live the php > > > > > interpreter invoked from them. > > > > > Both shell and command prompt will capture the output of the child php > > > > > interpreter. > > > > > In NetWare OS, php cli for that matter most programs are not invoked > > > > > from environments like shell/command prompt. > > > > > They are invoked directly from System Console which is in some sense > > > > > similar to "init" of Linux. > > > > > This makes the program to have their own Screen. > > > > > Upon exit of the program the screen will close and the user can not see > > > > > the output anymore. > > > > > To solve this issue we have 'pressanykey' prompt under ifdef for NetWare > > > > > in php cli code before calling exit.. > > > > > > > > > > This introduces another problem of scripts to always wait for user to > > > > > press any key before closing the screen. > > > > > > > > > > So we need a command line switch to conditionally prompting for user's > > > > > attention 'pressanykey'. > > > > > > > > > > Another command line switch we need is to conditionally open or not to > > > > > open the screen at all. > > > > > > > > > > Currently I could see g, j, k, o, p, t,u, x, y not being used. > > > > > > > > > > Can I make use of any two of them? > > > > > > > > > > With regards > > > > > Kamesh Jayachandran > > > > > > > > > > -- > > > > > PHP Internals - PHP Runtime Development Mailing List > > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > >