Nothing wrong with changing accounts so long as you can safely bypass login:

Assign 1 To System(9006)

Perform "CHDIR somepath"

Assign 0 To System(9006)
..

*(undocumented, universe only).

Brian

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of [email protected]
Sent: 27 July 2012 16:42
To: [email protected]
Subject: [U2] Running a command in a different account

Greetings!

 

We have a program that runs in one account, but under certain conditions it
is becoming necessary for that program to execute a command in another
account, and then continue on its merry way doing other things.  One fairly
simplistic example might be that the process might find it necessary to
create a file in another account.

 

We have come up with a number of different ways of accomplishing this, but
all involve a "phantom" LOGTO of some sort -whether it be through working
with the UV.ACCOUNT file, the LOGIN paragraph, or some combination of the
above.  While this will do what is necessary, there are timing issues to
consider, control and response issues, error checking, etc.  It can be done,
but it's not pretty.

 

Does anyone have a more elegant and efficient way of accomplishing this?

 

Thanks in advance!

 

Brian F. Paige



 


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material not intended for Public use.  
Any review, retransmission, dissemination or other use of, or taking of any
action in reliance upon, this information by persons or entities other than
the intended recipient is strictly prohibited. If you received this
communication in error, please notify the sender and delete the material
from any and all computers or devices.
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users


_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to