LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-14-2009, 11:58 AM   #1
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Is there any shell with a server/client model?


I've been looking around for some time and I feel just curious.

Does anyone around know if there's any shell that can work this way? You launch a daemon, then use light clients to connect to it. Kind of like what you can do with rxvt-unicode (urxvtd/urxvtc), but on a shell interpreter.

This could be a memory saver when you have lots of bash sessions open.

Code:
$ ps -A | grep bash | wc -l
17
A secondary side effect would be a cleaner top/htop/ps output. So far, I've never heard of a shell that can be daemonized like this.

Thanks for reading
 
Old 05-14-2009, 11:22 PM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by i92guboj View Post
I've been looking around for some time and I feel just curious.

Does anyone around know if there's any shell that can work this way? You launch a daemon, then use light clients to connect to it. Kind of like what you can do with rxvt-unicode (urxvtd/urxvtc), but on a shell interpreter.

This could be a memory saver when you have lots of bash sessions open.

Code:
$ ps -A | grep bash | wc -l
17
A secondary side effect would be a cleaner top/htop/ps output. So far, I've never heard of a shell that can be daemonized like this.

Thanks for reading
Why do you think it will save memory ?
All read-only and all not written to read-write pages are shared anyway
and all written to read-write pages are likely to have different per session data
 
Old 05-15-2009, 12:15 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Original Poster
Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
It's more about curiosity than a real need. My theory is purely empirical and based on my experience with urxvt. In the case of urxvt it certainly helps to run urxvtd and 20 urxvtc's instead of 20 plain urxvt's. I haven't audited the urxvt sources to find the 'why'. I guess that sharing a single context has some advantages.

However it would be nice even if it's just to simplify a bit the output of process watchers.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
run a shell script on remote client from a server to find all its running process robin singh Linux - Newbie 7 10-03-2008 11:32 AM
Westell 327W Verizqn model to substitute for Bellsouth model jdtiede Linux - Networking 1 03-11-2008 09:31 PM
Eee PC 701 + 8G model`Add/RemoveSW' Updating problems, many errors SURF model, not 8G digital8doug Linux - Laptop and Netbook 3 02-21-2008 06:26 PM
C socket : how Execute shell program from server, and passing the output to client? penyu Programming 6 10-25-2007 01:25 AM
Client server model using linux server and w2k clients? siva_bhavani Linux - Networking 2 09-29-2003 03:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration