Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > Performance & Tuning

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 31st August 2006, 11:49
alejandro's Avatar
alejandro alejandro is offline
Senior Member
 
Join Date: Feb 2002
Location: Madrid - Spain
Posts: 144
alejandro is on a distinguished road
Baan: IV c4 - DB: Oracle 8 - OS: Unix
Pid first free number
Baan: Baan IVc4
DB: Oracle 9.0.1.x
OS: Solaris 9 (SunOS 5.9)
C/S: Server

Using ttstpshell you can list processes with ps comand.
If you open a session this new process appear with it`s pid.

The question is:

Can I know which is my first free pid number?
Alternative which is the higher pid number used?

Any predefined varaible?



NOTE: I do not want to use bshcmd6.x for this purpose.

Thank's in advance.
Reply With Quote
  #2  
Old 31st August 2006, 12:07
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
I assume you want to use this in a program script. The predefined variable 'pid' contains the pid of the current process. If you will check the pid right in the before.program (for instance) of your script, you can be pretty sure that pid + 1 gives you the 'first free pid'...

May I ask what the purpose of your requirement is? I assume it has to do with starting a new subprocess...? There may be different (neater) ways to accomplish your requirements... So please specify...
Reply With Quote
  #3  
Old 31st August 2006, 12:39
alejandro's Avatar
alejandro alejandro is offline
Senior Member
 
Join Date: Feb 2002
Location: Madrid - Spain
Posts: 144
alejandro is on a distinguished road
Baan: IV c4 - DB: Oracle 8 - OS: Unix
What I want to know is if the user has started new sessions in a defined interval. This sessions can be closed at the time I want to know the first free pid.

The purpose is to check user activity.
It will be a background session running at certain intervals and check if the users has started new sessions. This sessions could be closed in this cut or opened; I only want to Know if pids are getting higher.

I have tried this:

Global variable with value max.pid starting with this process pid.

Each 15 seconds, use get.var(max.pid + counter,"prog.name$",str.prog.name)
and counter descending till get.var returns 1.

It is not a start of the art method, but I do not find any better.

Tahnak's
Reply With Quote
  #4  
Old 31st August 2006, 13:35
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,490
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
Hi,

You can use the pstat() function. It will show you all the current running processes with their PIDs, names and more...

I hope it helps,

- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote
  #5  
Old 31st August 2006, 14:06
alejandro's Avatar
alejandro alejandro is offline
Senior Member
 
Join Date: Feb 2002
Location: Madrid - Spain
Posts: 144
alejandro is on a distinguished road
Baan: IV c4 - DB: Oracle 8 - OS: Unix
THAT IS.

Sorry for my ignorance.
This function it is not in standard BaaN programers manual.

But yes it is in BaaNBoard.
Let us look more BaaNBoard.

Tahnk you.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding Next Available First Free Number kclewley Archiving & Multisite 4 27th May 2005 14:48
adjust first free number (tcmcs047) kogelman Tools Development 0 20th April 2005 15:41
Changing of first free number zaidlaz Distribution, Transportation & Warehousing 1 22nd February 2003 03:46
How do you get the next free number ltannous Tools Administration & Installation 1 25th January 2003 00:20


All times are GMT +2. The time now is 20:40.


©2001-2017 - Baanboard.com - Baanforums.com