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/

Reply via email to