I can't believe this. The results I'm getting are showing UniData only
allowing a shell for the environment variable and won't allow it to be
sourced.

I set up the SETPTR (in an Envision environment) and it looks like it shells
also and resets when the process finishes.

Next I'll try a VOC entry for SETPR and see if THAT will effect the current
shell.

I'll paste some code below, maybe someone will see something that might
help.
/datatel/bin/colmenu_2.printer.sh as you can see from the output just
creates a shortlist of printers and sets the $PRINTER.

---------------------------------------------------------

*** Initial script that calls the printer setting script
-----------------------------------------------------
#!/usr/bin/ksh
echo Set UI TRM
echo Entering UNIX command mode
case $* in
   PRINTER|printer) # Allows a user to set their printer
      . /datatel/bin/colmenu_2.printer.sh
      echo "Your default printer is $PRINTER"
      echo "Hit 'Enter' to continue"
      read a;;
   *) # Catches all else
      echo "xxx$*xxx"
      echo "Hit 'Enter' to continue"
      read a;;
esac
echo Set UI GUI



*** Run from a ksh shell
------------------------------------------------------
$ . /datatel/live/collive/XCMD.ksh PRINTER
Set UI TRM
Entering UNIX command mode
===========================================================================
                      P R I N T E R    M E N U
 ===========================================================================

1) idm1rec
2) intrec
3) lanrec
4) telrec
5) eslrec
6) iss1lsr
7) arnold
8) ce4lsr
9) Exit to previous menu
option > 1
Your default printer is idm1rec
Hit 'Enter' to continue

Set UI GUI
$


*** Run from colon prompt
------------------------------------------------------
:!. /datatel/live/collive/XCMD.ksh PRINTER
Set UI TRM
Entering UNIX command mode
xxxxxx
Hit 'Enter' to continue

Set UI GUI
:

---------------------------------------------------------


Ron Sharcott (3635)


-----Original Message-----
From: Allen E. Elwood [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 3:12 PM
To: U2Users
Subject: RE: [U2] Shell Escape


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