Re: [ilugd] Load balancing with multiple ISPs
On 18-Jan-08, at 1:07 PM, Raj Mathur wrote: >>> http://wiki.kandalaya.org/cgi-bin/twiki/view/Main/LoadBalancing >> >> what happens if one interface goes down - does it screw up the dns? > > Well, it screws up half your connections. The commands I've given are > for a rudimentary setup: no dead gateway detection, etc. > > OTOH, if one interface goes down you can always > > /etc/init.d/networking restart > > (or equivalent) to get back to your single-point access setup. I use shorewall multiisp for load balancing with 3 ISPs through eth1, eth2 and eth3 with the lan on eth0. Works fine but the moment one ISP goes down, the dns acts up and the various entries for that ISP have to be removed and firewall restarted. There also doesnt seem to be any way to detect when the isp comes up again, so the whole thing is manual at present - users scream, check which is down and restart without that. -- regards Kenneth Gonsalves Associate, NRC-FOSS [EMAIL PROTECTED] http://nrcfosshelpline.in/web/ Foss conference for the common man: http://registration.fossconf.in/web/ ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Load balancing with multiple ISPs
Hi, --- On Jan 18, 2008 1:07 PM, Raj Mathur <[EMAIL PROTECTED]> wrote: | OTOH, if one interface goes down you can always | | /etc/init.d/networking restart \-- Or use fail-over to use the other connection line: http://www.ssi.bg/~ja/nano.txt My reference documentation: http://www.shakthimaan.com/downloads/glv/load-balancing/load-balancing-single-multipath.html SK -- Shakthi Kannan http://www.shakthimaan.com ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Load balancing with multiple ISPs
On Friday 18 Jan 2008, आशीष शुक्ल Ashish Shukla wrote: > [snip] > http://wiki.kandalaya.org/cgi-bin/twiki/view/Main/LoadBalancing > Quoting from above URL: > - >8>8Multiple routers > If both your ISP modems are in router mode, you may have issues > getting loadbalancing to work. This is because both the connections > will be using the sameinterface (eth0). (Note that I'm using two > interfaces, ppp0 and eth0, so Idon't face this problem)- > 8<8< What issues one will experience, hmm...? I did some > similar setup witheth0 connected to a hub, and both internet > connections (PPPoE) terminating to ahub. And used following command > to do setup a default route: ip r a nexthop via $gateway_1 nexthop > via $gateway_2 > All I need is that interface "eth0" has two IPv4 addresses > assignedcorresponding to networks of $gateway_1, and $gateway_2 . Ah, I hadn't checked out that part of things and was under the impression that load balancing won't work if you have a single interface. If you can confirm that you can do this with both modems in router mode I'll update the document accordingly, thanks. > BtW, did you ever get a chance to verify 'weight' assigned to > networkroutes, hmm...? Nope, haven't tried that. Haven't even tried to download anything heavy yet, just checked that it's possible. Regards, -- Raju -- Raj Mathur[EMAIL PROTECTED] http://kandalaya.org/ Freedom in Technology & Software || February 2008 || http://freed.in/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F PsyTrance & Chill: http://schizoid.in/ || It is the mind that moves ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Load balancing with multiple ISPs
On Friday 18 Jan 2008, Kenneth Gonsalves wrote: > On 18-Jan-08, at 11:54 AM, Raj Mathur wrote: > > Got myself a second Internet link (Airtel) yesterday and was > > fooling around trying to get traffic multiplexed over both the new > > and the existing (MTNL) links. It's working now, and on some > > applications I'm getting up to 512Kb/s speeds over my 2 256Kb/s > > connections. Have documented the process in a short document that > > explains what you need to do to load balance traffic over multiple > > Internet links: > > > > http://wiki.kandalaya.org/cgi-bin/twiki/view/Main/LoadBalancing > > what happens if one interface goes down - does it screw up the dns? Well, it screws up half your connections. The commands I've given are for a rudimentary setup: no dead gateway detection, etc. OTOH, if one interface goes down you can always /etc/init.d/networking restart (or equivalent) to get back to your single-point access setup. Regards, -- Raju -- Raj Mathur[EMAIL PROTECTED] http://kandalaya.org/ Freedom in Technology & Software || February 2008 || http://freed.in/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F PsyTrance & Chill: http://schizoid.in/ || It is the mind that moves ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Load balancing with multiple ISPs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ,--[ On Fri, Jan 18, 2008 at 12:09:53PM +0530, Kenneth Gonsalves wrote: | | On 18-Jan-08, at 11:54 AM, Raj Mathur wrote: | | > Got myself a second Internet link (Airtel) yesterday and was fooling | > around trying to get traffic multiplexed over both the new and the | > existing (MTNL) links. It's working now, and on some applications I'm | > getting up to 512Kb/s speeds over my 2 256Kb/s connections. Have | > documented the process in a short document that explains what you need | > to do to load balance traffic over multiple Internet links: | > | > http://wiki.kandalaya.org/cgi-bin/twiki/view/Main/LoadBalancing | | what happens if one interface goes down - does it screw up the dns? It doesn't screw up DNS, but the multipath route is lost. HTH - -- Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHkFTtHy+EEHYuXnQRAqgFAJoDpI/LZjT0R+F4bv3riN0BvG5+vwCgu7/5 F2q2fcGjwjUpbFDO1SQMxrM= =LzM3 -END PGP SIGNATURE- ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Load balancing with multiple ISPs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ,--[ On Fri, Jan 18, 2008 at 11:54:39AM +0530, Raj Mathur wrote: | Hi, | | Got myself a second Internet link (Airtel) yesterday and was fooling | around trying to get traffic multiplexed over both the new and the | existing (MTNL) links. It's working now, and on some applications I'm | getting up to 512Kb/s speeds over my 2 256Kb/s connections. Have | documented the process in a short document that explains what you need | to do to load balance traffic over multiple Internet links: | | http://wiki.kandalaya.org/cgi-bin/twiki/view/Main/LoadBalancing Quoting from above URL: - >8>8 Multiple routers If both your ISP modems are in router mode, you may have issues getting load balancing to work. This is because both the connections will be using the same interface (eth0). (Note that I'm using two interfaces, ppp0 and eth0, so I don't face this problem) - 8<8< What issues one will experience, hmm...? I did some similar setup with eth0 connected to a hub, and both internet connections (PPPoE) terminating to a hub. And used following command to do setup a default route: ip r a nexthop via $gateway_1 nexthop via $gateway_2 All I need is that interface "eth0" has two IPv4 addresses assigned corresponding to networks of $gateway_1, and $gateway_2 . BtW, did you ever get a chance to verify 'weight' assigned to network routes, hmm...? TIA - -- Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHkFRiHy+EEHYuXnQRAvibAKDc4nCs18ysjEBhbs4OQe9k6QIVBwCfa715 v2IeGVhnTg275GIRQ32n7dg= =aWXn -END PGP SIGNATURE- ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] New to Linux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Siddharth Shekhar wrote: > Hello,, > > I am a student and i want to expertise in LINUX as u all are. Welcome to the club! > > But need your help. Which Linux to install.. Which one is more suitable for > beginner,, Sarcasm: Linux 2.6.22-14 or above Reply: Linux is the kernel. When we pack the kernel with all the utilities you need, we call it as a GNU/Linux Distribution. To know what's hot and what's not check this out, http://distrowatch.com/ > > Can u give me idea how to install it? > > I have my laptop wid Windows Xp installed in it. > I want to use windows xp too not only linux. Every distribution has documentation and it surely will have one on how to install. The distribution I use has one, https://help.ubuntu.com/6.10/ubuntu/installation-guide/i386/index.html Installing Linux is not hard. Almost all distros have a nice GUI installer which will help you install with just some mouse clicks and typing. There are only a few steps where you have to be careful, especially when you want to dual boot with Windows as well. Read the docs, they will guide you. :) - -- With Regards, Parthan aka Technofreak [GPG]:0x2FF01026 [web]:http://technofreak.in [blog]:blog.technofreak.in [photos]:photos.technofreak.in [irc]:teKnofreak @ irc.freenode.net (#linux-india) [mobile]:BLR +919845446647 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHkEvjk4vYYS/wECYRApGqAJ91w2hJbCbPoOOVEZmtiXqFSTHdJgCfT54U wx7IaECgcoMi2zulewvZRKE= =ruhS -END PGP SIGNATURE- ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Load balancing with multiple ISPs
On 18-Jan-08, at 11:54 AM, Raj Mathur wrote: > Got myself a second Internet link (Airtel) yesterday and was fooling > around trying to get traffic multiplexed over both the new and the > existing (MTNL) links. It's working now, and on some applications I'm > getting up to 512Kb/s speeds over my 2 256Kb/s connections. Have > documented the process in a short document that explains what you need > to do to load balance traffic over multiple Internet links: > > http://wiki.kandalaya.org/cgi-bin/twiki/view/Main/LoadBalancing what happens if one interface goes down - does it screw up the dns? -- regards Kenneth Gonsalves Associate, NRC-FOSS [EMAIL PROTECTED] http://nrcfosshelpline.in/web/ Foss conference for the common man: http://registration.fossconf.in/web/ ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] New to Linux
Hello,, I am a student and i want to expertise in LINUX as u all are. But need your help. Which Linux to install.. Which one is more suitable for beginner,, Can u give me idea how to install it? I have my laptop wid Windows Xp installed in it. I want to use windows xp too not only linux. ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] Load balancing with multiple ISPs
Hi, Got myself a second Internet link (Airtel) yesterday and was fooling around trying to get traffic multiplexed over both the new and the existing (MTNL) links. It's working now, and on some applications I'm getting up to 512Kb/s speeds over my 2 256Kb/s connections. Have documented the process in a short document that explains what you need to do to load balance traffic over multiple Internet links: http://wiki.kandalaya.org/cgi-bin/twiki/view/Main/LoadBalancing Feedback welcome. Regards, -- Raju -- Raj Mathur[EMAIL PROTECTED] http://kandalaya.org/ Freedom in Technology & Software || February 2008 || http://freed.in/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F PsyTrance & Chill: http://schizoid.in/ || It is the mind that moves ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] SUN to buy MySQL
On 17-Jan-08, at 11:03 PM, Yashpal Nagar wrote: > http://www.deccanherald.com/Content/Jan172008/ > business2008011646990.asp so with sun owning mysql and oracle owning innodb - where does that leave the users? -- regards Kenneth Gonsalves Associate, NRC-FOSS [EMAIL PROTECTED] http://nrcfosshelpline.in/web/ Foss conference for the common man: http://registration.fossconf.in/web/ ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] Belated, but may still be of interest: Knowledge Commons workshop
Announcement of a workshop on knowledge commons, including a session on FOSS, to be held at IIT today. May be of interest to some on this list. Vikas Rawal *** Dear Friends, Knowledge Commons is organising a workshop on 18th January in IIT, Delhi (Details later) on the larger issue of commons. I am attaching a note on the workshop and giving below the outline of the program. I am hoping that you will be able to take time out of your busy program to be with us on that day. Best wishes, Prabir Purkayastha 9.30-10.30 AM Inaugural session: Background and overview Professor Abhijit Sen Brief Presentation on the objectives of the workshop Tea Break 10.45-12.15 Free and Open Source Software Speaker: Dr. G. Nagarjuna Discussant: Jaijit Bhattacharya, Kiran Chandra 12.15-1.30 New Paradigms in Science and Education Speakers:Professor Vijay Kumar, T. Jayraman Discussant: Venkatesh Hariharan, Andrew Lynn Lunch Break 2.15 -3.30 Agribiotechnology Chair: SP Shukla Satyajit Rath Other speakers awaiting confirmation Tea Break 3.45-5.00 Open Source Drug Discovery Chair: Professor Srinath Reddy Speaker: Dr. Samir Bramhachari Discussant: Dr. Amit Sengupta ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] ILUG-D activity in last 7 days
Fri 18-Jan-2008: ILUG-D activity in last 7 days: = New/recent events: 0 Total events: 71 = New Discussion forum postings: 5 Total postings: 974 - 1. Kernel compile Author: Piyush Sharma Posted on: Wed, Jan 16, 2008 Link: http://www.linux-delhi.org/cgi-bin//disc.cgi?action=showItem&iId=7&catId=20&subCatId=51 Hello Friends, Can anyone tell me how to compile kernel.for better performance... Thanks.. 2. Kernel compile Author: Piyush Sharma Posted on: Wed, Jan 16, 2008 Link: http://www.linux-delhi.org/cgi-bin//disc.cgi?action=showItem&iId=6&catId=20&subCatId=51 Hello Friends, Can any one tell me how to compile kernelfor better performance? Thanks... 3. Kernel Compile Author: Piyush Sharma Posted on: Wed, Jan 16, 2008 Link: http://www.linux-delhi.org/cgi-bin//disc.cgi?action=showItem&iId=5&catId=20&subCatId=51 Hello Friends, Can anyone tell me how to Compile Kernel ?? Thanks 4. Kernel compile Author: Piyush Sharma Posted on: Wed, Jan 16, 2008 Link: http://www.linux-delhi.org/cgi-bin//disc.cgi?action=showItem&iId=4&catId=20&subCatId=51 Hello Friends, Can any one tell me how to kernel compile ?? Thanks.. 5. control panel for linux Author: Piyush Sharma Posted on: Mon, Jan 14, 2008 Link: http://www.linux-delhi.org/cgi-bin//disc.cgi?action=showItem&iId=17&catId=13&subCatId=32 Hello Friends, I am new user.and recently completed RHCE certification and i m looking for linux job can u pls tell me abt control panel for linux services (eg:- LDAP , WEB servers , Mail server etc) how to use it and have a different-different control panel for different-different servers? .. = New News items: 0 Total News items: 260 = New Resources: 0 Total Resources: 0 = New comments: 1Total comments: 218 - 1. By: Anonymous Posted on: Fri, Jan 11, 2008 Link: http://www.linux-delhi.org/cgi-bin//news.cgi?action=showItem&iId=294 Ahem, just when through this section if u r really into eastern european why dont u chase that angle frankly Prashant didnt intend to flame you ... he is also talking abt the way "world" class companies treat indians (n the east europeans) Why dont u get the job done by am american ... or a real european = New pictures: 0Total pictures: 224 = New members: 9 Total members: 6170 - 1. Amit Palta, Novice, , India 2. Harsh Vachhani, User, , India 3. Manik Mayur, User, , India 4. Meet shukla, User, delhi, India 5. Pankaj parashar, Power User, , India 6. Piyush Sharma, User, Rajasthan, India 7. Pratul , User, , India 8. Puneet Gupta, User, Delhi, India 9. Yogesh kumark, Power User, tn, India = Send your suggestions, comments or feedback to admin_at_linux-delhi_dot_org -- This email is brought to you by http://www.linux-delhi.org/ - India Linux Users Group - Delhi. ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] SUN to buy MySQL
Deccan HeraldSun Microsystems Inc, announced from Santa Clara, California, on Wednesday, that it has entered into a definitive agreement to acquire MySQL AB, an open source icon and developer of one of world's fastest growing open source databases for approximately $1 billion in total consideration. Full story at http://www.deccanherald.com/Content/Jan172008/business2008011646990.asp Regards Yash ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] [OT] Ford: Car owners are pirates if they distribute pictures of their own cars
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi list, I've found this interesting link: http://www.boingboing.net/2008/01/13/ford-car-owners-are.html - -- Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHj18RHy+EEHYuXnQRArktAJ4ksGwD8q+ozd8VG/QfLg9iXWiKewCeM19V hRXi0hnNYg7LgzHF8i9Ur/A= =m5OZ -END PGP SIGNATURE- ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] ps and grep
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ,--[ On Thu, Jan 17, 2008 at 09:55:33AM +, pj wrote: | Ashish Shukla आशीष शुक्ल <[EMAIL PROTECTED]> writes: | | > > "Puneet" == Puneet Lakhina gmail.com> writes: | > Puneet> Hi, | > Puneet> I have to frequently find the process ids of particular processes | using a | > Puneet> combination of ps and grep. | > | > You can try 'pidof'[1], if you're simply interested in find pid of a | > process :) | > | > [snipped] | > | > Puneet> But I was wondering if there was a way for me to specify this in | the regular | > Puneet> expression for the first grep itself. | > | > Puneet> I tried ps -elo pid,args|grep "myprocess\\!(grep)" | > | > The argument of grep is a regular expression (type 3 language), and | > there is no way you can do this in a type 3 language. Even 'grep' also | > matches 'grep' text when you pass '-v grep' argument to 'grep' command | > line, and then only outputs unmatched lines. I just noticed, that I'm able to make a FSM for matching that expression, which implies that I'm wrong. So, I'm sorry. Thanks - -- Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHjzSDHy+EEHYuXnQRAh1WAJ4yABQLt0KlDukd5gGaqFdLQQYfrwCdGhQj wi0jy/2cJpKullqsav8OB/w= =C6TR -END PGP SIGNATURE- ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Linux webcam
On Jan 10, 2008 11:01 AM, Raj Mathur <[EMAIL PROTECTED]> wrote: > Hmm, I haven't even looked at the CD yet :) No Skype here, will test > out Ekiga when someone offers a video chat. I believe kopete supports webcam for yahoo and msn messengers, if you use them. ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] ps and grep
Ashish Shukla आशीष शुक्ल <[EMAIL PROTECTED]> writes: > > "Puneet" == Puneet Lakhina gmail.com> writes: > Puneet> Hi, > Puneet> I have to frequently find the process ids of particular processes using a > Puneet> combination of ps and grep. > > You can try 'pidof'[1], if you're simply interested in find pid of a > process :) > > [snipped] > > Puneet> But I was wondering if there was a way for me to specify this in the regular > Puneet> expression for the first grep itself. > > Puneet> I tried ps -elo pid,args|grep "myprocess\\!(grep)" > > The argument of grep is a regular expression (type 3 language), and > there is no way you can do this in a type 3 language. Even 'grep' also > matches 'grep' text when you pass '-v grep' argument to 'grep' command > line, and then only outputs unmatched lines. Type 3 and all that: reference: http://en.wikipedia.org/wiki/Regular_language Makes my eyes glaze over. And ps output formats confuse me (see the man page if you want to make your eyes froth and bleed like in a horror movie). Puneet, with GNU ps what you're trying to do might be done by: ps -A | grep myprocess and if you really want to use the elo options (using that makes my GNU ps barf so I haven't tested it), then maybe stick [] around the first character in myprocess (ie, make it: [m]yprocess, see if that does the job): ps -elo pid,args | grep [m]yprocess I don't think there's a restriction on excluding the inclusion of grep in a grep based on it being type 3. YMMV PJ PS: pgrep, pkill, pidof (like others have said) may be handier for your needs. ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] ps and grep
> > "Puneet" == Puneet Lakhina <[EMAIL PROTECTED]> writes: >Puneet> Hi, >Puneet> I have to frequently find the process ids of particular > processes using a >Puneet> combination of ps and grep. > > You can try 'pidof'[1], if you're simply interested in find pid of a > process :) > > [snipped] > >Puneet> But I was wondering if there was a way for me to specify this > in the regular >Puneet> expression for the first grep itself. > >Puneet> I tried ps -elo pid,args|grep "myprocess\\!(grep)" > > The argument of grep is a regular expression (type 3 language), and > there is no way you can do this in a type 3 language. Even 'grep' also > matches 'grep' text when you pass '-v grep' argument to 'grep' command > line, and then only outputs unmatched lines. > > References: > [1] - http://en.wikipedia.org/wiki/Pidof > > use pgrep and pkill instead their man page says: "pgrep, pkill - look up or signal processes based on name and other attributes" I use both quite often :-) ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] ps and grep
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Puneet" == Puneet Lakhina <[EMAIL PROTECTED]> writes: Puneet> Hi, Puneet> I have to frequently find the process ids of particular processes using a Puneet> combination of ps and grep. You can try 'pidof'[1], if you're simply interested in find pid of a process :) [snipped] Puneet> But I was wondering if there was a way for me to specify this in the regular Puneet> expression for the first grep itself. Puneet> I tried ps -elo pid,args|grep "myprocess\\!(grep)" The argument of grep is a regular expression (type 3 language), and there is no way you can do this in a type 3 language. Even 'grep' also matches 'grep' text when you pass '-v grep' argument to 'grep' command line, and then only outputs unmatched lines. References: [1] - http://en.wikipedia.org/wiki/Pidof HTH - -- Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHjxaoHy+EEHYuXnQRAhSeAJ9xqesGE9zmVAxwrra5qL2vK2Va3QCfbIIH OGJttE+PSg5/oPivzZKcrBA= =hoWY -END PGP SIGNATURE- ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/