mraguthu
11th February 2005, 05:07
Hi Group,
My SOX team is pushing me to restrict the second login in our Baan. There is lot of information available for Unix users in this Board, but not for AS/400 users. As a first attempt I tried the script, it didnt work. After that I tried line by line as experiment in my Q shell (qsh), up to line 4 did work well. Line 5 is not working. Is it I am doing any thing wrong? Or is there any another way I can restrict the 2nd Bshell? Please let me know
********************************************************
1) licmon6.2 -w|cut -c24-35|cut -f1 -d. >/tmp/$USER.lis
2) y=0
3) user_name="$USER"
4) echo $USER_PID >> /tmp/us.lis
5) y=`grep -w $user_name /tmp/$USER.lis |wc -l`
6) if [ $y -eq 0 ]
7) then
8) exec ${BSE}/bin/bshell6.2 $*
9) else
10) exec ${BSE}/bin/bshell6.1 $* tdsqllogin
11) fi
*********************************************************
Thanks,
Mur Raguthu
My SOX team is pushing me to restrict the second login in our Baan. There is lot of information available for Unix users in this Board, but not for AS/400 users. As a first attempt I tried the script, it didnt work. After that I tried line by line as experiment in my Q shell (qsh), up to line 4 did work well. Line 5 is not working. Is it I am doing any thing wrong? Or is there any another way I can restrict the 2nd Bshell? Please let me know
********************************************************
1) licmon6.2 -w|cut -c24-35|cut -f1 -d. >/tmp/$USER.lis
2) y=0
3) user_name="$USER"
4) echo $USER_PID >> /tmp/us.lis
5) y=`grep -w $user_name /tmp/$USER.lis |wc -l`
6) if [ $y -eq 0 ]
7) then
8) exec ${BSE}/bin/bshell6.2 $*
9) else
10) exec ${BSE}/bin/bshell6.1 $* tdsqllogin
11) fi
*********************************************************
Thanks,
Mur Raguthu