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: [email protected]
> 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
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to