beluver_2k
31st January 2008, 06:03
Command bshcmd6.1 does not give any PID list output. Any suggestion?
Thank you.
dave_23
31st January 2008, 07:34
it only works on a bshell "tick" so if nobody does anything in the bshell then bshcmd won't have any output.
Dave
beluver_2k
31st January 2008, 08:01
We have live 300 users most of the time of office hours still none of the bshcmd6.1 for any bshell id shows any output which i think is not the case.
Any suggestions?
günther
31st January 2008, 09:04
I just checked it on my system and maybe I can put some light into it. First, I figured out my bshells pid (ps -ef | grep bshell). Then I used bshcmd6.1 -p -s -w <pid> (as described by bshellcmd6.1 -U). Then I checked the latest files in $BSE/tmp but saw nothing new; normally there should be a file $BSE/tmp/bshell.<pid>. After I gave the bshell the focus (just by clicking once on the bw client), the file was generated. Its content looks like:
Command 1 (arg '') issued by user <....>
PID PPID PGRP SESSION TICKS FLAGS S CMP MEM
1 0 1 ottstpstdlib 69462 00020000 S 000 303216
object: ottstpstdlib
oic:
ottstpstdlib
2 0 2 ottstppollmes 171 00000060 B 108 219144
object: ottstppollmess
oic:
ottstppollmess
ottstp_stddll
3 0 3 ottdskmbrowse 9161 00000060 B 108 269272
object: ottdskmbrowser
oic:
ottdskmbrowser
ottstp_stddll
4 0 4 ottdskbrowser 30883 00000030 R 000 416400
object: ottdskbrowser
oic:
ottdskbrowser
ottstp_stddll
ottadvexecperm
And there is another thing: When the user has set e.g. "-- -keeplog -logfile /tmp/myfile", you won't see anything in $BSE/tmp.
Günther
george7a
31st January 2008, 09:28
Hi,
It depends on which user is exciting the command and on what user your executing it. If you have the right permissions it should work.
Check this link where I was testing it:
http://www.baanboard.com/baanboard/showpost.php?p=106192&postcount=3
What is the command you were trying?
- George
beluver_2k
31st January 2008, 10:23
Dear Gunther,
when I tried to login using BW client a new file got created with userid.bshellid but that file remains empty all the time regradless of the sessions getting executed or not.
Any advice?
Thank you.
beluver_2k
31st January 2008, 10:25
Dear George,
I have tried with the said example using user root as well but of no avail still the command gives no result.
Any suggestion?
Thank you.
george7a
31st January 2008, 10:27
Dear George,
I have tried with the said example using user root as well but of no avail still the command gives no result.
Any suggestion?
Thank you.
What is the command you are trying?
beluver_2k
31st January 2008, 10:35
I am using follwoing command
bshcmd6.1 -p -s -u 5 -w 5 <Bshellid>
I have tried with ./bshcmd6.1 -p -s -u 5 -w 5 <Bshellid> but the result is same. I have tried with normal user and root as well but the result is same.
george7a
31st January 2008, 10:58
Try again the following with root user. Make sure that the Bshell ID is still active and not ended:
./bshcmd6.1 -p -s -u 10 -w 10 <Bshell ID>
beluver_2k
31st January 2008, 11:07
Yes it has worked. what seems to be problem? If you could explain to me.
Thank you.
george7a
31st January 2008, 11:48
You are welocme ;)
You should make sure that:
1) Your are executing the command with root.
2) The Bshell ID is still active.
3) Find the right (enough time) for waiting. In the last example we increased the waiting seconds from 5 to 10.
- George
Hitesh Shah
1st February 2008, 18:23
Sometimes , when user is executing heavy cpu intensive processes , bshcmd6.1 does not work for that bshell pid .
This is mainly because busy bshell pid is unable to communicate its sub-process due to existing heavy work load .
KimSharp
11th August 2009, 18:34
We have a Windows server, Baan IVc4. The command bshcmd -p -s -u 10 -w 1996 does nothing as well as bshcmd -p 1996. My bshell is only running tiitm0101m000 so it's not doing too much to respond to bshcmd. I have an open support case but they don't seem to be able to find anything wrong. They sent me a new bshcmd because there were issues with my porting set but it still doesn't work. I remember there were some registry settings or environment settings at one time that caused bshcmd not to work but I don't believe I have them set. (heap size and sort.exe errors is what I remember) Also, I saw reference that you need to log in as user root. In Windows, is logging in as the baan user account equivalent?
norwim
12th August 2009, 14:43
Hi there,
I'm not really experienced with Baan under M$, but the environment variable $BSE_TMP is very important for bshcmd, as it uses the temp-dir to create the report. $BSE should be set also, path has most probably been set correct, otherwise the command wouldn't have been found/executed.
hth
Norbert
KimSharp
13th August 2009, 01:13
BSE_TMP and BSE are already set in the environment variables. I also run fillenv and set user = baan. I get the same result. Nothing.
I found the reference to the command that fixed the sort.exe errors but disables bshcmd. You set it in your all file in lib. It's no_ipc_msg_window:1, however, I do not have that command in my all file.
Hitesh Shah
13th August 2009, 07:25
bshcmd -p <bshell.pid> works at our end . I ran this in rdp console mode . IF u are running the same in normal rdp mode , probably it may not be working .
KimSharp
17th August 2009, 17:00
let alone remote desktop. It's true, I do get an error though if I run it in straight remote desktop without console but even when I run it directly on the server, I get nothing. I don't get an error but it doesn't do anything.
norwim
17th August 2009, 22:33
Are you sure it doesn't do anything at all? Did you check the BSE_TMP directory for new files after issuing the command?
As I posted before, I have seen this behaviour (bshcmd "not doing anything") when $BSE_TMP hasn't been set properly.
regards
Norbert
KimSharp
18th August 2009, 19:13
I have an entry for BSE D:\Baan and one for BSE_TMP D:\Baan\tmp, both of which are correct in environment variables. I checked the tmp folder for something right after running bshcmd on a PID but there was nothing. What I mean by doing nothing is, after I hit enter, it goes back to the command prompt with nothing else apparently done.
Hitesh Shah
19th August 2009, 06:31
Basically bshcmd -p queries a process and nothing more . So it should have process query rights which administrators by default have . Does baan user at ur end belong to administrators group . Have u run the same as administrator .
KimSharp
19th August 2009, 19:27
Yes Baan is an administrator and I also tried to do it with my user which is also an administrator but I got the same result.