Re: [Leaf-devel] Timed Prompt

2001-01-25 Thread Tom Eastep
It looks like the bottom line here is that the -t option is a rather recent bash2 enhancement and so it's probably not wise to make Seattle Firewall dependent on it. As time permits, I'll take a look at replacing it with what Charles has suggested. -Tom Thus spoke [EMAIL PROTECTED]: > On Wed,

Re: [Leaf-devel] Timed Prompt

2001-01-25 Thread thc
On Wed, Jan 24, 2001 at 07:41:33PM -0800, Jack Coates scribbled: > Works fine here. > [jack@felix jack]$ bash --help > GNU bash, version 2.04.12(1)-release-(i586-mandrake-linux-gnu) > > Is there a newer slackware package? There's a slackball of 2.0.4b5, but I'll just compile the lastest source.

Re: [Leaf-devel] Timed Prompt

2001-01-24 Thread Jack Coates
Works fine here. [jack@felix jack]$ bash --help GNU bash, version 2.04.12(1)-release-(i586-mandrake-linux-gnu) Is there a newer slackware package? -- Jack Coates Monkeynoodle: It's what's for dinner! On Wed, 24 Jan 2001 [EMAIL PROTECTED] wrote: > On Wed, Jan 24, 2001 at 01:17:27PM -0800, Tom E

Re: [Leaf-devel] Timed Prompt

2001-01-24 Thread Tom Eastep
Hmmm root@localhost /root]# bash --help GNU bash, version 2.04.11(1)-release-(i386-redhat-linux-gnu) Usage: bash [GNU long option] [option] ... bash [GNU long option] [option] script-file ... GNU long options: --debug --dump-po-strings --dump-strings --hel

Re: [Leaf-devel] Timed Prompt

2001-01-24 Thread David Douthitt
On 24 Jan 2001, at 21:19, Tom Eastep wrote: > It exists in bash > > -t > > Causes the read to terminate after seconds... I see. Except: # bash [root@bbs pigpen]# read -t 10 X read: unknown option: -t read: usage: read [-r] [name ...] [root@bbs pigpen]# exit exit # rpm -q bash bash-1.

Re: [Leaf-devel] Timed Prompt

2001-01-24 Thread thc
On Wed, Jan 24, 2001 at 01:17:27PM -0800, Tom Eastep scribbled: > Thus spoke David Douthitt: > > I don't know. That "-t" option sure is missing alright: doesn't exist > > in pdksh, tcsh, bash, or ash. You sure it exists? :-) > > > > What is it? > > It exists in bash > > -t > > Causes

Re: [Leaf-devel] Timed Prompt

2001-01-24 Thread Tom Eastep
Thus spoke David Douthitt: > On 24 Jan 2001, at 19:49, [EMAIL PROTECTED] wrote: > > > David, is this anything like 'read -t' in less-stripped (non-lrp) > > systems? Tom Eastep, the guy who wrote Seattle Firewall, had to > > work around a missing '-t' option in read for the LRP package of > > Seaw

Re: [Leaf-devel] Timed Prompt

2001-01-24 Thread David Douthitt
On 24 Jan 2001, at 20:12, Charles Steinkuehler wrote: > Take a look at my shell-script e-mail client, where I do pretty > much what you want, with a few extra features (look for the mail > procedure): > http://lrp.steinkuehler.net/Packages/files/Utilities/grep Thanks I'll look... > The mainlin

Re: [Leaf-devel] Timed Prompt

2001-01-24 Thread Charles Steinkuehler
> GOAL: To create a program "timeread" with syntax: > > timeread > > which returns the input value on stdout, or an exit value of 1 if > timedout, or 2 if aborted by the user. > > METHOD: > > The current method I'm using is to spawn a process (background) > which will sleep the appropriate amoun

Re: [Leaf-devel] Timed Prompt

2001-01-24 Thread David Douthitt
On 24 Jan 2001, at 19:49, [EMAIL PROTECTED] wrote: > David, is this anything like 'read -t' in less-stripped (non-lrp) > systems? Tom Eastep, the guy who wrote Seattle Firewall, had to > work around a missing '-t' option in read for the LRP package of > Seawall... I don't know. That "-t" optio

Re: [Leaf-devel] Timed Prompt

2001-01-24 Thread thc
David, is this anything like 'read -t' in less-stripped (non-lrp) systems? Tom Eastep, the guy who wrote Seattle Firewall, had to work around a missing '-t' option in read for the LRP package of Seawall... On Wed, Jan 24, 2001 at 01:38:38PM -0600, David Douthitt scribbled: > I thought I had it fi

[Leaf-devel] Timed Prompt

2001-01-24 Thread David Douthitt
I thought I had it figured out but not so. GOAL: To create a program "timeread" with syntax: timeread which returns the input value on stdout, or an exit value of 1 if timedout, or 2 if aborted by the user. METHOD: The current method I'm using is to spawn a process (background) which