Programming :: Get Real Time Information About How Many User Are Logged In And Their Ips

Jan 20, 2009

I use tomcat as my server platform in Ubuntu for a war file. I know in order to get real time information about how many user are logged in, we can count how many active sessions exist by a SessionCounter code. However, I have to permit HttpSessionListener in web.xml of tomcat. From other users' experiences, the configuration is complexed and has some errors.

Here's the link:

[URL]

In order to get users'ip, in jsp, use request.getremotehost() or request.getremoteaddress() by editing the jsp file. I wonder if there's some open source software to use for these two purposes.

View 1 Replies


ADVERTISEMENT

Programming :: Bash Scripting - Display Real Name From Username Logged In + User Processes?

Jan 14, 2011

i am using putty to connect to the linux server and i am using nano as my text editor to write a bash script.

this is my script:

echo "Please enter your Username"
read userName
userName= grep $USER /etc/passwd | cut -d: -f5
echo "Welcome " $userName | cat >> output.txt

the problem i have is that when i enter my username, the output (my real name) does not display in the output.txt. instead it displays in putty. so when i run my script in putty it shows the message to enter username and after i enter my username my real name appears below it. i want it to show in the output.txt

View 1 Replies View Related

Server :: When Executed Last Command Its Showing System Ip Logged In Time And Logged Out Time The Output?

Feb 27, 2011

logging in a server through putty in the same network when i executed last command its showing system ip logged in time and logged out time the output as followsthis is my system
oot pts1 xx.xx.xx day month date time in time out timeand similarly am geeting other than this likeroot :0day month date time still logged in this is from more than 3 days its logged in

View 2 Replies View Related

Fedora :: Rakarrack Real Time Audio User Group?

Mar 23, 2011

I'm using a fedora install mainly for audio work and have everything working well out of the box. My setup is simple:

