Wally:

Thanks. Using LISTUSER() I can figure out what processes are phantoms but not what they're running. Thus, I have no way to figure out of my BACKGROUND.SERVICE program is running (it sleeps and wakes up every minute). When I do a PORT.STATUS PID {pid# of phantom} CALL.STACK nothing is returned (and it takes about 15 seconds on a fast, development system).

2 Dev (0)-> LU

Licensed(UDT+CP)/Effective Udt Sql iPhtm Pooled Total

   (  24 + 1   ) / 25          3       0       0       0               3

UDTNO USRNBR  UID USRNAME   USRTYPE  TTY    IP-ADDRESS    TIME     DATE
1 2192 197614 AsiAdmin phantom pts/1 Console 05:51:51 Apr 02 2010 2 3248 197615 wphaskett udt pts/2 192.168.1.51 05:54:32 Apr 02 2010

2 Dev (0)-> PORT.STATUS PID 2192 CALL.STACK

Licensed(UDT+CP)/Effective Udt Sql iPhtm Pooled Total

   (24 + 1) / 25               3       0       0       0               3

Udtno Pid       User       UserType     Port     Last command processed
1     2192      AsiAdmin   phantom      28101260

2 Dev (0)->

Am I missing something?

Thanks again.

Bill

------------------------------------------------------------------------
Wally Terhune said the following on 4/2/2010 8:40 AM:
Question wasn't clear to me.
If looking at active processes, listuser shows which are phantoms (USRTYPE 
column)
Also - UniBasic LISTUSER() function returns this as dynamic array for easy 
parsing

:listuser

Licensed(UDT+CP)/Effective      Udt     Sql     iPhtm   Pooled          Total

    (  32 + 32  ) / 64          1       0       0       0               1

UDTNO USRNBR  UID USRNAME   USRTYPE  TTY    IP-ADDRESS    TIME     DATE
  1   5936 305730 WTerhune  udt     pts/1   Console       09:34:36 Apr 02 2010
  2   4300 305730 WTerhune  phantom pts/2   Console       09:34:58 Apr 02 2010

Wally Terhune
U2 Support Architect
Rocket Software
4700 S. Syracuse Street, Suite 400 **Denver, CO 80237 **USA
Tel: +1.720.475.8055
Email: [email protected]
Web: www.rocketsoftware.com/u2


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Martin Phillips
Sent: Friday, April 02, 2010 9:35 AM
To: U2 Users List
Subject: Re: [U2] UD: Phantoms

Hi Bill,

In UniData, does anyone know of a sure way to determine if a BASIC program is running as a phantom?

Take a look at the @USER.TYPE variable. This contains 1 for a phantom.


Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200
_______________________________________________
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
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to