RE: [U2] Unidata - handler for mistyped commands?

2008-07-02 Thread Dennis Bartlett
To consolidate your ideas then, you don't want to write a shell, you don't
want to change the voc, and you do want it to change?

Ha ha

Easiest is to write a shell, but along the lines of the spell checker : 
- use soundex to look for similarities, 
- file: key= soundex'd names. 
- file: line 1: all other possible related soundex values
- file: record=each line a possible prog
- if one prog only, call it.
- if multiprogs, offer browse list

Any choices must then update the files - with a little learning logic in a
short while it should be easy to find any program in the shortest time.

Library systems use soundex to do just this, eg when non-English speakers
are searching for English books. 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Anderegg
Sent: 01 July 2008 07:22 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Unidata - handler for mistyped commands?

Not exactly on topic:

Back in the day (that would be the early 90's) I used to work in a SCO unix
environment - the command interpreter had a built in spell checker that
would offer a suggestion for the command you might have meant whenever you
had a typo.  Pretty nifty.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edward Brown
Sent: Tuesday, July 01, 2008 5:09 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Unidata - handler for mistyped commands?

Yes, I've already got some VOC entries that are shortcuts to longer named
jobs, and we do have a few VOC entries to catch common typos, what I'm
wondering is if there is a more generalised way of intercepting unrecognised
commands, ideally a way of calling a specific 'handler'
program that can see what was typed in and make a decision internally on the
best way to handle it.

Edward

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kathleene M Hunter
Sent: 01 July 2008 07:05
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Unidata - handler for mistyped commands?

Create a VOC enter that is the typo that executes the correct process.

Example
ED VOC EDIT.PROG
01: S
02: ED BP

ED VOC EDIT.PROG
01:PA
02:ED BP

ED VOC EDIT.PROG
01: PQ
02: HED BP
03: P
(note that line 1 may need to be PQN)


If you want to have it global catalog a program under a different man then

CATALOG programfile newname programname options



-Original Message-
From: Edward Brown [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2008 10:37 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Unidata - handler for mistyped commands?

Hello,

Within Unidata, is there any way to intercept commands typed at the command
prompt if they aren't recognised?

It's to 'magically' allow slightly mistyped program names to launch that
program - some of our routine names are quite long - and also to recognise
abbreviated routine names in the nature of Quicksilver for the Mac, if
anyone's familiar with that.

Now, obviously I could do all this by running an extra shell over the normal
command prompt but it would be nicer to have it work at the normal prompt...
And I know the abbreviation thing can be done with VOC entries, and I've
already got a few set up, but I'm looking for a more generalised solution.

Thanks,

Edward



-
--
Please remember to recycle wherever possible.
Reduce, reuse, recycle, think do you need to print this e-mail?


-
--
This e-mail and any attachment(s), is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
addressee, dissemination, copying or use of this e-mail or any of its
content is prohibited and may be unlawful. If you are not the intended
recipient please inform the sender immediately and destroy the e-mail, any
attachment(s)
and any copies. All liability for viruses is excluded to the fullest extent
permitted by law. It is your responsibility to scan or otherwise check this
email and any attachment(s). Unless otherwise stated (i) views expressed in
this message are those of the individual sender (ii) no contract may be
construed by this e-mail. Emails may be monitored and you are taken to
consent to this monitoring.

Civica Services Limited, Company No. 02374268; Civica UK Limited, Company
No.
01628868
Both companies are registered in England and Wales and each has its
registered office at 2 Burston Road, Putney, London, SW15 6AR.


-
--
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http

RE: [U2] Unidata - handler for mistyped commands?

2008-07-02 Thread Edward Brown
Well - thanks, I guess.

Regarding the internal workings, yes - it would need to work along those
lines, especially the 'learning logic' part.

As for not wanting to write a shell, not wanting to change the voc -
you're right - my original question (perhaps poorly phrased) was an
enquiry as to whether there was an existing mechanism in unidata to call
a handler routine in the event of an unrecognised command being entered.
Whilst I've never come across such a thing, nor seen anything that
suggests it might even exist, I had hoped that someone on the list might
be able to give a definitive answer either way.

Edward

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis Bartlett
Sent: 02 July 2008 11:22
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Unidata - handler for mistyped commands?

To consolidate your ideas then, you don't want to write a shell, you
don't
want to change the voc, and you do want it to change?

Ha ha

Easiest is to write a shell, but along the lines of the spell checker : 
- use soundex to look for similarities, 
- file: key= soundex'd names. 
- file: line 1: all other possible related soundex values
- file: record=each line a possible prog
- if one prog only, call it.
- if multiprogs, offer browse list

Any choices must then update the files - with a little learning logic
in a
short while it should be easy to find any program in the shortest time.

Library systems use soundex to do just this, eg when non-English
speakers
are searching for English books. 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Anderegg
Sent: 01 July 2008 07:22 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Unidata - handler for mistyped commands?

Not exactly on topic:

Back in the day (that would be the early 90's) I used to work in a SCO
unix
environment - the command interpreter had a built in spell checker that
would offer a suggestion for the command you might have meant whenever
you
had a typo.  Pretty nifty.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edward Brown
Sent: Tuesday, July 01, 2008 5:09 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Unidata - handler for mistyped commands?

Yes, I've already got some VOC entries that are shortcuts to longer
named
jobs, and we do have a few VOC entries to catch common typos, what I'm
wondering is if there is a more generalised way of intercepting
unrecognised
commands, ideally a way of calling a specific 'handler'
program that can see what was typed in and make a decision internally on
the
best way to handle it.

Edward

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kathleene M
Hunter
Sent: 01 July 2008 07:05
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Unidata - handler for mistyped commands?

Create a VOC enter that is the typo that executes the correct process.

Example
ED VOC EDIT.PROG
01: S
02: ED BP

ED VOC EDIT.PROG
01:PA
02:ED BP

ED VOC EDIT.PROG
01: PQ
02: HED BP
03: P
(note that line 1 may need to be PQN)


If you want to have it global catalog a program under a different man
then

CATALOG programfile newname programname options



-Original Message-
From: Edward Brown [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2008 10:37 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Unidata - handler for mistyped commands?

Hello,

Within Unidata, is there any way to intercept commands typed at the
command
prompt if they aren't recognised?

It's to 'magically' allow slightly mistyped program names to launch that
program - some of our routine names are quite long - and also to
recognise
abbreviated routine names in the nature of Quicksilver for the Mac, if
anyone's familiar with that.

Now, obviously I could do all this by running an extra shell over the
normal
command prompt but it would be nicer to have it work at the normal
prompt...
And I know the abbreviation thing can be done with VOC entries, and I've
already got a few set up, but I'm looking for a more generalised
solution.

Thanks,

Edward



-
--
Please remember to recycle wherever possible.
Reduce, reuse, recycle, think do you need to print this e-mail?


-
--
This e-mail and any attachment(s), is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
addressee, dissemination, copying or use of this e-mail or any of its
content is prohibited and may be unlawful. If you are not the intended
recipient please inform the sender immediately and destroy the e-mail,
any
attachment(s)
and any copies. All liability for viruses is excluded to the fullest
extent
permitted by law. It is your responsibility to scan or otherwise check
this
email and any attachment(s). Unless

RE: [U2] Unidata - handler for mistyped commands?

2008-07-01 Thread Kathleene M Hunter
Create a VOC enter that is the typo that executes the correct process.

Example
ED VOC EDIT.PROG
01: S
02: ED BP 

ED VOC EDIT.PROG
01:PA
02:ED BP

ED VOC EDIT.PROG 
01: PQ
02: HED BP
03: P
(note that line 1 may need to be PQN)


If you want to have it global catalog a program under a different man then 

CATALOG programfile newname programname options



-Original Message-
From: Edward Brown [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 27, 2008 10:37 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Unidata - handler for mistyped commands?

Hello,

Within Unidata, is there any way to intercept commands typed at the
command prompt if they aren't recognised?

It's to 'magically' allow slightly mistyped program names to launch that
program - some of our routine names are quite long - and also to
recognise abbreviated routine names in the nature of Quicksilver for the
Mac, if anyone's familiar with that.

Now, obviously I could do all this by running an extra shell over the
normal command prompt but it would be nicer to have it work at the
normal prompt... And I know the abbreviation thing can be done with VOC
entries, and I've already got a few set up, but I'm looking for a more
generalised solution.

Thanks,

Edward


-
--
Please remember to recycle wherever possible. 
Reduce, reuse, recycle, think do you need to print this e-mail?

-
--
This e-mail and any attachment(s), is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
addressee, dissemination, copying or use of this e-mail or any of its
content
is prohibited and may be unlawful. If you are not the intended recipient
please inform the sender immediately and destroy the e-mail, any
attachment(s)
and any copies. All liability for viruses is excluded to the fullest extent
permitted by law. It is your responsibility to scan or otherwise check this
email and any attachment(s). Unless otherwise stated (i) views expressed in
this message are those of the individual sender (ii) no contract may be
construed by this e-mail. Emails may be monitored and you are taken to
consent
to this monitoring.

Civica Services Limited, Company No. 02374268; Civica UK Limited, Company
No.
01628868
Both companies are registered in England and Wales and each has its
registered
office at 2 Burston Road, Putney, London, SW15 6AR.

-
--
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Unidata - handler for mistyped commands?

2008-07-01 Thread Edward Brown
Yes, I've already got some VOC entries that are shortcuts to longer
named jobs, and we do have a few VOC entries to catch common typos, what
I'm wondering is if there is a more generalised way of intercepting
unrecognised commands, ideally a way of calling a specific 'handler'
program that can see what was typed in and make a decision internally on
the best way to handle it.

Edward

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kathleene M
Hunter
Sent: 01 July 2008 07:05
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Unidata - handler for mistyped commands?

Create a VOC enter that is the typo that executes the correct process.

Example
ED VOC EDIT.PROG
01: S
02: ED BP 

ED VOC EDIT.PROG
01:PA
02:ED BP

ED VOC EDIT.PROG 
01: PQ
02: HED BP
03: P
(note that line 1 may need to be PQN)


If you want to have it global catalog a program under a different man
then 

CATALOG programfile newname programname options



-Original Message-
From: Edward Brown [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 27, 2008 10:37 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Unidata - handler for mistyped commands?

Hello,

Within Unidata, is there any way to intercept commands typed at the
command prompt if they aren't recognised?

It's to 'magically' allow slightly mistyped program names to launch that
program - some of our routine names are quite long - and also to
recognise abbreviated routine names in the nature of Quicksilver for the
Mac, if anyone's familiar with that.

Now, obviously I could do all this by running an extra shell over the
normal command prompt but it would be nicer to have it work at the
normal prompt... And I know the abbreviation thing can be done with VOC
entries, and I've already got a few set up, but I'm looking for a more
generalised solution.

Thanks,

Edward



-
--
Please remember to recycle wherever possible. 
Reduce, reuse, recycle, think do you need to print this e-mail?


-
--
This e-mail and any attachment(s), is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
addressee, dissemination, copying or use of this e-mail or any of its
content
is prohibited and may be unlawful. If you are not the intended recipient
please inform the sender immediately and destroy the e-mail, any
attachment(s)
and any copies. All liability for viruses is excluded to the fullest
extent
permitted by law. It is your responsibility to scan or otherwise check
this
email and any attachment(s). Unless otherwise stated (i) views expressed
in
this message are those of the individual sender (ii) no contract may be
construed by this e-mail. Emails may be monitored and you are taken to
consent
to this monitoring.

Civica Services Limited, Company No. 02374268; Civica UK Limited,
Company
No.
01628868
Both companies are registered in England and Wales and each has its
registered
office at 2 Burston Road, Putney, London, SW15 6AR.


-
--
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Unidata - handler for mistyped commands?

2008-07-01 Thread Jim Anderegg
Not exactly on topic:

Back in the day (that would be the early 90's) I used to work in a SCO unix 
environment - the command interpreter had a built in spell checker that would 
offer a suggestion for the command you might have meant whenever you had a 
typo.  Pretty nifty.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edward Brown
Sent: Tuesday, July 01, 2008 5:09 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Unidata - handler for mistyped commands?

Yes, I've already got some VOC entries that are shortcuts to longer
named jobs, and we do have a few VOC entries to catch common typos, what
I'm wondering is if there is a more generalised way of intercepting
unrecognised commands, ideally a way of calling a specific 'handler'
program that can see what was typed in and make a decision internally on
the best way to handle it.

Edward

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kathleene M
Hunter
Sent: 01 July 2008 07:05
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Unidata - handler for mistyped commands?

Create a VOC enter that is the typo that executes the correct process.

Example
ED VOC EDIT.PROG
01: S
02: ED BP

ED VOC EDIT.PROG
01:PA
02:ED BP

ED VOC EDIT.PROG
01: PQ
02: HED BP
03: P
(note that line 1 may need to be PQN)


If you want to have it global catalog a program under a different man
then

CATALOG programfile newname programname options



-Original Message-
From: Edward Brown [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2008 10:37 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Unidata - handler for mistyped commands?

Hello,

Within Unidata, is there any way to intercept commands typed at the
command prompt if they aren't recognised?

It's to 'magically' allow slightly mistyped program names to launch that
program - some of our routine names are quite long - and also to
recognise abbreviated routine names in the nature of Quicksilver for the
Mac, if anyone's familiar with that.

Now, obviously I could do all this by running an extra shell over the
normal command prompt but it would be nicer to have it work at the
normal prompt... And I know the abbreviation thing can be done with VOC
entries, and I've already got a few set up, but I'm looking for a more
generalised solution.

Thanks,

Edward



-
--
Please remember to recycle wherever possible.
Reduce, reuse, recycle, think do you need to print this e-mail?


-
--
This e-mail and any attachment(s), is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
addressee, dissemination, copying or use of this e-mail or any of its
content
is prohibited and may be unlawful. If you are not the intended recipient
please inform the sender immediately and destroy the e-mail, any
attachment(s)
and any copies. All liability for viruses is excluded to the fullest
extent
permitted by law. It is your responsibility to scan or otherwise check
this
email and any attachment(s). Unless otherwise stated (i) views expressed
in
this message are those of the individual sender (ii) no contract may be
construed by this e-mail. Emails may be monitored and you are taken to
consent
to this monitoring.

Civica Services Limited, Company No. 02374268; Civica UK Limited,
Company
No.
01628868
Both companies are registered in England and Wales and each has its
registered
office at 2 Burston Road, Putney, London, SW15 6AR.


-
--
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/