Programming :: Hashing The Components Of An Tcp Session To Assign/locate The Session In A Hash Table Bucket?

Nov 10, 2010

I have a very bad attempt at hashing the components of an tcp session to assign/locate the session in a hash table bucket. I am pretty sure that it has a very high collision rate and when there are a very large number of tcp sessions my application is having to search a long linked list to find the session within the bucket.

All the hashing functions I have found take a single string input where I need to input several integers and hash them into a single result. My guess is that any real hashing function is going to produce better results than what I am currently doing.


View 2 Replies


Slackware :: Script - Telnet Session Is Opened And Then Some More Commands Are Forwarded To That Session?

Apr 12, 2010

hypothetically speaking, can i write a script in which a telnet session is opened and then some more commands are forwarded to that session?

View 4 Replies View Related

Ubuntu :: Session Manager / Select As A Startup Session?

Nov 1, 2010

Is there a session manager I can use with 10.10? I would like to try Openbox but am not sure how to select it as a startup session. I would like to be able to choose between kde, gnome and openbox.

View 1 Replies View Related

CentOS 5 :: Writing 2nd Session Of Multi-session DVD?

Jan 22, 2010

I am putting together some new systems for my customer and I'm having some trouble with a script that we use to back up files to a DVD R. The problem is that I can't write a 2nd session to the DVD unless I eject the disk and reload it. The drives are slimline type drives, Sony BD-5730S and Teac DV-W28S-V93, so they won't reload without human intervention. Opsys is CentOS 5.4 or RHEL 5.4. I've tried both AMD and Intel based mother boards. If i try this on Fedora 11 or 12 it works fine. This works on IDE attached drives but not a SATA attached drives. Fedora appears to use something called genisoimage instead of mkisofs. I can't get genisoimage to run on CentOS or RHEL.

Here's the code to setup the test files:

