Why not just use the SETPTR command? We use a table of users that contains options each user is allowed, one is for their default printer. When someone logs in the login paragraph runs a program that sets up the user checking this file for the users default settings. We use the SETPTR command option AT to give them a default printer location. We also have a program that does the same thing, it is executed when for some reason a report has been printed to a different location (landscape printer, etc.) by the user.
.
----- Original Message ----- From: "Ron S (sent by Nabble.com)" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 29, 2006 11:02 AM
Subject: [U2] Shell Escape


QUESTION:
Is there a way to change a user's environment variable setting from within
UniData so that we could set the printer that the user wishes to use for
that session?

BACKGROUND:
We're using UniData 6.0.11 with Datatel's Colleague on UNIX, primary shell
is ksh. As the system starts we used to allow a menu prior to loading
Unidata that allowed users to change their $PRINTER.

ISSUE:
We'd like to do this from within UniData. It appears that the shell escape
(!) filters out the source (.) of a UNIX script.

This,
:!. /path/to/script PRINTER
Fails to send in the PRINTER as an argument but it is essentially what I'd
like to do. The PRINTER is just the string "PRINTER" that was/is expected to
allow the script to decide on the action in a case statement.

Thanks in advance.
--
View this message in context: http://www.nabble.com/Shell-Escape-t1363450.html#a3654192
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/

Reply via email to