From wendel_oropesa at yahoo.com Mon Jun 20 03:33:25 2011 From: wendel_oropesa at yahoo.com (wendel oropesa) Date: Sun, 19 Jun 2011 20:33:25 -0700 (PDT) Subject: i want to unsubscribe Message-ID: <39401.84624.qm@web39320.mail.mud.yahoo.com> Good Day I want to unsubscribe the mailing list thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob at bobcatos.com Mon Jun 20 14:37:38 2011 From: bob at bobcatos.com (Bob McClure Jr) Date: Mon, 20 Jun 2011 09:37:38 -0500 Subject: i want to unsubscribe In-Reply-To: <39401.84624.qm@web39320.mail.mud.yahoo.com> References: <39401.84624.qm@web39320.mail.mud.yahoo.com> Message-ID: <20110620143738.GG2359@bobcat.bobcatos.com> On Sun, Jun 19, 2011 at 08:33:25PM -0700, wendel oropesa wrote: > Good Day > > > I want to unsubscribe the mailing list > > > thank you > _______________________________________________ > Redhat-install-list mailing list > Redhat-install-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request at redhat.com > Subject: unsubscribe Here ^^^^^^^^^^^^^^^^^^^^^ is how you do it. Cheers, -- Bob McClure, Jr. Bobcat Open Systems, Inc. bob at bobcatos.com http://www.bobcatos.com He has showed you, O man, what is good. And what does the LORD require of you? To act justly and to love mercy and to walk humbly with your God. Micah 6:8 (NIV) From shibuthomas at tataelxsi.co.in Wed Jun 29 07:08:30 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Wed, 29 Jun 2011 12:38:30 +0530 Subject: Run a script automatically in every 2 sec. Message-ID: <4E0ACF6E.90009@tataelxsi.co.in> Hi ricks, I wrote a one shell script which contains code for synchronize files between two machines.I want to execute this script every 2 second.How can I do this?.When I gone through net found that usually cron job is used for doing same.But the minimum time frame in cron is 1 minitues.One method is to keep a loop inside my script and execute it.But I would like to know is there any other way to do the same. So how can execute my script every 2 second.Please provide some example code. Regards, ShibuThomas From wxp at cn.ibm.com Wed Jun 29 08:04:51 2011 From: wxp at cn.ibm.com (Xiao Peng Wang) Date: Wed, 29 Jun 2011 16:04:51 +0800 Subject: AUTO: Xiao Peng Wang is out of office. (returning 2011-07-01) Message-ID: I am out of the office until 2011-07-01. Guang Cheng Li is my backup. If any emergency, call my mobile phone: 13521858301. Note: This is an automated response to your message "Run a script automatically in every 2 sec." sent on 6/29/11 15:08:30. This is the only notification you will receive while this person is away. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shibuthomas at tataelxsi.co.in Wed Jun 29 10:46:40 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Wed, 29 Jun 2011 16:16:40 +0530 Subject: ssh without password is not working correctly Message-ID: <4E0B0290.6040003@tataelxsi.co.in> HI all. I want to do ssh login into two different mechines on by one.I tried the following squence.but it is not working correctly. For Ex I have 3 mechines Host1,Host2,Host3. I need to login into Host2,Host3 using SSH from Host1. I tried the following: step 1: -logged into Host 1 -execute ssh localhost -execute ssh-keygen -t dsa -execute scp ~/.ssh/id_dsa.pub Host2:.ssh/authorized_keys2 -exectue ssh -l root Host2 not get the prompt for password. Then I tried to connect to Host3 step 2: -logged into Host 1 -execute ssh localhost -execute ssh-keygen -t dsa -execute scp ~/.ssh/id_dsa.pub Host3:.ssh/authorized_keys2 -execute ssh -l root Host3 not get the prompt for password. But after this I tried to connect Host2 from Host1 using -ssh -l root Host2 I got the prompt for enetring pasword. Is anyone know how to rectify this. From hakan at koseoglu.org Wed Jun 29 10:49:20 2011 From: hakan at koseoglu.org (Hakan Koseoglu) Date: Wed, 29 Jun 2011 11:49:20 +0100 Subject: ssh without password is not working correctly In-Reply-To: <4E0B0290.6040003@tataelxsi.co.in> References: <4E0B0290.6040003@tataelxsi.co.in> Message-ID: On 29 June 2011 11:46, ShibuThomas wrote: > But after this I tried to connect Host2 from Host1 using > -ssh -l root Host2 > I got the prompt for enetring pasword. > Is anyone know how to rectify this. Make sure that the .ssh folder (and the contents) and the ~/ are not group/other read or writable. -- Hakan (m1fcj) - http://www.hititgunesi.org From nmw at ion.le.ac.uk Wed Jun 29 11:05:43 2011 From: nmw at ion.le.ac.uk (Nigel Wade) Date: Wed, 29 Jun 2011 12:05:43 +0100 Subject: ssh without password is not working correctly In-Reply-To: <4E0B0290.6040003@tataelxsi.co.in> References: <4E0B0290.6040003@tataelxsi.co.in> Message-ID: <4E0B0707.5000205@ion.le.ac.uk> On 29/06/11 11:46, ShibuThomas wrote: > HI all. > > I want to do ssh login into two different mechines on by one.I tried the > following squence.but it is not working correctly. > For Ex I have 3 mechines Host1,Host2,Host3. > I need to login into Host2,Host3 using SSH from Host1. > I tried the following: > step 1: > -logged into Host 1 > -execute ssh localhost Why, you are already logged into host1? > -execute ssh-keygen -t dsa > -execute scp ~/.ssh/id_dsa.pub Host2:.ssh/authorized_keys2 > -exectue ssh -l root Host2 > not get the prompt for password. Ok, so now you have a private key on host1, and the corresponding public key on host2. > Then I tried to connect to Host3 > step 2: > -logged into Host 1 > -execute ssh localhost > -execute ssh-keygen -t dsa You just created a new public/private key pair, overwriting the keys you previously created (which you need to logon to host2). > -execute scp ~/.ssh/id_dsa.pub Host3:.ssh/authorized_keys2 > -execute ssh -l root Host3 > not get the prompt for password. Ok, so using the new public/private key works for host3. > But after this I tried to connect Host2 from Host1 using > -ssh -l root Host2 > I got the prompt for enetring pasword. Because you overwrote the private key on host1 which is needed to connect to host2 using the public key on host2. > Is anyone know how to rectify this. > Copy the new public key to host2 > -log into Host 1 > -execute scp ~/.ssh/id_dsa.pub Host2:.ssh/authorized_keys2 All you needed to do at step 2 was copy the same public key to host3, just as you had already done for host2. -- Nigel Wade, System Administrator, Space Plasma Physics Group, University of Leicester, Leicester, LE1 7RH, UK E-mail : nmw at ion.le.ac.uk Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555 From shibuthomas at tataelxsi.co.in Wed Jun 29 12:01:54 2011 From: shibuthomas at tataelxsi.co.in (ShibuThomas) Date: Wed, 29 Jun 2011 17:31:54 +0530 Subject: ssh without password is not working correctly In-Reply-To: <4E0B0707.5000205@ion.le.ac.uk> References: <4E0B0290.6040003@tataelxsi.co.in> <4E0B0707.5000205@ion.le.ac.uk> Message-ID: <4E0B1432.7040307@tataelxsi.co.in> Hi Nigel, Yes, you are right. I done as such you mentioned.Its working now Thanks. Regards ShibuThomas Nigel Wade wrote: > On 29/06/11 11:46, ShibuThomas wrote: > >> HI all. >> >> I want to do ssh login into two different mechines on by one.I tried the >> following squence.but it is not working correctly. >> For Ex I have 3 mechines Host1,Host2,Host3. >> I need to login into Host2,Host3 using SSH from Host1. >> I tried the following: >> step 1: >> -logged into Host 1 >> -execute ssh localhost >> > Why, you are already logged into host1? > > >> -execute ssh-keygen -t dsa >> -execute scp ~/.ssh/id_dsa.pub Host2:.ssh/authorized_keys2 >> -exectue ssh -l root Host2 >> not get the prompt for password. >> > > Ok, so now you have a private key on host1, and the corresponding public > key on host2. > > >> Then I tried to connect to Host3 >> step 2: >> -logged into Host 1 >> -execute ssh localhost >> -execute ssh-keygen -t dsa >> > > You just created a new public/private key pair, overwriting the keys you > previously created (which you need to logon to host2). > > >> -execute scp ~/.ssh/id_dsa.pub Host3:.ssh/authorized_keys2 >> -execute ssh -l root Host3 >> not get the prompt for password. >> > > Ok, so using the new public/private key works for host3. > > >> But after this I tried to connect Host2 from Host1 using >> -ssh -l root Host2 >> I got the prompt for enetring pasword. >> > > Because you overwrote the private key on host1 which is needed to > connect to host2 using the public key on host2. > > >> Is anyone know how to rectify this. >> >> > > Copy the new public key to host2 > > >> -log into Host 1 >> -execute scp ~/.ssh/id_dsa.pub Host2:.ssh/authorized_keys2 >> > > All you needed to do at step 2 was copy the same public key to host3, > just as you had already done for host2. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ricks at nerd.com Wed Jun 29 16:22:38 2011 From: ricks at nerd.com (Rick Stevens) Date: Wed, 29 Jun 2011 09:22:38 -0700 Subject: Run a script automatically in every 2 sec. In-Reply-To: <4E0ACF6E.90009@tataelxsi.co.in> References: <4E0ACF6E.90009@tataelxsi.co.in> Message-ID: <4E0B514E.4080700@nerd.com> On 06/29/2011 12:08 AM, ShibuThomas wrote: > Hi ricks, > > I wrote a one shell script which contains code for synchronize files > between two machines.I want to execute this script every 2 second.How > can I do this?.When I gone through net found that usually cron job is > used for doing same.But the minimum time frame in cron is 1 minitues.One > method is to keep a loop inside my script and execute it.But I would > like to know is there any other way to do the same. > So how can execute my script every 2 second.Please provide some example > code. Good lord! Every 2 seconds? That's a bit extreme. Yes, the minimum granularity for a cron job is 1 minute. If you need finer granularity, you need to run a script that does a sleep call: #!/bin/bash while /bin/true; do rsync (or whatever) >/dev/null 2>&1 sleep 2 done This will do the rsync command (discarding any messages), wait for two seconds, then repeat. I really, REALLY recommend you do NOT do this as it can be a massive resource hog. If the two machines are on the same LAN, the best bet is to share the target directory between them using NFS rather than doing some sync job. Alternately, look at the inotifywait stuff. You can put a watch on a directory on the source machine and only launch the sync if a file is written in it. You'd need to "yum install inotify-tools", and here's an example script: ------------------------------- CUT HERE ----------------------------- #!/bin/bash # Filename: watchuploads.sh # Author: Rick Stevens, AllDigital, Inc. # Last Edit: 29 March 2011 # # Synopsis: # This script uses inotifywait to watch for newly uploaded files # in the /opt/uploads directory. When something is uploaded, it # runs rsync to copy the file to another machine. # # NOTES: # It's probably best to run this script in a screen(1) session or # via "nohup /usr/local/bin/watchuploads.sh >/dev/null 2>&1 &". # # Set up some variables to make life easier... WATCHPT="/opt/uploads" # Directory to watch for uploads # And away we go... while /bin/true; do # Start infinite loop FNAME=`inotifywait -e close_write --format "%f" $WATCHPT 2>/dev/null` # Watch for changes and grab # filename nohup rsync $WATCHPT/$FNAME remotemachine:$WATCHPT/ \ >>/dev/null 2>&1 & # Launch rsync done ------------------------------- CUT HERE ----------------------------- This is FAR more efficient than doing a sleep(1) and won't put as much of a load on the system. Look at the man pages for inotifywait(1), inotifywatch(1) and inotify(7). ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - Charter Member of the International Sarcasm Society - - "Yeah, like we need YOUR support!" - ----------------------------------------------------------------------