473,385 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

5 login users

the code is implemented to allow only one login per user in application. The code is quite straight forward.
in that script handle take the user name and find the user(pid) and kill the process

but my question is here handle only one login per user but i want 5 login per user and if try to 6 login kill the process(user id). how to modify below code
please help i am in critical position




451 ps -u $LOGNAME | while read pid tty tim cmd
452 do
453 case $cmd in
454 *olapf | *olreview | *bundler | *slots | *tsnowGUI | *tfasServer)
455 echo `date +'%m/%d/%y %H:%M:%S'` $cmd $pid >>$TMP/tsnow/$LOGNAME/kill_log
456 kill -9 $pid 2>/dev/null
457 ;;
458 *)
459 ;;
460 esac
461 done
462
463
464 # last clean up - remove all the leftover *.u file in $E_ROOT
465
466 rm -f $E_ROOT/svc/*.u 2>/dev/null
467
468 #
469 # OK, start your engines!
470 #
471
472 # In order to make the system more robust, we are now making the
473 # the application process start the helper prcesses
474 # See Main.C for these, now.
475
476 # Make sure that the ISE machines can start their GUIs
477 chcise.ncs.att.com $ISE_HOST >/dev/null 2>&1
478
479 # Now ready to start the GUI
480
481
484 if [ ${VIA_EFMS_IOL} -eq 1 ]
485 then
486 $TSNOWHOME/bin/tsnowGUI ${LIBE_ARGS} "$ORD" "$FAC" >/dev/null 2>&1 &
487 else
488 $TSNOWHOME/bin/tsnowGUI ${LIBE_ARGS} >/dev/null 2>&1 &
489 fi
490
May 29 '12 #1
0 1232

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Sophia | last post by:
I need to authenticate users to enter in a NTLM-protected virtual directory, but I can't pop up a NT-login dialogue box - I can only do a web-based username/password form (my client is a...
4
by: nicholas | last post by:
Hi, Got an asp.net application and I use the "forms" authentication mode defined in the web.config file. Everything works fine. But now I would like to add a second, different login page for...
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
10
by: et | last post by:
I have an asp.net program that uses a connection string, using integrated security to connect to a sql database. It runs fine on one server, but the other server gives me the error that "Login...
2
by: Assimalyst | last post by:
Hi, I am creating a website where i want to allow some webforms to be accessible to all users, and those in a subdirectory available only to authenticated users. I have created a script to...
1
by: alex | last post by:
Hi May i know how to do a check to find out how many users are online and logged on to our system? Btw, i am using vb.net. Perhaps show me some articles on this issue? regards Alex
9
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I am using the authentication and authorization mechanism, which its timeout is set to 60 minutes. My application consists of 2 frames - a...
3
by: Les Stockton | last post by:
I'm new to ASP.Net and want to take advantage of some of the new features of Framework 2.0. I've seen the Login controls and how it works with administration of security, using Windows...
6
by: kaybaj | last post by:
Please i need to have a form where i can have the names of users who log in and log off the application. it's important
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.