rm -f /tmp/BDtest/*
mkdir /tmp/BDtest
dd if=/dev/zero of=/tmp/BDtest/blank.iso bs=10M count=1
for NUM in {1..160}


View 2 Replies View Related

Ubuntu Servers :: Restrict User Session Numbers And Allow Resuming Previous User Session?

Jun 30, 2010

I am currently in a project to set up an LTSP server with 10 thin clients. I am using Ubuntu 9.10 (Karmic).

Installing server and booting clients are working fine. Now, according to the need, I have to restrict user session numbers and allow resuming previous user session.

I have achieved to do the first one, but still could not able to setup the second one. As per requirement, if some thin can have power failure, the same session should be restored back. I am confused here, if I need to focus on saving xsessions or saving gnome sessions. I am looking for a concrete solution as I am running out of time.

View 1 Replies View Related

OpenSUSE Install :: Cannot Open ConsoleKit Session: Unable To Open Session

Apr 11, 2010

The following message comes up when I boot up: Logging in user Warning: Cannot open ConsoleKit session: Unable to open session: Launch helper exited with unknown return code 0. When I press OK, the system completes the start up and everything looks normal. But when I try to connect to internet, I get the following message:

KNetworkManager cannot start because the installation is misconfigured. System DBUS policy does not allow it to provide user settings; contact your system administrator or distribution. KNetworkManager will not start automatically in future. If I reboot the system, I logg in successfully. So far the problem has appeared approximately upon every second time I boot up. Rebooting the system seems to take care of it.

Don't know what info is of interest. I'm using

Opensuse 11.2
KDE 4.4.2 (Factory)
After upgrade from 4.4.1 to 4.4.2 it worked fine for a week or so.

View 9 Replies View Related

General :: Session Timeout - What Is Considered A Idle "session" ?

May 11, 2010

Info about session timeout.

I use tmout = 15 min in my /etc/profile (along with readonly tmout). i have some issues i need to address, looking for ideas.

1. what is considered a idle "session" ?

2. if i & a process to the background and do nothing is this a idle session?

3. if user uses su to a higher level, are there now two sessions? is the tmout for user suspended until su user time outs or leaves su session?

4. i have some users who will run long sql queries. is there a workaround to have the session remain active until process has finished?

View 3 Replies View Related

Slackware :: 13.1 Beta1 - Cannot Open ConsoleKit Session - Unable To Open Session

May 13, 2010

I do a clean install of slackware64 13.1 beta1 with KDE and switch default runlevel to 4 in /etc/inittab.

I try to login in kdm, I always come back to the login....

I try this with default runlevel 3 and an .xinitrc with "ck-launch-session startkde" .. works without problems, so I switch back to default runlevel 4, now i can login and only get the error "Cannot open ConsoleKit session: Unable to open session..."

Here are some logs




View 2 Replies View Related

Programming :: Php Session Not Working?

Apr 21, 2011

I try to learn using session. I created sess1.php with the following code:

// makes an array


View 5 Replies View Related

Programming :: Usage Of The Session Variables In Php

Jan 13, 2010

Im a fresher in PHP.Actually i wanted to know that whether there will be time delay while using session variables in PHP.By using some 10-20 session variables in my code will it affect the speed of the loading of the page.If so then can u suuggest any other method to pass the varaibles which will not slow down the speed?

View 4 Replies View Related

Programming :: Telnet- How To Restart Session

Apr 23, 2011

I have done some tcp stream multiplexer. I'm using it as independent login proxy (user is once authenticated and then switched to hidden device (cisco)). But I need to reset session (no connection) configuration, because cisco supports xterm, ctr-c, etc... Am I able to do? Just restart negotiation? Using IAC codes?

View 2 Replies View Related

Programming :: Screen Listing Of Windows In A Session?

May 21, 2011

I need a way to have screen (or dbus, whatever) to spit out a list of windows (title and number) that are active in a screen session.I'm writing a wrapper for common work tasks. Part of the functionality will check if a certain window exists, and if so let me know. The idea here is to prevent accessing the same machine twice. (although, and override option would probably be needed, just in case, but I digress...) I've searched through the screen man page and don't see anything that'll work. I'm not beyond forking screen and ending up with a custom version. However, I'd like to avoid that if I can.

Edit: I'd like to see something like "screen -S screen_name -window-list" or similar.

View 6 Replies View Related

Programming :: PHP - Pass Session To Iframe On Same Page?

Oct 4, 2009

Page.php -- has a special division thats empty and on Link Click calls Javascript to change inner.html to an IFRAME call So the user clicks the link and then it shows the division and loads the IFRAME The IFRAME Source is iframe.php in IFRAME.PHP I need to take the Session Variables that were set already in Page.php all sessions work fine when not using Iframe (open iframe.php in its own window) but doesnt work when its Iframed and sadly I have to use Iframe on this page NOW the CATCH is -- I CANNOT use any POST or GET Values the iframe src MUST be straight url to the page [URL] cannot use variables in the url [URL] etc..

IS it possible to do what I need Without passing variables via the url? Page1 has all session variables set, calls the iframe command when users presses a button, Iframe loads but DOES not have the Session data that was saved on Page1 -- and IFRAME cannot pass variables via the URL it must be a direct url to the page only Page1.php java used to set the HTML / IFRAME into its Div


function changeText(){
document.getElementById('iframediv').innerHTML = "<iframe scrolling='no' frameborder='0' margin='0' src='http://mypage.blah/iframe.php'></iframe>";


View 2 Replies View Related

Programming :: Detect A Keypress Event In A Console Session?

Oct 27, 2010

Is any way to detect a keypress event in a console session? Preferebly without needing the application to be running in the foreground

View 2 Replies View Related

Programming :: Perl Script Get Environment Variable LINES= For Current Session?

Apr 1, 2009

Want to return current LINES=, tryng to avoid the "hacky" backticks and string manipulation way

ie: my $somevar = `set | grep LINES`

I tried using the env command and it returns a empty value?

my $lines = $ENV{'LINES'};

$= doesnt work well for putty sessions...

my $lines = $=;

View 6 Replies View Related

Programming :: TCL Expect Script That Spawns A Telnet Session To A Nortel - Response In Expect_out Is Not Consistent

Dec 2, 2010

I have a TCL expect script that spawns a telnet session to a Nortel DMS100 to execute some commands. The strange thing is that the response in expect_out is not consistent. It sometimes contains a extra enter or newline. This results in differences in the expect out buffer. Here is a part of the script:

send "time
sleep 1
expect -re ">"


This command displays the time. The correct output should be (with log_user=1):

Time is 11:44:04

But sometimes the output is:

>timeTime is 11:45:04

As you can see here the is missing on the command that expect sends , or at least in the echo that is comming back. I use a split command to filter out the response in the expect_out buffer, but this fails when the is missing. Here is a example with the debug enabled:


I suspect it has something to do with a slow response of the switch. I tried to send the time command slow and with the send_human but the result is the same. A timeout between the send and expect also doesn't help.

View 1 Replies View Related

OpenSUSE :: Consolekit Session Error "Consolekit Session Error, Unknown Return Code 0"

Apr 6, 2010

when i start my pc i have an error: Consolekit session error, unknown return code 0 when i click Ok it then starts my session

View 7 Replies View Related

Programming :: Write A Perl Script Which Will Give An Interactive Session To A User To Execute Command On The Server

Feb 25, 2011

I am trying to write a perl script which will give an interactive session to a user to execute command on the server. I have written a small script to do this :

Code: !/usr/bin/perl -w
use strict;
use Net::SSH::Perl;
my $host = '';
my $username = 'user';
my $login_passwd = 'test123';


View 2 Replies View Related

Programming :: Bash Script With Ftp Session Exiting The Script Early?

Feb 22, 2010

I got this script that backs up a server and then keeps only the last 10 backups and removes the rest.Problem is, the part where it deletes any backups older than the last 10, it never reaches that. I'm guessing it is because the ftp session somehow exits the script entirely, especially if there is a problem with the ftp session. But just to make sure, I'm wondering if you all can look at the code to see if I am making it exit accidentally.Here's the code. I left out data like ip address and directory/file names for my security purposes.

#ftp in and grab the file
ftp -in xx.xx.xx.xx << EOF


View 5 Replies View Related

CentOS 5 :: "Mount-cache Hash Table Entries" Problem

Mar 1, 2009

I have Celeron 2800D, 512 RAM (2 slots 256 each). I'm trying to install CentOS 5.2, it asks me about installation type (I tried graphic and text already, it stuck anyway), then after I press enter it shows me "Mount-cache hash table entries: 512" and that's all. I waited severl mins, it doesn't move. I tried to reboot pc several times, it's same. Then I removed 256 and left only 1 slot. and it's fine! I installed centos successfuly. Then I inserted second memory and centos does't load. I see some colored (each time new color) text that changes very fast and then black screen. I connected other HDD with WinXP, it runs fine, it shows me 512 mb, I can lunch Visual studio 2005 fine, etc. But centos just stuck each time if I have memory in both slots.

View 13 Replies View Related

Ubuntu :: Failed To Locate Kernel Symbol Table

Mar 6, 2011

I want to install BLCR (URL...) from source. The problem is when I run ./configure, I get this error:Code: checking for Linux kernel symbol table... failed.configure: error: Failed to locate kernel symbol table. Try using --with-system-map or --with-vmlinux.What should I do next?

View 4 Replies View Related

Ubuntu :: Cannot Log Into X Session

Jun 21, 2010

after an update yesterday, I cannot log into my X session ...

The first time I tried, my screen showed a KDE background, and I got the error:

could not start ksmserver check your installation then I had to click ok, and it put me back to the log in screen.

I opened a shell (ctrl-alt-F1), logged in and typed:

sudo apt-get remove ksmserver, and it told me there was nothing to remove, but said I had a bunch of stale packages and to apt-get autoremove them, and I did

Now, when I go to the log in screen (X), under sessions, it only has xterm (no gnome, no kde) ...


I forgot to add, I have always used Gnome, and not kde ... I have no idea why it originally tried to throw me into a KDE session

How can I get my gnome desktop environment back so I can log in again? I have no idea what I did, nor how to get back to normalcy!

View 1 Replies View Related

Debian :: Switch Session Using Xdm?

Jun 8, 2010

I have xdm as my login manager, but I wanted to give some other window managers a try. I currently use Xfce, but I'm wanting to give WindowMaker a try. How would I choose this on login?

View 14 Replies View Related

Fedora Installation :: Can't Log Into Kde Session

Jan 25, 2009

i installed the kde desktop via the software installer however when i choose the kde session at login it defaults back and boots in to gnome.

View 1 Replies View Related

Fedora :: How To Use Multiple X Session At Once

Sep 9, 2011

I can start a second x sessions with "startx -- :2" switch to it, connect to it over vino vnc. but when I switch back to the first x session the second one "freezes" I cant control it with vnc. So question is how can I use two at once? I've googled everything I can think of with no luck. Can one x server handle 2 client sessions? Wondering so I can try run one user with auto login and lock them into xbmc but have another that I can login to over vnc and muck about with.

View 2 Replies View Related

Ubuntu :: Don't Let User Keep Session Going

Jun 3, 2010

In recent versions of ubuntu, the behavior of gdm and gnome is changed so that if a gnome user doesn't touch the mouse or keyboard for a while, the session is locked, and they have to type their password in order to get back in. I dislike this behavior, because on some of the machines I use and manage, people will walk away and not come back, and then there is no way to log them out. I can switch and log in as a different user, but the AWOL user's session is sitting there eating up resources until the machine is rebooted. I prefer the old behavior, with no locking. Is there any way to get the old behavior back? I've looked through the gdm.conf docs, but can't seem to find anything relevant. This actually seems more like a gnome issue than a gdm issue. I think what's changed is that gnome now invokes a screensaver after a certain amount of time, and that screensaver locks the session.

View 4 Replies View Related

Ubuntu :: VNC Could Not Acquire Name On Session Bus?

Aug 23, 2010

I'm experiencing a problem when trying to use VNC on my desktop box. Whenever I try to connect, I get a gray screen with the error "could not acquire name on session bus".I've searched the forums, but after trying several solutions, nothing has seemed to work for me.My xstartup file looks like this:

db $HOME/.Xresources


View 2 Replies View Related

Ubuntu :: How - Get To Remember Last Session

May 5, 2011

I just upgraded to Natty (11.04) and I want to get my Ubuntu to remember what last windows I had open after I logout and then login.

Due to reasons beyond my comprehension, hibernate and sleep do not work, and I prefer to use shutdown anyway.

I am using Unity and have not changed much of the default environment. I found plenty of guides for 8.04, but the Unity change has moved a lot of things around.

Is this possible, and if so, how do I do it in 11.04?

View 3 Replies View Related

Ubuntu :: Can't Log Into Gnome Session In UNR 10.04

May 18, 2010

I have installed Ubuntu Netbook Remix 10.04 on my Sony Vaio netbook. I want to be able to log into a Gnome session as an alternative to UNR. The main reason for wanting to do this is to be able to add some applets to the panel which I use a lot. This is not possible in UNR, which is really irritating! However, I really like UNR otherwise, so don't want to just install standard version.

Synaptic shows that Gnome is not installed, but when I try to install it, I get this error message:
gnome: Depends: swfdec-mozilla but it is not going to be installed

I tried uninstalling Epiphany, which I sometime use instead of Firefox, but still got the error. I installed Ubuntu-Desktop, but when I select "Gnome" from the session menue at the bottom of the login page, it just logs into UNR session.

How do I install Gnome desktop so that I can log into a Gnome session?

View 3 Replies View Related

General :: How To Take Session Over The Internet

Apr 6, 2011

I am having a pc at my home running CentOS 5.5 and connected to the internet can i take session of it through PUTTY or something else sitting somewhere else and connected to the internet..

View 7 Replies View Related

Copyrights 2005-15, All rights reserved