-Direct cable from Guitar 1/4" > Sound Card input>Rakarrack Guitar Effects>Ardour>System Out
(Occasionally I put a synth/plugin like Zynaddsubfx or jackrack before or after rakarrack depending on what sound I'm going for)

-Jack for all audio transport with synthesizers

I have real time support with Jack and all other programs except Rakarrack. When I launch Rakarrack in the terminal, I get this message:

Code:

rakarrack 0.6.1 - Copyright (c) Josep Andreu - Ryan Billing - Douglas McClendon - Arnout Engelen
Try 'rakarrack --help' for command-line options.
Cannot lock down memory area (Cannot allocate memory)
Cannot use real-time scheduling (RR/15)(1: Operation not permitted)
AcquireRealTime error

However, running rakarrack in root does not display this output, and I assume it has no problem getting real-time scheduling in that case. I did some google searches but the only similar issues that I find are that people can't get RT support in jack except in my instance, I do have RT scheduling with jack, but for some reason I can't get it in rakarrack unless I'm root.

[Edit] I actually have to run jackd and rakarrack in root to get rakarrack to use real time scheduling. But, it isn't necessary for any other jack compatible program that I know of. I'm actually not getting any real time scheduling with any jack application, even though Jack is reporting to be running in Real Time. However, running everything in root fixes the issue even though I would prefer to not have to run as root.

View 2 Replies View Related

CentOS 5 :: Real-time File Replication For User Accounts?

Nov 22, 2009

this idea to me right now seems stupid and impractical so I'm also looking for solutions outside of this one. I'm creating a set of highly available servers. They currently utilize pacemaker to manage a shared IP address, apache management, mysql management and also drbd handling. They currently replicate, properly failover and run fine. However, this is a shared web hosting setup and everytime a new user is added to the system a username and password is created and the httpd.conf file is updated for their site. I need a way to replicate those changes to the other server. For httpd.conf I'm pretty sure I can just stick it on the apache drbd resource and create a symbolic link. However, for the passwd and shadow files that is not a realistic solution.

View 1 Replies View Related

Software :: Real Time Programming ?

Mar 20, 2009

I want to start real time programming for linux(RTOS) so where I can get the basic of programming.I want to do it in C language..

View 2 Replies View Related

Programming :: Real-time Application ?

Sep 11, 2009

I seed a suggesting related asychron io. I'm write a program which use completion ports, but wandor how avoiding loops like for(; below...i.e I want parse proto with count in first and then computing some quantity of pieces. how that make with aio?

Code:

View 6 Replies View Related

Ubuntu Servers :: Setup Real-time (or Near Real-time) Folder Synchronization Among 2+ Servers

Mar 23, 2010

what the recommended way to set up real-time (or near real-time) folder synchronization among 2+ servers. I looked a rsync but that doesn't sound real-time and it looks like its something that you might put in a cron once an hour.

View 1 Replies View Related

Programming :: Link Code With The Real Time Library Using Qmake (.pro)?

Aug 23, 2010

I am trying to write suitable .pro file for my application. I need real-time library. Have you some ideas how to do that? I just need the line for linking with real-time library...

View 2 Replies View Related

Programming :: Real Time Application - Make Sound Equalization

Nov 28, 2009

An application that can make sound equalization but I couldn't find any powerful tool so I decided to do one my self I know it will be very hard task but their is no other solution my program will do some audio effects like (echo, repeat, trible, bass, filtering, fading,...)and (fft,addition,....), I will take the signal from the mic and put it on the speaker after my operation is done I think I must take into consideration that application is a real time but i don't know what to do! i don't know should I use java or C/C++! I don't know how to deal with the audio driver (take signal from mic and put it on the speaker)

View 10 Replies View Related

General :: Make NIS User Information Override Local User Information On Client Systems?

Jul 30, 2011

How would you make NIS user information override local user information on client systems? This is what I think is right? Add nis on the passwd registration file on the second line Is this correct?

View 1 Replies View Related

Programming :: Finding The Username Of A User Who Has Logged In (roaming Profile)

Mar 14, 2011

I want to be able to create a php webpage that will show the logged in users files and how full their home directory is (roaming profiles). The php side isn't a problem....the problem is how do i determine the username of the user who is logged into Linux not the webpage itself?

What i want is when the user opens this page, it knows who they are already. I have seen this done on an intranet at work (don't know what OS it is running on tho) where I login to the network, view the page and it says my name.

View 6 Replies View Related

Ubuntu :: Find Out When A User Last Logged In And Last Logged Out?

Jul 12, 2010

How can I (as admin) find out when a certain user e.g. "karl" most recently logged in and most recently logged out of a system?

View 2 Replies View Related

Programming :: Read Information About User Activity?

Jan 2, 2010

I wonder if there is any chance to read the last time when the actually logged user have changed the mouse cursor and stroke the key.

View 3 Replies View Related

CentOS 5 Server :: Time On Xen VM's Drifting Ahead Of Real Time?

Aug 4, 2009

I am hosting two Virtual Servers both running Centos 5.3 on a host machine also running the same OS. The VM software in use is Xen, as supplied with the OS.The host machine's time and date is fine, however both Virtual Servers are running ahead of real time consitantly.Running /etc/init.d/ntpd restart will resolve the issue however one of these is running MailScanner and when the time suddenly goes backwards, sometimes by as much as an hour, it stops working properly.

View 1 Replies View Related

Software :: Convert Unix Time To 'real' Time

Jan 28, 2010

I used the following command to get the unix time of root user creation:

Code:
awk -F":" '$1 == "root" {print $3}' /etc/shadow
How can i convert this into the date/time of creation?

I am writing a shell script, which determines the OS installation date among other stuff, and i am assuming the root user's account creation date should be a pretty accurate pointer. Are there reasons why i should not be assuming so?I would be open to other suggestion for getting this date/time, but it would nevertheless be interesting to convert the unix time to "real" time without doing complex manual(or otherwise) computation..

View 4 Replies View Related

Ubuntu :: How To Use Real-time Kernel

Sep 9, 2010

if I want to use an rt kernel in ubuntu studio, how do i use the kernel? say for instance, Ubuntu studio is installed with generic kernel.then i download the rt kernel.

View 3 Replies View Related

Ubuntu :: Get Real-time Antivirus?

Oct 12, 2010

I'm new in UBUNTU and would like to get a real-time antivirus.Maybe it's not necessary, but I still want it (I've got an iMAC and have installed an antivirus... ) So, please... which antivirus is good and in real-time (I mean that, if I try to open an infected file or go to a bad website, it stops it). Is KLAMav good and in Real time?

View 9 Replies View Related

Ubuntu :: No GUI Real Time Kernel?

Dec 29, 2010

Just installed a real time kernel on my new computer so I can record music. My problem is that I have no GUI. I noted that I would not when fglrx drivers could not be installed/applied to the new kernel when installing it.

View 7 Replies View Related

Installation :: XFS - How To Use Real-time Subvolume

Feb 24, 2010

I created filesystem XFS on partition hda8 with subvolume real-time on partition hda5: Code: mkfs.xfs -r rtdev=/dev/hda5 /dev/hda8 and i mounted it: Code: mount -t xfs -o rtdev=/dev/hda5 /dev/hda8 /xfs But I don't know how can I use this partition hda5 with subvolume real-time. I don't know how to create directories, copy files to it and another. Thanks for all answers!

EDIT:in manual it is writen: The realtime section is used to store the data of realtime files.These files had an attribute bit set through xfsctl(3) after file creation, before any data was written to the file.

View 2 Replies View Related

General :: Real Time Processes ?

Dec 7, 2009

I've got the following problem:

1. I start two bash windows

2. In one of them I start a script test1:

Code:

This script puts a natural number 5 times a second.

3. Then in the second bash window I type (as root):

Code:

The script test2 looks as follows:

Code:

While true; do
true;
done

During the following 15 seconds test2 is the process with the highest real-time priority. As far as I know the script doesn't perform any system calls so it shouldn't be suspended even for a minimal timeslice. My question is: why the process test1 manages to put a few numbers on the screen before test2 stops. I thought that test2 would exclusivly own the processor for 15 seconds.

View 8 Replies View Related

General :: Find Real Time Log Name?

Jan 17, 2011

I have to write one Shell script where i have to find one word in current generated log.Log name has specific format like 'NAME_DDMMYY_HHMMSS'.log.Each time i have to go and check the word in newly generated log.How can i pass the newly generated log name in my Script?

View 2 Replies View Related

Server :: Is It Possible To Sync In Real Time Over Ftp?

Feb 1, 2010

I am currently using curlftps to mount a directory on a ftp server locally as /backup , I then use rsync to do an incremental backup to this directory every night and a full backup at the weekend.A requirement has arose for a similar set up but one that syncs in real time, so if a user puts a file in a directory it immediately copies that file to my ftp server, in this case it immediately copies it to /backup

View 4 Replies View Related

Ubuntu :: Increasing The Time Of The Logged In Timeout?

Jan 4, 2011

I seem to be entering my password far to often. Every time I just turn my back I have been logged out!! It would be nice to increase this time out time by a couple of minutes.

View 2 Replies View Related

Ubuntu Multimedia :: Can't Set Real-time Priority

Dec 20, 2010

Running qjackctl as root allows me to run the audio in realtime so it seems to be a permissions problem and it seems to me that lubuntu does not read the /etc/security/limits.d/audio.conf file when I boot.

View 3 Replies View Related

Networking :: Real Time Traffic Counter

Jul 6, 2010

I have a linux router box with ubuntu which routes internet for several people. There is no extra traffic shaping, so everybody can get the whole bandwidth when its free. What I would like to have is a real time traffic counter per ip, just like a program called "iptraf" but on a per-ip basis. Iptraf can only count on a per-connection basis and thus cannot display a bandwidth that a certain ip has taken (because a single ip can start several onnections). So a console program with text interface like iptraf would be perfect - does anybody know about such a program? After some googling I came to the conclusion that such a program does not exist (which must be wrong - i think that per-ip real time traffic flow information is the first thing every router owner would like to know).

View 2 Replies View Related

Networking :: Squid Real Time Monitoring

Feb 7, 2010

Is there any web-tool that provides real time squid users utilization and websites access.

View 2 Replies View Related

General :: How To Read File In Real Time

Jan 3, 2011

I have a log file that I would like to examine during some changes under process that writes to this log.
Is there some way to open this file and read in real time changes written to it ?

View 5 Replies View Related

Applications :: Get Last Logged In Date / Time For Vsftpd Users?

Aug 27, 2010

I can't seem to get last logged in dat/time for vsftpd users. They are linux users maintained within passwd groups ect ... i think this is because ftp doesn't actually give them a real session. That being true, how do i get the last logged in time for my ftp users?

View 1 Replies View Related

OpenSUSE :: Having Real Time Antivirus On Suse Desktop?

Jul 5, 2010

First off i know that suse linux cant be infected by window based viruses and that as a whole reactive based technology such as anti virus wont be that effective as it is always dependent on the virus spreading first-but is there a way to have a real time antivirus scanner under linux? It would be nice to know if i file i opened had a nasty virus in it like the way it does in windows. I first came to think of this since the new opera browser has built in protection from avg. Ive tried opera but still prefer firefox with all the addons like noscript and adblockplus etc.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved