Re: [U2] Running a command in a different account

2012-08-01 Thread Tom Whitmore
-Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of bpa...@serta.com Sent: Tuesday, July 31, 2012 11:16 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Running a command in a different account It's unix, so al

Re: [U2] Running a command in a different account

2012-07-31 Thread Dan Goble
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of bpa...@serta.com Sent: Tuesday, July 31, 2012 11:16 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Running a command in a different account It's unix, so all the suggestions are well taken. Thanks, all!! -Original Message-

Re: [U2] Running a command in a different account

2012-07-31 Thread bpaige
27; Subject: Re: [U2] Running a command in a different account Are you on Unix or Windows? -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of bpa...@serta.com Sent: Friday, July 27, 2012 10:42 AM To: u2-users@listserver.u

Re: [U2] Running a command in a different account

2012-07-28 Thread Wols Lists
On 27/07/12 16:42, bpa...@serta.com wrote: > 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 > si

Re: [U2] Running a command in a different account

2012-07-27 Thread Baakkonen, Rodney A (Rod) 46K
Are you on Unix or Windows? -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of bpa...@serta.com Sent: Friday, July 27, 2012 10:42 AM To: u2-users@listserver.u2ug.org Subject: [U2] Running a command in a different accou

Re: [U2] Running a command in a different account

2012-07-27 Thread Wjhonson
itten -Original Message- From: Brian Leach To: 'U2 Users List' Sent: Fri, Jul 27, 2012 10:15 am Subject: Re: [U2] Running a command in a different account Nothing wrong with changing accounts so long as you can safely bypass login: Assign 1 To System(9006) Perform "CHDIR so

Re: [U2] Running a command in a different account

2012-07-27 Thread Brian Leach
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: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@lists

Re: [U2] Running a command in a different account

2012-07-27 Thread Perry Taylor
I do this all the time... READV ACCT.PATH FROM F.UV.ACCOUNT, ACCOUNT.NAME, 11 ELSE STOP 202, ACCOUNT.NAME CMD = "sh -c\cd '": ACCT.PATH: "' && ": SYSTEM(32): "/bin/uv ": PROGRAM.NAME: "\" EXECUTE CMD CAPTURING OUTPUT Perry -Original Message- From: u2-users-boun...@listserver.u2ug.org

Re: [U2] Running a command in a different account

2012-07-27 Thread David L. Wasylenko
OPEN "BAT.FL" TO BAT.FL * BAT="" BAT<-1>="C:" BAT<-1>="cd \...\...\path\to\remote\account" BAT<-1>="...uv\bin\uv TCL_CMD_TO_RUN" * BAT.KEY="REMOTE_"@USERNO:".BAT" WRITE BAT ON BAT.FL, BAT.KEY TCL="DOS /c ":DQUOTE("...\PATH\TO\BAT\FILE\":BAT.KEY) EXECUTE TCL CAPTURING OUTPUT Where: "BAT.FL" c