Re: [gentoo-user] crontab entry

2008-03-25 Thread Kaushal Shriyan
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 Eden

Re: [gentoo-user] crontab entry

2008-03-24 Thread Kaushal Shriyan
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/rsyn

Re: [gentoo-user] crontab entry

2008-03-24 Thread Kaushal Shriyan
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 the

Re: [gentoo-user] crontab entry

2008-03-24 Thread Mike Edenfield
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

Re: [gentoo-user] crontab entry

2008-03-24 Thread Uwe Thiem
On Monday 24 March 2008, Kaushal Shriyan wrote: > 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 sa

Re: [gentoo-user] crontab entry

2008-03-24 Thread Kaushal Shriyan
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

Re: [gentoo-user] crontab entry

2008-03-24 Thread Peter Humphrey
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

Re: [gentoo-user] crontab entry

2008-03-24 Thread Dirk Heinrichs
Am Montag, 24. März 2008 schrieb Kaushal Shriyan: > So the Final script looks like Is it the final script :-) ? > #!/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

Re: [gentoo-user] crontab entry

2008-03-24 Thread Collin Starkweather
Quoting Kaushal Shriyan <[EMAIL PROTECTED]>: 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 Dirk gave a lovely one-liner, but my guess is you'll get sick of having to actually check

Re: [gentoo-user] crontab entry

2008-03-24 Thread Kaushal Shriyan
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]

Re: [gentoo-user] crontab entry

2008-03-24 Thread Dirk Heinrichs
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 "ho

Re: [gentoo-user] crontab entry

2008-03-24 Thread 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 > > Do

Re: [gentoo-user] crontab entry

2008-03-24 Thread Dirk Heinrichs
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 t

[gentoo-user] crontab entry

2008-03-24 Thread Kaushal Shriyan
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