Re: [U2] Start Phantom in Another Account?

2009-09-22 Thread Baakkonen, Rodney A (Rod) 46K
 If you are on UNIX, you could use a UNIX shell script to 'cd' to the
account before doing the 'udt PHANTOM'

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: Tuesday, September 22, 2009 10:08 AM
To: U2 Users List
Subject: [U2] Start Phantom in Another Account?

Unidata 7.1.22.  Is it possible to start a phantom job in another
account?
If so, how does one make this happen?

-Kevin
http://www.PrecisOnline.com
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users





___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Start Phantom in Another Account?

2009-09-22 Thread Colin Alfke
That's all we do on Windows as well (from a BAT file).

Hth
Colin Alfke
Calgary, Canada

-Original Message-
From: Baakkonen, Rodney A (Rod)

 If you are on UNIX, you could use a UNIX shell script to 'cd' to the
account before doing the 'udt PHANTOM'

-Original Message-
From: Kevin King

Unidata 7.1.22.  Is it possible to start a phantom job in another
account?
If so, how does one make this happen?

-Kevin


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Start Phantom in Another Account?

2009-09-22 Thread Kevin King
When I tested this, it ran in the foreground.  How do we make it run in the
background?  On Unix we can use nohup and  , but... how on Windows?
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Start Phantom in Another Account?

2009-09-22 Thread Mathew Varghese
Kevin:

We have the following batch file setup as a scheduled task:

ACCOUNT TO RUN IN- cd D:\USR\IBM\UV\REGISTRATION\
BASIC PROGRAM TO RUN - D:\USR\IBM\UV\bin\uvsh PHANTOM PHANTOM.PROCESS

HTH...
matt

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: Tuesday, September 22, 2009 12:09 PM
To: U2 Users List
Subject: Re: [U2] Start Phantom in Another Account?

When I tested this, it ran in the foreground.  How do we make it run in the
background?  On Unix we can use nohup and  , but... how on Windows?
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Start Phantom in Another Account?

2009-09-22 Thread Kevin King
I actually need a Unidata solution and my attempts to kick something off
with udt PHANTOM *something* are running in the foreground.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Start Phantom in Another Account?

2009-09-22 Thread Bill Haskett



Kevin:

The following are two Windows scripts that start a UniData phantom 
service when Windows starts up.


UD_Startup.vbs
'
' Runs the UniData startup script so the DOS window doesn't appear
' and nothing appears on the taskbar.
'
' This script should be setup to run once (upon startup) using the
' user credentials that has administrator privileges.
'
' Initialization
Dim SleepTime
'
' Pause for 30 seconds to allow UniData to start up.
SleepTime=1000*30
WScript.Sleep SleepTime
'
' Start batch file that runs at UniData startup
Set WshShell = WScript.CreateObject(WScript.Shell)
WshShell.run %comspec% /c E:\Backups\Scripts\UD_Startup.bat,0
Set WshShell = Nothing


UD_Startup.bat
@rem 
**

@rem ** Start the UDT process and the DataTrust phantom
@rem 
**


cd /d E:\DataTrust\Dta
E:\IBM\ud72\bin\udt PHANTOM RUN DTABP DTA.SERVICE

@rem 
**

@rem ** End script
@rem 
**


exit

HTH,

Bill


Kevin King said the following on 9/22/2009 8:08 AM:

Unidata 7.1.22.  Is it possible to start a phantom job in another account?
If so, how does one make this happen?

-Kevin
http://www.PrecisOnline.com
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
  

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Start Phantom in Another Account?

2009-09-22 Thread Colin Alfke
We simply start a job using the AT command scheduler (since you can access
it from the command prompt):
!at 20:00 cmd /c d:\unidata\progs\overnight.bat

Where overnight.bat looks like:
Top of OVERNIGHT.BAT
001: D:   
002: CD \UNIDATA\DLV  
003: UDT PHANTOM

This may put a command window on the console but it runs as a phantom in
UniData and creates _PH_ output (not tested on 7.1.22).

Our LOGIN program (run from the LOGIN VOC) checks for @USER.TYPE = 1
(phantom) and @COMMAND (what is in the  in the bat file) and responds
accordingly.

Hth
Colin Alfke
Calgary, Canada


-Original Message-
From: Kevin King

I actually need a Unidata solution and my attempts to kick something off
with udt PHANTOM *something* are running in the foreground.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Start Phantom in Another Account?

2009-09-22 Thread Kevin King
My apologies for the confusion on the Windows issue.  The issue I am facing
is actually on AIX but I am trying to figure out the differences between
Windows and AIX to try to come up with a more generic (i.e. not hardcoded to
the OS) solution.  This has all been good information; appreciate it
everyone!
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Start Phantom in Another Account?

2009-09-22 Thread BNeylon
This seems clunky to me, but it seems to work.  It should work in any UD, 
windows or *nix, it is a UD level solution.   If I execute the paragraph 
while in account1;
PA
LOGTO account2
PHANTOM COUNT VOC
LOGTO account1

I end up back in account1 and the process executed in account2.

Bruce M Neylon
Health Care Management Group 




Kevin King precisonl...@gmail.com 
Sent by: u2-users-boun...@listserver.u2ug.org
09/22/2009 12:49 PM
Please respond to
U2 Users List u2-users@listserver.u2ug.org


To
U2 Users List u2-users@listserver.u2ug.org
cc

Subject
Re: [U2] Start Phantom in Another Account?






My apologies for the confusion on the Windows issue.  The issue I am 
facing
is actually on AIX but I am trying to figure out the differences between
Windows and AIX to try to come up with a more generic (i.e. not hardcoded 
to
the OS) solution.  This has all been good information; appreciate it
everyone!
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Start Phantom in Another Account?

2009-09-22 Thread Anthony W. Youngman
In message 
8c1cabce0909220808y7f888d42t245da8abd2e9e...@mail.gmail.com, Kevin 
King precisonl...@gmail.com writes

Unidata 7.1.22.  Is it possible to start a phantom job in another account?
If so, how does one make this happen?


This is a UV technique, but it's all TCL ...

ED VOC TEMP
I
0001: PA
0002: LOGTO OTHER.ACCOUNT
0003: PH NEW.PHANTOM

FI

: TEMP

I know it's a bit of indirection, but if you can create and execute an 
entry in the local account, you can create a throw-away intermediary 
that does a logto and fires off the phantom you want. I've done on 
several occasions in UV, and I'd be surprised if it didn't work the same 
way in UD.


Cheers,
Wol
--
Anthony W. Youngman pi...@thewolery.demon.co.uk
'Yings, yow graley yin! Suz ae rikt dheu,' said the blue man, taking the
thimble. 'What *is* he?' said Magrat. 'They're gnomes,' said Nanny. The man
lowered the thimble. 'Pictsies!' Carpe Jugulum, Terry Pratchett 1998
Visit the MaVerick web-site - http://www.maverick-dbms.org Open Source Pick
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Start Phantom in Another Account?

2009-09-22 Thread BraDav
I  know someone who is working on a solution to that problem in Java and C#, 
and it may ready in a few months... interesting...




- Original Message - 
From: Kevin King precisonl...@gmail.com

To: U2 Users List u2-users@listserver.u2ug.org
Sent: Tuesday, September 22, 2009 12:49 PM
Subject: Re: [U2] Start Phantom in Another Account?


My apologies for the confusion on the Windows issue.  The issue I am 
facing

is actually on AIX but I am trying to figure out the differences between
Windows and AIX to try to come up with a more generic (i.e. not hardcoded 
to

the OS) solution.  This has all been good information; appreciate it
everyone!
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users 


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users