-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
[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-
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
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
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
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
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
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
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