I just wanted to pass on an update and summary.

- ! Does indeed cause a shell so sourcing won't work.
- Datatel says that I should be able to use SETENV even on UDT 6.0.11
- The trouble is now getting it to work from a Envision screen. Datatel has
provided some suggestions so I will have to hack my way through Envision
which is not a strong desire.

My thanks to all who replied with suggestions.
Jerry banker, Allen Elwood, Stewart leicester, Rodney Baakkonen, Ken Wallis,
Symeon Breen. Hopefully I've not missed any.

Being new on this list it already has proved worth while.


Ron Sharcott (3635)
----------------------------------------------------------------------------
----
After all, what else is scientific enquiry of any sort other than a
controlled version of bashing one's head against the Universe until
something gives? - Tom Holt
----------------------------------------------------------------------------
----

-----Original Message-----
From: Symeon Breen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 30, 2006 12:54 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Shell Escape


I dont think source'ing it will work anyway as i presume unidata executes !
as a seperate shell anyway, so the source will only exist for the life of
the shell. In my experiments that has been the case anyway.

Also i have found sourcing to work fine from unidata either using !source
script params or !. script params

script lookslike

#!/bin/sh
#

cmd="$0 $*"
set -- `getopt 12345 $*`
if [ $? != 0 ]; then
        echo "invalid option"
        exit 2
fi

case $1 in
     -1)
         do="this is a test"
         ;;
     -2)
         do="number two"
         ;;
     *)
         do=$1
         ;;
esac
export AD=$do
echo $AD

Note I am setting an enveronment variable, but when i get back to udt it is
not set even if sourced so i imaging udt is doing a seprate shell anyway.  -
not much help i know ...


On 30/03/06, Allen E. Elwood <[EMAIL PROTECTED]> wrote:
>
> Well, you could set up a program called SWITCH.CAMPUS or WHEREAMI and 
> have them execute that, and have it ask for campus and department, and 
> then do a lookup to see what printer it should use and then execute 
> SETPTR.
>
> Attach that to their logon proc and you've got a fairly idiot proof 
> procedure.  (note, no procedure if fully idiot proof, as in PEBKAC)
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Ron S (sent by
> Nabble.com)
> Sent: Wednesday, March 29, 2006 13:23
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] Shell Escape
>
>
> We have multiple campuses and staff that will change campus mid week. 
> They need the functionality of changing printers.
> --
> View this message in context: 
> http://www.nabble.com/Shell-Escape-t1363450.html#a3658970
> Sent from the U2 - Users forum at Nabble.com.
> -------
> 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