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
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
kameshj@fastmail.fm 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
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" kingwez@gmail.com
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
kameshj@fastmail.fm 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
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
kameshj@fastmail.fm 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 JayachandranOn Tue, 26 Oct 2004 15:01:34 +0100, "Wez Furlong" kingwez@gmail.com
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
kameshj@fastmail.fm 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
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" kingwez@gmail.com
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
kameshj@fastmail.fm 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 JayachandranOn Tue, 26 Oct 2004 15:01:34 +0100, "Wez Furlong" kingwez@gmail.com
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
kameshj@fastmail.fm 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
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
kameshj@fastmail.fm 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" kingwez@gmail.comsaid:
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
kameshj@fastmail.fm 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 JayachandranOn Tue, 26 Oct 2004 15:01:34 +0100, "Wez Furlong" kingwez@gmail.com
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
kameshj@fastmail.fm 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
Here is my suggestion,
Rather than taking two switches, php should grow a generic switch for
this kind of use:
php -o param:value;param:value;
This allows custom mods to php a way to introduce new options that are
not part of the general php distribution, without the need to land grab
the limited switches. There is also the potential for someone to
develop an extension to allow a php script to handle some alternative
switches.
Regards,
Shane
Kamesh Jayachandran wrote:
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.
Shane,
This solution seems interesting.
I will give a try.
With regards
Kamesh Jayachandran
On Tue, 26 Oct 2004 08:24:03 -0700, "Shane Caraveo" shane@caraveo.com
said:
Here is my suggestion,
Rather than taking two switches, php should grow a generic switch for
this kind of use:php -o param:value;param:value;
This allows custom mods to php a way to introduce new options that are
not part of the general php distribution, without the need to land grab
the limited switches. There is also the potential for someone to
develop an extension to allow a php script to handle some alternative
switches.Regards,
ShaneKamesh Jayachandran wrote:
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.
Hello Kamesh,
i know Netware and still i'd say CLI is definitively not the place to add
stuff like this. If you really need this then you may want to do some INI
controled user-space magic. Like adding a get-char through auto-append-file.
regards
marcus
Tuesday, October 26, 2004, 4:31:16 PM, you 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" kingwez@gmail.com
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
kameshj@fastmail.fm 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--
--
Best regards,
Marcus mailto:helly@php.net
Hello Kamesh,
i know Netware and still i'd say CLI is definitively not the place to add
stuff like this. If you really need this then you may want to do some INI
controled user-space magic. Like adding a get-char through auto-append-file.
I also think that CLI is not the place to add Operating System specific
hacks, they belong in the OS's management system.
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org