julia0726
13th February 2002, 11:01
Hi all,

Has anybody can help me in redirecting my BSE_TMP directory. Because the directory where we set the BSE_TMP got full. So, i want to redirect the directory to another disk with bigger space.

I have tried the following but still the tmp* files still went to my current BSE_TMP dir (e.g. /baan/usr/bse/tmp).

1. set the BSE_TMP on users .profile
2. use set -- -set BSE_TMP=/data2/usr/tmp in BW command field

but seems not working.


Please help.

thanks,

julia

i96nds
13th February 2002, 14:28
Hi,

Please let us know if you have set the BSE_TMP somewhere else, like tabledef61, db_resource, etc .

Do this test, please:

Write this command at the user's BWC file.
-- -set BSE_TMP=/data2/usr/tmp

Log in Baan using this configuration file, Choose File / Run Program:

sh
Yes - External program

You will get the terminal emulator. Write there:

bshell6.1> echo $BSE
bshell6.1> echo $BSE_TMP


What do you get ?
If you get BSE_TMP=/data2/usr/tmp then it should work...

patvdv
13th February 2002, 21:01
Julia,

As Stefan already stated, you probably have $BSE_TMP set in many places and you would need to check all of those. And even then it might still not work unless you restart the application. But why not make things simpler and do some clean-up in your current $BSE_TMP directory? e.g. you could delete all tmp* files older than 7 days. I would also check for qp* files because they can be very large.

Markus Schmitz
14th February 2002, 10:19
Hi Julia,

in regards to BSE_TMP consider the following:


1) some old Baan sessions do not use the Variable BSE_TMP properly, but just write to $BSE/tmp.

2) There is also a variable called BSE_SORT. If not set, then Baan will create sort files in /var/tmp. Normally you should set this to BSE_TMP.

3) You might have set the variable BSE_TMP somewhere in $BSE/lib/defaults

4) To make sure, that you have to take care of variables for GUI and ASCII users the same only at one single place, we use the following "trick":

- do not set variables in bw command field
- do not set variables in$BSE/lib/defaults/*
- create a shell script, which sets ALL variables,
lets call it /etc/environment
- source this script in /etc/profile
. /etc/environment
Note the dot notation!
- create a script called my_bshell6.1, which also
sources the environment and then calls the bshell
Example:

#!/usr/bin/sh
. /etc/environment
exec $BSE/bin/bshell6.1 $*

- Change $BSE/lib/ipc_info to call my_bshell instead of
bshell6.1

In this way all users (ASCII and GUI alike) will first set all the same variables and then call the bshell. Actually with this configuration, you can remove in most cases the variables in the tabledef6.1 also!

3) Even if you change BSE_TMP successfully, I recommend to move your current tmp away and create a link from $BSE/tmp to your new location. In this way, even the most stubborn programm has to use the new location!

Regards

Markus

zyilmaz
22nd November 2004, 10:33
Hello to all !

I have the same problem with Julia0726. I very urgently have to redirect BSE_TMP directory to another disk. My OS is Windows NT / MS SQL 7.0 . ? Can you please explain what can I do for it?

Thanks in advance !

walter01
22nd November 2004, 10:56
Hi,

I set all Baan vars in the $BSE/lib/bse_vars file. Nowhere else.

/baan01/bse/lib >cat bse_vars
BSE_TMP=/bse_tmp
BSE_SORT=/bse_sort
PUBL_S=/public/samba
PUBL_BR=/public/baan/rapp

regards,

Walter

Nancy Mathew
22nd November 2004, 17:01
Since you are on HP Unix, you can make a symbolic link between /bse_tmp and /data2/usr/tmp. This will ensure all files written to /bse_tmp actually goes to /data2/usr/tmp.

Nancy