Retirement Notice
|
|
User login
|
|
Frontpage Sponsor
|
|
Poll
|
What do you expect from your SI Implementation partner for the success of ERP implementation. Bring best practices - Not to offer more CR's Leveraging standard functions 20% Need more honesty to work with the Users until their processes are fully mapped & Users are trained 40% Focus on process automation/ integrations/ Real time data/ BI analytics 13% Stick to basics 27% Total votes: 15 |
|
|
 |

13th February 2003, 21:24
|
 |
Senior Member
|
|
Join Date: Mar 2002
Location: ~
Posts: 232
|
|
Baan: BaaN IV -
DB: Oracle 8 -
OS: UNIX
|
Running session in background..
Hi,
Does any one know, how to run a session in background?
What I want to actually do is, I have a 3 GL script and I want to run this script 24/7. I have an infinate loop in this script so it runs all the time. I dont want to start this session from my desktop because once I close my login the session also ends. I know submitting this in a job will probably work but, I want to know if you guys know any other way.
Thanks,
Appreciate your help,
NS
|

13th February 2003, 22:02
|
 |
Guru
|
|
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,149
|
|
Baan: Baan 4-5,5.2(Reger),LN-6.1,Infor LN-10.x -
DB: Oracle,MS-SQL -
OS: HPUX, Linux, Windows
|
|

13th February 2003, 22:43
|
 |
Member
|
|
Join Date: Jan 2002
Location: Ohio, USA
Posts: 91
|
|
Baan: 4c2 -
DB: Oracle -
OS: Unix
|
Are you on a Unix box? because you can start a session from
unix running the process in background by using the ba6.1 command.
|

14th February 2003, 00:07
|
 |
Senior Member
|
|
Join Date: Mar 2002
Location: ~
Posts: 232
|
|
Baan: BaaN IV -
DB: Oracle 8 -
OS: UNIX
|
Yes..
Yes, i am on unix box. do you know what's the command to run the process in background using ba6.1?
|

14th February 2003, 00:10
|
 |
Guru
|
|
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,149
|
|
Baan: Baan 4-5,5.2(Reger),LN-6.1,Infor LN-10.x -
DB: Oracle,MS-SQL -
OS: HPUX, Linux, Windows
|
You can use the $BSE/bin/bshell[version-code]
Quote:
>bshell6.2 -?
Usage: bshell6.2 [options] [program...]
options:
-vV : show program version
-r : show resources
-deftext : show bshell texts
-ba : connect with ba display server
-bx : connect with bx display server
-mdebug : display bshell messages sent to display server
-dbgams : debug ams
-dbgdata : show datainput options (not for fields!)
-dbgobj : show object information
-dbgref : show reference paths
-dbgfun : debug functions
-dbgsrv : show bdb server type
-dbglck : show locking errors
-dbgmulact : show process actions (activate,sleep,kill etc.)
-dbgrefer : show references
-dbgbdbact : show bdb actions
-dbgfdev : debug file access
-dbgfile : show successfully opened sequential files
-dbgjvmi : show JavaVM integration actions
-dbgres : show loaded resources
-dbgenums : show loading of enums
-dbginstr : show bshell cpu instructions
-dbgcpu : use debug version of the cpu
-dbgsrdduse : show srdd usage
-dbggpvar : debug get & putvar
-dbgsched : debug scheduler
-dbgpty : debug pty's
-dbgmem : show all memory statistics (see below)
-dbgmemtot : show total memory usage
-dbgmemblk : show memory usage per block
-dbgmemfree : show free memory list
-dbgmemused : show used memory list
-dbgxml : assert correctness of strings written to xml tree
-set var=val : set environment variable 'var' to 'val'
-logfile <file> : log stdout/stderr output in <file>
-keeplog : don't remove the logfile after ending the bshell
-appendlog : append to logfile (only useful with -logfile option)
-nolog : stdout and stderr will go to the controlling terminal
(if possible - on remote connection no output will appear)
-delay <sec> : delay for <sec> seconds before continuing
(useful for attaching with a debugger: set breakpoint
at the function 'delay_ready')
-logtag <tag> : used together with -logfile. The <tag> is used in the
logfile and is especially useful when logging from
multiple bshells
-dsunicode : communicate with the display driver using Unicode strings
-windownames : pass unique window names to user interface for testtools
-dbgmesg : stop in the debugger when a warning message is sent to the
display server.
-nodebug : disable debugger.
-nounicode : don't read unicode files $BSE/lib/unicode/*.(N2U|U2N).
-server : run as a server without UI
|
|

14th February 2003, 03:33
|
 |
Guru
|
|
Join Date: Jun 2002
Location: Sydney Australia
Posts: 356
|
|
Baan: baan4c4 -
DB: oracle 805 -
OS: AIX 4.3.3
|
Infinite loop - continuous run
I also, am interested in having a program running continually.
At present we start the program every 5 minutes using cron. This works very weel but we would rather have the job running continually and springing into action whenever new records (oracle db) are available for it to process.
What mechanism do you use to idle the program ? Do you continually try to read new records or do you make the program sleep for a short period and the retry reading records.
I have been wooried about the load on the system that an infinite loop could impose.
I will be very interested in you approach.
Regards
Terry
|

14th February 2003, 16:12
|
 |
Senior Member
|
|
Join Date: Mar 2002
Location: ~
Posts: 232
|
|
Baan: BaaN IV -
DB: Oracle 8 -
OS: UNIX
|
Terry,
Heres what I did.
The requirement was to run session calculate cost price by project automatically any time changes are made to Custom BOM as we need the correct cost get posted to the project. Right now this is a manual process i.e., users are expected to run calculate cost price by project any time they change the CBOM. But in most of the cases they are not doing this and we getting wrong cost getting posted to the project.
So, initial thought was to run this session from Maintain CBOM session when some one makes modifications to it. But the problem with this is that the session calculated cost price takes at least 15 to 20 minutes depending on the size of the project to complete and users will be stuck in this Maintain CBOM session for that time.
To work around this, I created a table where I stores the project numbers from Maintain CBOM session any time changes are made to it. Then I wrote a 3 GL script which runs the calculated cost price through AFS in a infinite while loop reading this table. Since I can not add this 3 GL to a job, I created a shell script with this command bshell6.1 -server -set BSE_COMPNR=100 -set PACKAGE_COMB=B40Ocpro otipcsn900 (thanks to NPRao) that runs this 3 GL in background and ran this script using at Unix command.
Right now I am testing this process and so far it seems like is working fine.
Thanks,
NS
|

14th February 2003, 20:52
|
 |
Senior Member
|
|
Join Date: Mar 2002
Location: ~
Posts: 232
|
|
Baan: BaaN IV -
DB: Oracle 8 -
OS: UNIX
|
Help!!!
With the command bshell6.1 is there any other way to start a session in back ground with out using server option? the problem is, we have two servers one for development and another one for production. Both the servers are on two different porting sets. The bshell6.1 command has the option server in our development server but unfortunately it does not have it on our production server. So, when I moved all the work to the production server, it failed.
Any suggestions?
Thanks,
NS
|

15th February 2003, 02:24
|
 |
Guru
|
|
Join Date: Jun 2002
Location: Sydney Australia
Posts: 356
|
|
Baan: baan4c4 -
DB: oracle 805 -
OS: AIX 4.3.3
|
Starting session
hi r_nagu
We use ba6.1 to start session from cron every 5 minutes, rather than directly execute 3gl object:
eg: ${BSE}/bin/ba6.1 -- tisfc9210m000 >>$LF
Terry
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|