Re: [gentoo-user] boot specific service in sequence
On Fri, Feb 26, 2010 at 12:55 PM, Xavier Parizet x...@gentooist.com wrote: On 02/26/2010 06:14 AM, Kaushal Shriyan wrote: On Thu, Feb 25, 2010 at 7:03 PM, Xavier Parizet x...@gentooist.com wrote: On 02/25/2010 02:12 PM, Neil Bothwick wrote: On Thu, 25 Feb 2010 13:15:57 +0100, Xavier Parizet wrote: The syntax is: rc_need_[name of the service]=[list of space-separated services you want [name of the service] to depend on] According to the man page, the syntax is rc_SERVICENAME_need=list of services although I've never used this myself. You're right, i write the mail then checked the man pages and corrected only the first rc_ example but forgot about this one. My apologizes. Hi, I did ran the below command. Hi Xavier, Ran or written in /etc/rc.conf ? Do i need to write the below line in /etc/rc.conf and any services need to be restarted to take the changes into effect ? rc_tomcat_need=configserver Please suggest. Thanks, Kaushal
[gentoo-user] boot specific service in sequence
Hi, is there a way to start some specific services during boot up in a sequential order ? for example 1)tomcat 2)mysql 3)dns server Please suggest. Thanks and Regards, Kaushal
Re: [gentoo-user] boot specific service in sequence
On Thu, Feb 25, 2010 at 7:03 PM, Xavier Parizet x...@gentooist.com wrote: On 02/25/2010 02:12 PM, Neil Bothwick wrote: On Thu, 25 Feb 2010 13:15:57 +0100, Xavier Parizet wrote: The syntax is: rc_need_[name of the service]=[list of space-separated services you want [name of the service] to depend on] According to the man page, the syntax is rc_SERVICENAME_need=list of services although I've never used this myself. You're right, i write the mail then checked the man pages and corrected only the first rc_ example but forgot about this one. My apologizes. -- Xavier Parizet YaGB : http://gentooist.com GPG : C7DC B10E FC21 63BE B453 D239 F6E6 DF65 1569 91BF Hi, I did ran the below command. rc_scriptrunner_need=configserver rc_tomcat_need=scriptrunner is there a way to check and verify it ? Thanks and Regards, Kaushal
[gentoo-user] customized init script
Hi, I have a customized script. hosta# /etc/init.d/scriptrunner start * Starting ScriptRunner ... /sbin/start-stop-daemon: Unable to start /usr/local/scriptrunner/bin/startup.sh: Exec format error (Exec format error)[ ok ] hosta# My customized script is as below #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/5.0.27/tomcat.init,v 1.3 2004/10/08 13:38:08 axxo Exp $ start() { ebegin Starting ScriptRunner start-stop-daemon --start --exec /usr/local/scriptrunner/bin/startup.sh sleep 5 eend $? } stop() { ebegin Stopping ScriptRunner start-stop-daemon --stop --exec /usr/local/scriptrunner/bin/shutdown.sh sleep 5 eend $? } Please suggest/guide Thanks, Kaushal
[gentoo-user] Disk Space
Hi, I was trying to understand about Disk Space issue on Linux Box. whenever the disk usage is 100%. Still i am able to login to the host using root user. How does it work. was curious to know. Thanks, Kaushal
[gentoo-user] two versions of java
Hi, can i have both VM on gentoo ? For example *)Sun JDK 1.5.0.12 and *)Sun JDK 1.5.0.20 ? Thanks, Kaushal
Re: [gentoo-user] autossh
On Wed, Sep 9, 2009 at 1:09 AM, Joshua Murphypoiso...@gmail.com wrote: On Tue, Sep 8, 2009 at 7:12 AM, Kaushal Shriyankaushalshri...@gmail.com wrote: Hi I am having issue with autossh host, I get autossh[13221]: checking for grace period, tries = 0 autossh[13221]: starting ssh (count 1) autossh[13221]: ssh child pid is 13224 autossh[13221]: check on child 13224 autossh[13221]: set alarm for 600 secs autossh[13224]: execing /usr/bin/ssh My Autossh setting in my .bashrc are as below export AUTOSSH_GATETIME=0 export AUTOSSH_POLL=100 export AUTOSSH_PORT=20020 export AUTOSSH_DEBUG=1 When i test by disconnecting and reconnecting the internet, It takes 10mins to prompt for a password. Can this time interval be reduced ? Thanks and Regards, Kaushal Where are you starting autossh from? The AUTOSSH_POLL variable in your .bashrc is, it would appear, being disregarded in whatever context autossh is starting in, otherwise you'd be seeing an up to 1 minute, 40 second delay on reconnecting, not 10 minutes. -- Poison [BLX] Joshua M. Murphy Hi Joshua I am starting autossh somehost from the same gnome-terminal tab session where my .bashrc is located Any further clue ? Thanks and Regards, Kaushal
Re: [gentoo-user] autossh
On Wed, Sep 9, 2009 at 2:16 PM, Willie Wongww...@math.princeton.edu wrote: On Wed, Sep 09, 2009 at 11:34:31AM +0530, Penguin Lover Kaushal Shriyan squawked: On Wed, Sep 9, 2009 at 1:09 AM, Joshua Murphypoiso...@gmail.com wrote: On Tue, Sep 8, 2009 at 7:12 AM, Kaushal Shriyankaushalshri...@gmail.com wrote: export AUTOSSH_GATETIME=0 export AUTOSSH_POLL=100 export AUTOSSH_PORT=20020 export AUTOSSH_DEBUG=1 Where are you starting autossh from? The AUTOSSH_POLL variable in your .bashrc is, it would appear, being disregarded in whatever context autossh is starting in, otherwise you'd be seeing an up to 1 minute, 40 second delay on reconnecting, not 10 minutes. I am starting autossh somehost from the same gnome-terminal tab session where my .bashrc is located Any further clue ? Did you open a new gnome-terminal after editing .bashrc? In the same terminal, what is the output when you type env | grep AUTOSSH ? W -- Fahnestock's Rule for failure: If at first you don't succeed, destroy all evidence that you tried. Sortir en Pantoufles: up 1006 days, 7:37 Hi Willie Wong $env | grep AUTOSSH AUTOSSH_GATETIME=0 AUTOSSH_POLL=10 I opened a new gnome-terminal Any further clue ? Thanks and Regards Kaushal
Re: [gentoo-user] autossh
On Wed, Sep 9, 2009 at 5:21 PM, Willie Wongww...@math.princeton.edu wrote: On Wed, Sep 09, 2009 at 02:38:21PM +0530, Penguin Lover Kaushal Shriyan squawked: $env | grep AUTOSSH AUTOSSH_GATETIME=0 AUTOSSH_POLL=10 I opened a new gnome-terminal Any further clue ? Okay, try running autossh with the environment variable specified on the commandline, aka AUTOSSH_POLL=100 autossh and check the logs to see whether it reacted to that request. If not, run which autossh and file `which autossh` and post the output. W -- Have you heard about Ron Howard's new movie? The travel documentary about northern Europe? It's called Mr. Opie's Holland. Sortir en Pantoufles: up 1006 days, 10:39 Hi $ AUTOSSH_POLL=100 autossh hostxxx autossh[16050]: checking for grace period, tries = 0 autossh[16050]: starting ssh (count 1) autossh[16053]: execing /usr/bin/ssh autossh[16050]: ssh child pid is 16053 autossh[16050]: check on child 16053 autossh[16050]: set alarm for 600 secs ^Cautossh[16050]: received signal to exit (2) $ which autossh /usr/bin/autossh $ Thanks and Regards Kaushal
Re: [gentoo-user] autossh
On Wed, Sep 9, 2009 at 10:58 PM, Willie Wongww...@math.princeton.edu wrote: On Wed, Sep 09, 2009 at 06:11:20PM +0530, Penguin Lover Kaushal Shriyan squawked: file `which autossh` What about this command? I want to see if autossh is a wrapper script so that it has its own environment. $ AUTOSSH_POLL=100 autossh hostxxx autossh[16050]: checking for grace period, tries = 0 autossh[16050]: starting ssh (count 1) autossh[16053]: execing /usr/bin/ssh autossh[16050]: ssh child pid is 16053 autossh[16050]: check on child 16053 autossh[16050]: set alarm for 600 secs ^Cautossh[16050]: received signal to exit (2) Regardless, you should file a bug. The way it is ignoring the environmental variable is definitely different from what the man page says it should do. The only things I can think of that gives it such behaviour is either (i) The software itself is broken and doesn't respect the variable. (ii) /usr/bin/autossh is actually a wrapper script so you need to set the variables in there, instead of in your .bashrc. For either case, the behaviour is not consistent with the man page. W -- M: Hey, do that again! Make the computer beep... W: As you wish! M: ah~~ ah~~... hum, that beep was a G. W: how can you tell? (turn around) oh... no fair... a tuner Sortir en Pantoufles: up 1006 days, 16:16 Hi Willie Wong file `which autossh` /usr/bin/autossh: POSIX shell script text executable http://paste.ubuntu.com/268077/ I dont see any of my env variables being called in that bash shell script. Please suggest and guide Thanks for the explanation. Thanks and Regards, Kaushal
[gentoo-user] autossh
Hi I am having issue with autossh host, I get autossh[13221]: checking for grace period, tries = 0 autossh[13221]: starting ssh (count 1) autossh[13221]: ssh child pid is 13224 autossh[13221]: check on child 13224 autossh[13221]: set alarm for 600 secs autossh[13224]: execing /usr/bin/ssh My Autossh setting in my .bashrc are as below export AUTOSSH_GATETIME=0 export AUTOSSH_POLL=100 export AUTOSSH_PORT=20020 export AUTOSSH_DEBUG=1 When i test by disconnecting and reconnecting the internet, It takes 10mins to prompt for a password. Can this time interval be reduced ? Thanks and Regards, Kaushal
[gentoo-user] ssl + apache2
Hi, is there a step by step guide to configure ssl on apache2 on Gentoo OS? Thanks and Regards Kaushal
[gentoo-user] Tomcat on Gentoo Linux
Hi, is there a mailing list to discuss about tomcat application server running on gentoo ? Thanks and Regards Kaushal
[gentoo-user] Mailing Lists
Hi is there a mailing lists to discuss about perl or python or bash scripting language ? Thanks and Regards Kaushal
[gentoo-user] /tmp folder
Hi when i rebooted Gentoo Linux Server, the /tmp folders got cleaned up. Is there a way i can prevent it from cleaning it up. Also I know that the /tmp directory should not be used for storing important files. Any ideas ? Thanks and Regards Kaushal
[gentoo-user] rsync command
Hi again I have a directory logfiles and inside it it has lots of sub directories. Inside it there are lots of .gz, .txt and .sql files I want only .sql files to be rsynced to the destination host is there a way to achieve it using rsync utility Thanks and Regards Kaushal
[gentoo-user] Nagios 3.0.4 Ebuild
Hi where can i get Nagios Ebuild 3.0.4 for Gentoo OS Thanks and Regards Kaushal
[gentoo-user] netstat command
Hi is there a way to find out the time when the port was connected in netstat command For example netstat -anp | grep 12001 Thanks and Regards Kaushal
[gentoo-user] ps command
Hi # ps auxw | egrep USER|rsync root 5301 0.0 0.0 10036 1280 ?Ss 01:13 root 5306 0.2 0.1 56212 31912 pts/0S+ 01:14 root 5307 0.0 0.1 38052 29708 pts/0S+ 01:14 root 5308 0.2 0.1 38312 29672 pts/0S+ 01:18 root 5473 0.0 0.0 2660 592 ttyS1R+ what does Ss and S+ and R+ mean in stat column in ps command Thanks and Regards Kaushal
[gentoo-user] [I--] [ ~] net-analyzer/ndoutils-1.4_beta7 (0)
Hi I am curious to know what does this means [I--] [ ~] net-analyzer/ndoutils-1.4_beta7 (0) I ??? ~ ??? (0) ??? in the [I--] [ ~] net-analyzer/ndoutils-1.4_beta7 (0) line Thanks and Regards Kaushal
Re: [gentoo-user] [I--] [ ~] net-analyzer/ndoutils-1.4_beta7 (0)
On Sat, Jul 12, 2008 at 2:38 PM, Sebastian Günther [EMAIL PROTECTED] wrote: * Kaushal Shriyan ([EMAIL PROTECTED]) [12.07.08 09:47]: Hi I am curious to know what does this means [I--] [ ~] net-analyzer/ndoutils-1.4_beta7 (0) I ??? This means it is installed on your box. ~ ??? This means it is from the unstable tree (0) ??? This means it is in slot 0. Thanks and Regards Kaushal HTH Sebastian -- Religion ist das Opium des Volkes. Karl Marx [EMAIL PROTECTED]@N GÜNTHER mailto:[EMAIL PROTECTED] Hi Sebastian Is there a documentation for knowing this variables, and what does slot 0 means Thanks and Regards Kaushal
[gentoo-user] Tripwire
Hi what is tripwire and where can i get the information Thanks and Regards Kaushal
[gentoo-user] emerge -avk sun-jdk-1.5.0.10.tbz2
# emerge -avk sun-jdk-1.5.0.10.tbz2 *** emerging by path is broken and may not always work!!! These are the packages that would be merged, in order: Calculating dependencies... done! [binary N] dev-java/sun-jdk-1.5.0.10 USE=-X -alsa -doc -examples -jce (-nsplugin) [?] Total: 1 package (1 new), Size of downloads: 0 kB Portage tree and overlays: [0] /usr/portage [?] indicates that the source repository could not be determined Would you like to merge these packages? [Yes/No] Yes Emerging (1 of 1) dev-java/sun-jdk-1.5.0.10 to / Extracting info Extracting sun-jdk-1.5.0.10 *tar: ./usr/lib/jvm: Cannot mkdir: No such file or directory tar: ./usr/lib/jvm/sun-jdk-1.5: Cannot open: No such file or directory tar: Error exit delayed from previous errors !!! Error Extracting '/usr/portage/packages/All/sun-jdk-1.5.0.10.tbz2'* # Thanks and Regards Kaushal
[gentoo-user] allocate memory
How can i allocate memory to tomcat instance on gentoo
[gentoo-user] Multiple instance of tomcat on gentoo
Hi, How can i install 3 instance of Tomcat Server on a single host Thanks and Regards Kaushal
[gentoo-user] Master - Slave MySQL Database Server
hi is this a correct documentation * http://howtoforge.com/mysql_master_master_replication* for Master Slave Replication and is there a test case to test this setup Thanks and Regards Kaushal
[gentoo-user] emerge -av mysql
hi when i do emerge -av mysql i get the error - http://pastebin.com/d4086a106 Thanks and Regards Kaushal
Re: [gentoo-user] emerge -av mysql
On Mon, Apr 7, 2008 at 7:42 PM, Webhost Blackgate [EMAIL PROTECTED] wrote: Kaushal Shriyan schrieb: On Mon, Apr 7, 2008 at 7:33 PM, Alan McKinnon [EMAIL PROTECTED]mailto: [EMAIL PROTECTED] wrote: On Monday 07 April 2008, Kaushal Shriyan wrote: hi when i do emerge -av mysql i get the error - http://pastebin.com/d4086a106 Please repost and this time put the text of the error message in the body of the mail. You have just asked everyone else on the list to click a link, open it in a browser and have them switch windows back and forth then copy-paste the bits out that are relevant. For a free user-supported forum you are asking a bit much. -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailto:gentoo-user@lists.gentoo.org mailing list when i do emerge -av mysql i get the error, I get the below error make[4]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql' make: *** [all] Error 2 * * ERROR: dev-db/mysql-5.0.44-r1 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1334: Called mysql_src_compile * mysql.eclass, line 615: Called die * * emake failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log'. * * Messages for package dev-db/mysql-5.0.44-r1: * MySQL MY_DATADIR is /var/lib/mysql * * ERROR: dev-db/mysql-5.0.44-r1 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1334: Called mysql_src_compile * mysql.eclass, line 615: Called die * * emake failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log'. * HTH Thanks and Regards Kaushal Can you send the full log? Greetz -- gentoo-user@lists.gentoo.org mailing list Greetz, You want the below log located at /var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log Thanks Kaushal
Re: [gentoo-user] emerge -av mysql
On Mon, Apr 7, 2008 at 7:33 PM, Alan McKinnon [EMAIL PROTECTED] wrote: On Monday 07 April 2008, Kaushal Shriyan wrote: hi when i do emerge -av mysql i get the error - http://pastebin.com/d4086a106 Please repost and this time put the text of the error message in the body of the mail. You have just asked everyone else on the list to click a link, open it in a browser and have them switch windows back and forth then copy-paste the bits out that are relevant. For a free user-supported forum you are asking a bit much. -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list when i do emerge -av mysql i get the error, I get the below error make[4]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql' make: *** [all] Error 2 * * ERROR: dev-db/mysql-5.0.44-r1 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1334: Called mysql_src_compile * mysql.eclass, line 615: Called die * * emake failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log'. * * Messages for package dev-db/mysql-5.0.44-r1: * MySQL MY_DATADIR is /var/lib/mysql * * ERROR: dev-db/mysql-5.0.44-r1 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1334: Called mysql_src_compile * mysql.eclass, line 615: Called die * * emake failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log'. * HTH Thanks and Regards Kaushal
Re: [gentoo-user] emerge -av mysql
On Mon, Apr 7, 2008 at 7:50 PM, Webhost Blackgate [EMAIL PROTECTED] wrote: Kaushal Shriyan schrieb: On Mon, Apr 7, 2008 at 7:42 PM, Webhost Blackgate [EMAIL PROTECTED] wrote: Kaushal Shriyan schrieb: On Mon, Apr 7, 2008 at 7:33 PM, Alan McKinnon [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Monday 07 April 2008, Kaushal Shriyan wrote: hi when i do emerge -av mysql i get the error - http://pastebin.com/d4086a106 Please repost and this time put the text of the error message in the body of the mail. You have just asked everyone else on the list to click a link, open it in a browser and have them switch windows back and forth then copy-paste the bits out that are relevant. For a free user-supported forum you are asking a bit much. -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailto:gentoo-user@lists.gentoo.org mailto:gentoo-user@lists.gentoo.org mailto:gentoo-user@lists.gentoo.org mailing list when i do emerge -av mysql i get the error, I get the below error make[4]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql' make: *** [all] Error 2 * * ERROR: dev-db/mysql-5.0.44-r1 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1334: Called mysql_src_compile * mysql.eclass, line 615: Called die * * emake failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log'. * * Messages for package dev-db/mysql-5.0.44-r1: * MySQL MY_DATADIR is /var/lib/mysql * * ERROR: dev-db/mysql-5.0.44-r1 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1334: Called mysql_src_compile * mysql.eclass, line 615: Called die * * emake failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log'. * HTH Thanks and Regards Kaushal Can you send the full log? Greetz --gentoo-user@lists.gentoo.org mailto: gentoo-user@lists.gentoo.org mailing list Greetz, You want the below log located at /var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log Thanks Kaushal Nope little more lines upside thx -- gentoo-user@lists.gentoo.org mailing list Greetz, Sent Kaushal
Re: [gentoo-user] emerge -av mysql
On Mon, Apr 7, 2008 at 8:01 PM, Kaushal Shriyan [EMAIL PROTECTED] wrote: On Mon, Apr 7, 2008 at 7:50 PM, Webhost Blackgate [EMAIL PROTECTED] wrote: Kaushal Shriyan schrieb: On Mon, Apr 7, 2008 at 7:42 PM, Webhost Blackgate [EMAIL PROTECTED] wrote: Kaushal Shriyan schrieb: On Mon, Apr 7, 2008 at 7:33 PM, Alan McKinnon [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Monday 07 April 2008, Kaushal Shriyan wrote: hi when i do emerge -av mysql i get the error - http://pastebin.com/d4086a106 Please repost and this time put the text of the error message in the body of the mail. You have just asked everyone else on the list to click a link, open it in a browser and have them switch windows back and forth then copy-paste the bits out that are relevant. For a free user-supported forum you are asking a bit much. -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailto:gentoo-user@lists.gentoo.org mailto:gentoo-user@lists.gentoo.org mailto:gentoo-user@lists.gentoo.org mailing list when i do emerge -av mysql i get the error, I get the below error make[4]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql' make: *** [all] Error 2 * * ERROR: dev-db/mysql-5.0.44-r1 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1334: Called mysql_src_compile * mysql.eclass, line 615: Called die * * emake failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log'. * * Messages for package dev-db/mysql-5.0.44-r1: * MySQL MY_DATADIR is /var/lib/mysql * * ERROR: dev-db/mysql-5.0.44-r1 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1334: Called mysql_src_compile * mysql.eclass, line 615: Called die * * emake failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log'. * HTH Thanks and Regards Kaushal Can you send the full log? Greetz --gentoo-user@lists.gentoo.org mailto: gentoo-user@lists.gentoo.org mailing list Greetz, You want the below log located at /var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log Thanks Kaushal Nope little more lines upside thx -- gentoo-user@lists.gentoo.org mailing list Greetz, Sent Kaushal Greetz, Did you get my build.log file. Any clue to my query Thanks and Regards Kaushal
Re: [gentoo-user] emerge -av mysql
On Mon, Apr 7, 2008 at 9:10 PM, Alan McKinnon [EMAIL PROTECTED] wrote: On Monday 07 April 2008, Kaushal Shriyan wrote: Unpacking source... [32;01m* [0m Using default MY_DATADIR [32;01m* [0m MySQL MY_DATADIR is /var/lib/mysql Unpacking mysql-5.0.44.tar.gz to /var/tmp/portage/dev-db/mysql-5.0.44-r1/work Unpacking mysql-extras-20070710.tar.bz2 to snip [Message clipped] This time you gave the first part of the log ad truncated it way too early.No-one can help you with your problem as we have yet to see an actual error message. What we need is the original output from (I think) your second mail. Right at the top was a message Error 1 and what we need is the 20 or so lines immediately before that point so we can see which command produced the error -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list Hi Alan ### x86_64-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr\ -DDATADIR=\/var/lib/mysql\ -DSHAREDIR=\/usr/share/mysql\ -DHAVE_CONFIG_H -I. -I.. -I../innobase/include -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -march=k8 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates -fno-implicit-templates -fno-exceptions -fno-rtti -MT item.o -MD -MP -MF .deps/item.Tpo -c -o item.o item.cc x86_64-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr\ -DDATADIR=\/var/lib/mysql\ -DSHAREDIR=\/usr/share/mysql\ -DHAVE_CONFIG_H -I. -I.. -I../innobase/include -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -march=k8 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates -fno-implicit-templates -fno-exceptions -fno-rtti -MT item_sum.o -MD -MP -MF .deps/item_sum.Tpo -c -o item_sum.o item_sum.cc mkdir .libs x86_64-pc-linux-gnu-gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr\ -DDATADIR=\/var/lib/mysql\ -DSHAREDIR=\/usr/share/mysql\ -DHAVE_CONFIG_H -I. -I.. -I../innobase/include -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -march=k8 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -MT udf_example.lo -MD -MP -MF .deps/udf_example.Tpo -c udf_example.c -fPIC -DPIC -o .libs/udf_example.o x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus) Please submit a full bug report. See URL:http://bugs.gentoo.org/ for instructions. x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus) Please submit a full bug report. See URL:http://bugs.gentoo.org/ for instructions. make[4]: *** [sql_handler.o] Error 1 make[4]: *** Waiting for unfinished jobs make[4]: *** [item.o] Error 1 mv -f .deps/sql_lex.Tpo .deps/sql_lex.Po x86_64-pc-linux-gnu-gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr\ -DDATADIR=\/var/lib/mysql\ -DSHAREDIR=\/usr/share/mysql\ -DHAVE_CONFIG_H -I. -I.. -I../innobase/include -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -march=k8 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -MT udf_example.lo -MD -MP -MF .deps/udf_example.Tpo -c udf_example.c -o udf_example.o /dev/null 21 mv -f .deps/item_sum.Tpo .deps/item_sum.Po mv -f .deps/udf_example.Tpo .deps/udf_example.Plo make[4]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql' make: *** [all] Error 2 [31;01m* [0m [31;01m* [0m ERROR: dev-db/mysql-5.0.44-r1 failed. [31;01m* [0m Call stack: [31;01m* [0m ebuild.sh, line 1654: Called dyn_compile [31;01m* [0m ebuild.sh, line 990: Called qa_call 'src_compile' [31;01m* [0m ebuild.sh, line 44: Called src_compile [31;01m* [0m ebuild.sh, line 1334: Called mysql_src_compile [31;01m* [0m mysql.eclass, line 615: Called die [31;01m* [0m [31;01m* [0m emake failed [31;01m* [0m If you need support, post the topmost build error, and the call stack if relevant. [31;01m* [0m A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log' ### Hope this helps Thanks and Regards Kaushal
Re: [gentoo-user] emerge -av mysql
On Mon, Apr 7, 2008 at 10:51 PM, Kaushal Shriyan [EMAIL PROTECTED] wrote: On Mon, Apr 7, 2008 at 9:10 PM, Alan McKinnon [EMAIL PROTECTED] wrote: On Monday 07 April 2008, Kaushal Shriyan wrote: Unpacking source... [32;01m* [0m Using default MY_DATADIR [32;01m* [0m MySQL MY_DATADIR is /var/lib/mysql Unpacking mysql-5.0.44.tar.gz to /var/tmp/portage/dev-db/mysql-5.0.44-r1/work Unpacking mysql-extras-20070710.tar.bz2 to snip [Message clipped] This time you gave the first part of the log ad truncated it way too early.No-one can help you with your problem as we have yet to see an actual error message. What we need is the original output from (I think) your second mail. Right at the top was a message Error 1 and what we need is the 20 or so lines immediately before that point so we can see which command produced the error -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list Hi Alan ### x86_64-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr\ -DDATADIR=\/var/lib/mysql\ -DSHAREDIR=\/usr/share/mysql\ -DHAVE_CONFIG_H -I. -I.. -I../innobase/include -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -march=k8 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates -fno-implicit-templates -fno-exceptions -fno-rtti -MT item.o -MD -MP -MF .deps/item.Tpo -c -o item.o item.cc x86_64-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr\ -DDATADIR=\/var/lib/mysql\ -DSHAREDIR=\/usr/share/mysql\ -DHAVE_CONFIG_H -I. -I.. -I../innobase/include -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -march=k8 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates -fno-implicit-templates -fno-exceptions -fno-rtti -MT item_sum.o -MD -MP -MF .deps/item_sum.Tpo -c -o item_sum.o item_sum.cc mkdir .libs x86_64-pc-linux-gnu-gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr\ -DDATADIR=\/var/lib/mysql\ -DSHAREDIR=\/usr/share/mysql\ -DHAVE_CONFIG_H -I. -I.. -I../innobase/include -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -march=k8 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -MT udf_example.lo -MD -MP -MF .deps/udf_example.Tpo -c udf_example.c -fPIC -DPIC -o .libs/udf_example.o x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus) Please submit a full bug report. See URL:http://bugs.gentoo.org/ for instructions. x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus) Please submit a full bug report. See URL:http://bugs.gentoo.org/ for instructions. make[4]: *** [sql_handler.o] Error 1 make[4]: *** Waiting for unfinished jobs make[4]: *** [item.o] Error 1 mv -f .deps/sql_lex.Tpo .deps/sql_lex.Po x86_64-pc-linux-gnu-gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr\ -DDATADIR=\/var/lib/mysql\ -DSHAREDIR=\/usr/share/mysql\ -DHAVE_CONFIG_H -I. -I.. -I../innobase/include -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -march=k8 -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -MT udf_example.lo -MD -MP -MF .deps/udf_example.Tpo -c udf_example.c -o udf_example.o /dev/null 21 mv -f .deps/item_sum.Tpo .deps/item_sum.Po mv -f .deps/udf_example.Tpo .deps/udf_example.Plo make[4]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.44-r1/work/mysql' make: *** [all] Error 2 [31;01m* [0m [31;01m* [0m ERROR: dev-db/mysql-5.0.44-r1 failed. [31;01m* [0m Call stack: [31;01m* [0m ebuild.sh, line 1654: Called dyn_compile [31;01m* [0m ebuild.sh, line 990: Called qa_call 'src_compile' [31;01m* [0m ebuild.sh, line 44: Called src_compile [31;01m* [0m ebuild.sh, line 1334: Called mysql_src_compile [31;01m* [0m mysql.eclass, line 615: Called die [31;01m* [0m [31;01m* [0m emake failed [31;01m* [0m If you need support, post the topmost build error, and the call stack if relevant. [31;01m* [0m A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.44-r1/temp/build.log' ### Hope this helps Thanks and Regards Kaushal Hi Alan Any clue, I believe after going through the build.log file, I have to file a bug as per the information in the build.log file. Is that correct. Any suggestions would be highly appreciated. Thanks and Regards Kaushal
[gentoo-user] rsync script
hi I have the script http://pastebin.com/d4b062d28 and the roots cron entry are as below 30 2 * * * su sms /usr/local/bin/testrsync_mysql.sh I am getting the below error building file list ... rsync: opendir /var/lib/mysql/wordpress failed: Permission denied (13) done mysql/ib_logfile0 mysql/ib_logfile1 Killed by signal 2. rsync error: unexplained error (code 255) at rsync.c(276) [sender=2.6.9] Any clue as what is happening Thanks and Regards Kaushal -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] ERROR: cannot start sshd as net.eth0 could not start
Hi, The Subject line explains the issue Kaushal -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] ERROR: cannot start sshd as net.eth0 could not start
On Thu, Apr 3, 2008 at 4:33 PM, Uwe Thiem [EMAIL PROTECTED] wrote: On Thursday 03 April 2008, Kaushal Shriyan wrote: Hi, The Subject line explains the issue No, it does not. It does explain that sshd cannot start because your network isn't up. Now you have to find out why the network doesn't get started. Uwe -- Informal Linux Group Namibia: http://www.linux.org.na/ SysEx (Pty) Ltd.: http://www.SysEx.com.na/ -- gentoo-user@lists.gentoo.org mailing list is there a way i can start net.eth0 first and then sshd next through rc-update. Kaushal -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Master - Slave MySQL Database Server
hi, Is there a step by step guide to set up Master - Slave MySQL Database Server on Gentoo Thanks and Regards Kaushal -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] LVM2
Hi when i reboot the gentoo box all the lvm settings are gone, I have followed the below steps http://pastebin.com/d52c219ba Please let me know if I am missing something Thanks and Regards Kaushal -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Two instances of MySQL Database Server
Hi I am referring to http://dev.mysql.com/doc/refman/5.0/en/multiple-unix-servers.html to create multiple instances of MySQL Database Server. I wanted it for Gentoo Linux is there a HowTo for configuring multiple instance of MySQL Database Server on Gentoo Linux Thanks and Regards Kaushal -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] rsync errors
Hi I am running the command /usr/bin/rsync -avO /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ /tmp/rsync-${TIMESTAMP}.log 21 I am getting the below error in the log file mysql/ rsync: failed to set permissions on /var/lib/mysql: Operation not permitted (1) rsync: failed to open /var/lib/mysql/ib_logfile0, continuing: Permission denied (13) mysql/ib_logfile0 rsync: failed to open /var/lib/mysql/ib_logfile1, continuing: Permission denied (13) mysql/ib_logfile1 rsync: failed to open /var/lib/mysql/ibdata1, continuing: Permission denied (13) mysql/ibdata1 rsync: failed to open /var/lib/mysql/master.info, continuing: Permission denied (13) mysql/master.info rsync: failed to open /var/lib/mysql/SCHEDULER /ScheduleTasks.MYD, continuing: Permission denied (13) Any thing I am missing I did setfacl -R -dm u:sms:rwx /var/lib/mysql on hostaa setfacl -R -dm u:mysql:rwx /var/lib/mysql on hostaa chmod -R g-x,g+X /var/lib/mysql on hostaa but no luck Thanks and Regards Kaushal
[gentoo-user] permission denied (13)
I am running the command /usr/bin/rsync -avO /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ /tmp/rsync-${TIMESTAMP}.log 21 I am getting the below error in the log file mysql/ rsync: failed to set permissions on /var/lib/mysql: Operation not permitted (1) rsync: failed to open /var/lib/mysql/ib_logfile0, continuing: Permission denied (13) mysql/ib_logfile0 rsync: failed to open /var/lib/mysql/ib_logfile1, continuing: Permission denied (13) mysql/ib_logfile1 rsync: failed to open /var/lib/mysql/ibdata1, continuing: Permission denied (13) mysql/ibdata1 rsync: failed to open /var/lib/mysql/master.info, continuing: Permission denied (13) mysql/master.info rsync: failed to open /var/lib/mysql/SCHEDULER/ScheduleTasks.MYD, continuing: Permission denied (13) I set the setfacl command using the below command for the user ssp sudo setfacl -R -m g:ssp:rwx /var/lib/mysql sudo setfacl -R -m u:ssp:rwx /var/lib/mysql Am i missing any thing Thanks and Regards Kaushal
Re: [gentoo-user] permission denied (13)
On Wed, Mar 26, 2008 at 1:25 PM, Dirk Heinrichs [EMAIL PROTECTED] wrote: Am Mittwoch, 26. März 2008 schrieb ext Kaushal Shriyan: I am running the command /usr/bin/rsync -avO /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ /tmp/rsync-${TIMESTAMP}.log 21 I set the setfacl command using the below command for the user ssp sudo setfacl -R -m g:ssp:rwx /var/lib/mysql sudo setfacl -R -m u:ssp:rwx /var/lib/mysql Am i missing any thing ssp != sms HTH... Dirk -- Dirk Heinrichs | Tel: +49 (0)162 234 3408 Configuration Manager | Fax: +49 (0)211 47068 111 Capgemini Deutschland | Mail: [EMAIL PROTECTED] Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net Hi Dirk I did not understand your email Thanks and Regards Kaushal
[gentoo-user] PRNG is not seeded
Hi when i restart sshd I get PRNG is not seeded # /etc/init.d/sshd restart PRNG is not seeded # No idea as what is going on Thanks and Regards Kaushal
Re: [gentoo-user] PRNG is not seeded
On Wed, Mar 26, 2008 at 9:46 PM, Neil Bothwick [EMAIL PROTECTED] wrote: On Wed, 26 Mar 2008 21:17:07 +0530, Kaushal Shriyan wrote: when i restart sshd I get PRNG is not seeded # /etc/init.d/sshd restart PRNG is not seeded Does /dev/urandom exist? What are it's permissions? -- Neil Bothwick Never eat more than you can lift. Hi Thanks for the clue, Both the files /dev/random and /dev/urandom are missing in my system. How do i go ahead in fixing this issue Thanks and Regards Kaushal
Re: [gentoo-user] crontab entry
On Tue, Mar 25, 2008 at 12:11 PM, Kaushal Shriyan [EMAIL PROTECTED] wrote: On Mon, Mar 24, 2008 at 11:22 PM, Kaushal Shriyan [EMAIL PROTECTED] wrote: On Mon, Mar 24, 2008 at 9:13 PM, Kaushal Shriyan [EMAIL PROTECTED] wrote: On Mon, Mar 24, 2008 at 7:59 PM, Mike Edenfield [EMAIL PROTECTED] wrote: Kaushal Shriyan wrote: Hi I have the following entry in the crontab [EMAIL PROTECTED] 0 18 * * * /home/kaushal/rsync_mysql.sh I want my subject line to be hostxx:yyDB refresh daily is there a way to do it Thanks and Regards Kaushal The easiest way is to write a wrapper script; I have a few of them that do something like: ( echo From: songbird.jungle [EMAIL PROTECTED] echo To: Michael Edenfield [EMAIL PROTECTED] echo Subject: Portage Update Report echo # do stuff here. ) | sendmail [EMAIL PROTECTED] -- gentoo-user@lists.gentoo.org mailing list Hi, I have two scripts file one is http://pastebin.com/m263e6f3c and http://pastebin.com/m175098db. The requirement is run http://pastebin.com/m175098db script once the below line succeeds in the http://pastebin.com/m263e6f3c if /usr/bin/rsync -av /var/lib/mysql host77:/var/lib/ /tmp/rsync-${TIMESTAMP}.log 21 then /usr/bin/mailx -s Success: host77 DB refresh daily [EMAIL PROTECTED] /tmp/rsync-${TIMESTAMP}.log I am not able to proceed Thanks and Regards Kaushal Hi I have combined the script http://pastebin.com/m77e0e752, is it ok Thanks and Regards Kaushal Hi Collin, I have http://pastebin.com/d65195b48, I want to know how much time it takes to execute the script, I know the time command { time sudo /usr/bin/rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/; } 2/tmp/time.output is there a way to call the time command inside the http://pastebin.com/d65195b48 script Thanks and Regards Kaushal Hi Collin I could incorporate the time command in my script http://pastebin.com/d1324bbd8 http://pastebin.com/d1324bbd8 is the modified script. Just wanted to know the elasped time in minutes instead of seconds Thanks and Regards Kaushal
[gentoo-user] crontab entry
Hi I have the following entry in the crontab [EMAIL PROTECTED] 0 18 * * * /home/kaushal/rsync_mysql.sh I want my subject line to be hostxx:yyDB refresh daily is there a way to do it Thanks and Regards Kaushal
Re: [gentoo-user] crontab entry
On Mon, Mar 24, 2008 at 2:44 PM, Dirk Heinrichs [EMAIL PROTECTED] wrote: Am Montag, 24. März 2008 schrieb Kaushal Shriyan: [EMAIL PROTECTED] 0 18 * * * /home/kaushal/rsync_mysql.sh I want my subject line to be hostxx:yyDB refresh daily is there a way to do it Don't rely on cron to send the mail, use mailx inside your script instead. That means, inside the script, capture all output in a temp. file, then use cat /tmp/file|mailx -s my subject [EMAIL PROTECTED] HTH... Dirk Hi Dirk Below is my script # #!/bin/bash #rsync mysql database shell script #author kaushal #created on 21/03/2008 TIMESTAMP=`date +%Y-%m-%d-%H:%M:%S:%N` if rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ /tmp/rsync-${TIMESTAMP}.log 21 then echo Success else echo Please check the file rsync-${TIMESTAMP}.log for errors. fi # so according to your suggestion where does this line fits cat /tmp/file|mailx -s my subject [EMAIL PROTECTED] [EMAIL PROTECTED] in my above bash script Thanks and Regards Kaushal
Re: [gentoo-user] crontab entry
On Mon, Mar 24, 2008 at 3:17 PM, Dirk Heinrichs [EMAIL PROTECTED] wrote: Am Montag, 24. März 2008 schrieb Kaushal Shriyan: On Mon, Mar 24, 2008 at 2:44 PM, Dirk Heinrichs [EMAIL PROTECTED] wrote: Am Montag, 24. März 2008 schrieb Kaushal Shriyan: [EMAIL PROTECTED] 0 18 * * * /home/kaushal/rsync_mysql.sh I want my subject line to be hostxx:yyDB refresh daily is there a way to do it Don't rely on cron to send the mail, use mailx inside your script instead. That means, inside the script, capture all output in a temp. file, then use cat /tmp/file|mailx -s my subject [EMAIL PROTECTED] HTH... Dirk Hi Dirk Below is my script ### ## #!/bin/bash #rsync mysql database shell script #author kaushal #created on 21/03/2008 TIMESTAMP=`date +%Y-%m-%d-%H:%M:%S:%N` if rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ /tmp/rsync-${TIMESTAMP}.log 21 then echo Success else echo Please check the file rsync-${TIMESTAMP}.log for errors. fi ### ## so according to your suggestion where does this line fits cat /tmp/file|mailx -s my subject [EMAIL PROTECTED] [EMAIL PROTECTED] in my above bash script Thanks and Regards Kaushal Hmm, if the script is used from cron only, you could reduce it to the following (note that when run from cron, you may need to use full paths to your binaries, or set $PATH inside the script): /usr/bin/rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ 21 |/usr/bin/tee /tmp/rsync-${TIMESTAMP}.log | /usr/bin/mailx -s My subject [EMAIL PROTECTED] This will mail the output and save it to a file at the same time. HTH... Dirk Hi Dirk, Thanks Dirk So the Final script looks like ## #!/bin/bash #rsync mysql database shell script #author kaushal #bash script file name rsync_mysql.sh #created on 24/03/2008 TIMESTAMP=`date +%Y-%m-%d-%H:%M:%S:%N` if /usr/bin/rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ 21 | /usr/bin/tee /tmp/rsync-${TIMESTAMP}.log | /usr/bin/mailx -s host77 DB refresh daily [EMAIL PROTECTED] then echo Success else echo Please check the file rsync-${TIMESTAMP}.log for errors. fi ## and the crontab entry would be 0 18 * * * /home/kaushal/rsync_mysql.sh Please let me know if its correct Thanks again Thanks and Regards Kaushal
Re: [gentoo-user] crontab entry
On Mon, Mar 24, 2008 at 4:36 PM, Peter Humphrey [EMAIL PROTECTED] wrote: On Monday 24 March 2008 10:19:25 Collin Starkweather wrote: ... you left a '' out of your rsync call. It's fixed below. His version is exactly the same as yours, apart from layout. I suggest that the '' at the beginning of a line has confused your mail reader. -- Rgds Peter -- gentoo-user@lists.gentoo.org mailing list Hi Collin I have two scripts file one is http://pastebin.com/m263e6f3c and http://pastebin.com/m175098db. The requirement is run http://pastebin.com/m175098db script once the below line succeeds in the http://pastebin.com/m263e6f3c if /usr/bin/rsync -av /var/lib/mysql host77:/var/lib/ /tmp/rsync-${TIMESTAMP}.log 21 then /usr/bin/mailx -s Success: host77 DB refresh daily [EMAIL PROTECTED] /tmp/rsync-${TIMESTAMP}.log I am not able to proceed Thanks and Regards Kaushal
Re: [gentoo-user] crontab entry
On Mon, Mar 24, 2008 at 7:59 PM, Mike Edenfield [EMAIL PROTECTED] wrote: Kaushal Shriyan wrote: Hi I have the following entry in the crontab [EMAIL PROTECTED] 0 18 * * * /home/kaushal/rsync_mysql.sh I want my subject line to be hostxx:yyDB refresh daily is there a way to do it Thanks and Regards Kaushal The easiest way is to write a wrapper script; I have a few of them that do something like: ( echo From: songbird.jungle [EMAIL PROTECTED] echo To: Michael Edenfield [EMAIL PROTECTED] echo Subject: Portage Update Report echo # do stuff here. ) | sendmail [EMAIL PROTECTED] -- gentoo-user@lists.gentoo.org mailing list Hi, I have two scripts file one is http://pastebin.com/m263e6f3c and http://pastebin.com/m175098db. The requirement is run http://pastebin.com/m175098db script once the below line succeeds in the http://pastebin.com/m263e6f3c if /usr/bin/rsync -av /var/lib/mysql host77:/var/lib/ /tmp/rsync-${TIMESTAMP}.log 21 then /usr/bin/mailx -s Success: host77 DB refresh daily [EMAIL PROTECTED] /tmp/rsync-${TIMESTAMP}.log I am not able to proceed Thanks and Regards Kaushal
Re: [gentoo-user] crontab entry
On Mon, Mar 24, 2008 at 9:13 PM, Kaushal Shriyan [EMAIL PROTECTED] wrote: On Mon, Mar 24, 2008 at 7:59 PM, Mike Edenfield [EMAIL PROTECTED] wrote: Kaushal Shriyan wrote: Hi I have the following entry in the crontab [EMAIL PROTECTED] 0 18 * * * /home/kaushal/rsync_mysql.sh I want my subject line to be hostxx:yyDB refresh daily is there a way to do it Thanks and Regards Kaushal The easiest way is to write a wrapper script; I have a few of them that do something like: ( echo From: songbird.jungle [EMAIL PROTECTED] echo To: Michael Edenfield [EMAIL PROTECTED] echo Subject: Portage Update Report echo # do stuff here. ) | sendmail [EMAIL PROTECTED] -- gentoo-user@lists.gentoo.org mailing list Hi, I have two scripts file one is http://pastebin.com/m263e6f3c and http://pastebin.com/m175098db. The requirement is run http://pastebin.com/m175098db script once the below line succeeds in the http://pastebin.com/m263e6f3c if /usr/bin/rsync -av /var/lib/mysql host77:/var/lib/ /tmp/rsync-${TIMESTAMP}.log 21 then /usr/bin/mailx -s Success: host77 DB refresh daily [EMAIL PROTECTED] /tmp/rsync-${TIMESTAMP}.log I am not able to proceed Thanks and Regards Kaushal Hi I have combined the script http://pastebin.com/m77e0e752, is it ok Thanks and Regards Kaushal
[gentoo-user] rsync script
Hi [EMAIL PROTECTED] 0 18 * * * rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ If i put this two lines in crontab it will run correctly,My requirement was to create a script, this script should indicate success or failures and the reason for failure Any ideas Thanks and Regards Kaushal
Re: [gentoo-user] rsync script
On Fri, Mar 21, 2008 at 12:56 PM, Alan McKinnon [EMAIL PROTECTED] wrote: On Friday 21 March 2008, Kaushal Shriyan wrote: Hi [EMAIL PROTECTED] 0 18 * * * rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ If i put this two lines in crontab it will run correctly,My requirement was to create a script, this script should indicate success or failures and the reason for failure crontab will only send a mail is there is anyput to stdout. What output do you get if you run the rsync manually? Hi Alan When i run the rysnc command by hand, it runs successfully without any issues. I can see it on stdout saying building list files and then the rsync process Do you have any packages installed that can actually send the mail? I did not understand this question Thanks and Regards Kaushal -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] rsync script
On Fri, Mar 21, 2008 at 2:03 PM, Collin Starkweather [EMAIL PROTECTED] wrote: Quoting Kaushal Shriyan [EMAIL PROTECTED]: On Fri, Mar 21, 2008 at 12:56 PM, Alan McKinnon [EMAIL PROTECTED] wrote: On Friday 21 March 2008, Kaushal Shriyan wrote: Hi [EMAIL PROTECTED] 0 18 * * * rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ Run rsync through a script that tests the exit value, then prints an error message if the exit value is not equal to 0 and nothing otherwise. Run the script from cron and it will send you an e-mail if there is a problem. In bash, $? is the exit value of the last command. This is a bit verbose, but you could put the following in rsync-host77.sh: #!/bin/bash TIMESTAMP=`date +%Y-%m-%d-%H:%M:%S:%N` rsync -av /bogus [EMAIL PROTECTED]:/bogus/ rsync-${TIMESTAMP}.log EXITVALUE=$? if [[ ${EXITVALUE} -ne 0 ]] then echo Error: rsync exited with status ${EXITVALUE} echo echo Please check the file rsync-${TIMESTAMP}.log for errors. fi To find exit values and their corresponding meanings, search for EXIT VALUES in http://www.linuxmanpages.com/man1/rsync.1.php Hope this helps, -Collin -- Collin Starkweather, Ph.D. http://www.linkedin.com/in/collinstarkweather -- gentoo-user@lists.gentoo.org mailing list Hi Collin Thanks Collin Correct me if i am wrong please. I want to understand your script step 1 : put the above code in text file and name it as rsync-host77.sh in the folder /home/kaushal in the machine where rsync command will execute step 2 : cd /home/kaushal $crontab -e 0 18 * * * rsync -host77.sh If i want to run the rsync script at 6 pm everyday Also where will the rsync-${TIMESTAMP}.log file will be located, I believe it will be in /home/kaushal folder. Lets say if i have to put rsync-${TIMESTAMP}.log in /tmp folder then the above rsync line would look like rsync -av /bogus [EMAIL PROTECTED]:/bogus/ /tmp/rsync-${TIMESTAMP}.log is that correct what i understand from your email Thanks a Lot again Thanks and Regards Kaushal
[gentoo-user] Gentoo Linux Basic commands to begin with
hi can i have a list of Gentoo Linux basic commands to start with Thanks and Regards Kaushal
Re: [gentoo-user] Gentoo Linux Basic commands to begin with
On Wed, Mar 19, 2008 at 7:03 PM, Ricardo Saffi Marques [EMAIL PROTECTED] wrote: On 3/19/08, Dale [EMAIL PROTECTED] wrote: Oh, man is a good one too. man emerge, man equery, man eix etc etc. Sort of tells you how to use them, if you speak, Greek. That rhyme? LOL Always a nice thing to remember to new people using Linux, whatever distro it is: man man Regards, Saffi -- Ricardo Saffi Marques Laboratório de Administração e Segurança de Sistemas (LAS/IC) Universidade Estadual de Campinas (UNICAMP) Cell: +55 (19) 8128-0435 Skype: ricardo_saffi_marques Website: http://www.rsaffi.com Hi How can i create .tbz2 file Thanks Kaushal
Re: [gentoo-user] Gentoo Linux Basic commands to begin with
2008/3/19 Dirk Heinrichs [EMAIL PROTECTED]: Am Mittwoch, 19. März 2008 schrieb ext Kaushal Shriyan: How can i create .tbz2 file Now the real thing: man tar HTH... Dirk -- Dirk Heinrichs | Tel: +49 (0)162 234 3408 Configuration Manager | Fax: +49 (0)211 47068 111 Capgemini Deutschland | Mail: [EMAIL PROTECTED] Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net I mean using quickpg command kaushal
Re: [gentoo-user] Gentoo Linux Basic commands to begin with
2008/3/19 Dirk Heinrichs [EMAIL PROTECTED]: Am Mittwoch, 19. März 2008 schrieb ext Kaushal Shriyan: How can i create .tbz2 file Now the real thing: man tar HTH... Dirk -- Dirk Heinrichs | Tel: +49 (0)162 234 3408 Configuration Manager | Fax: +49 (0)211 47068 111 Capgemini Deutschland | Mail: [EMAIL PROTECTED] Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net hi I mean using quickpkg command kaushal