[xmail] Re: Script to shut down then start xmail

2004-04-29 Thread Fred
Hi,

Make sure XMAIL_ROOT and path to SH is valid

#!/bin/sh
#
XMAIL_ROOT=/apps/MailRoot
echo Killing XMail
kill `ps -aux | grep XMail | grep -v grep | awk '{print $2}'`
wait
echo Starting XMail
$XMAIL_ROOT/bin/xmail start
exit 0


Hope this helps

Fred

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ken Larkman
Sent: 29 avril, 2004 14:58
To: [EMAIL PROTECTED]
Subject: [xmail] Script to shut down then start xmail

Does anyone have a script I can run from a crontab on FreeBSD that will
stop Xmail then start it after the service has stopped?
Thanks,

- ken


-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Script to shut down then start xmail

2004-04-29 Thread Ken Larkman
Thanks, Fred!

That looks like it does exactly what I need.

Thanks,

- Ken

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Fred
Sent: Thursday, April 29, 2004 1:13 PM
To: [EMAIL PROTECTED]
Subject: [xmail] Re: Script to shut down then start xmail


Hi,

Make sure XMAIL_ROOT and path to SH is valid

#!/bin/sh
#
XMAIL_ROOT=/apps/MailRoot
echo Killing XMail
kill `ps -aux | grep XMail | grep -v grep | awk '{print $2}'`
wait
echo Starting XMail
$XMAIL_ROOT/bin/xmail start
exit 0


Hope this helps

Fred

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
Behalf Of Ken Larkman
Sent: 29 avril, 2004 14:58
To: [EMAIL PROTECTED]
Subject: [xmail] Script to shut down then start xmail

Does anyone have a script I can run from a crontab on FreeBSD that will
stop Xmail then start it after the service has stopped?
Thanks,

- ken


-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Script to shut down then start xmail

2004-04-29 Thread Fred

My Pleasure Ken, but make sure the wait command is on a new line, exit 0
should be on a new line too. 

fred

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ken Larkman
Sent: 29 avril, 2004 15:23
To: [EMAIL PROTECTED]
Subject: [xmail] Re: Script to shut down then start xmail

Thanks, Fred!

That looks like it does exactly what I need.

Thanks,

- Ken

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Fred
Sent: Thursday, April 29, 2004 1:13 PM
To: [EMAIL PROTECTED]
Subject: [xmail] Re: Script to shut down then start xmail


Hi,

Make sure XMAIL_ROOT and path to SH is valid

#!/bin/sh
#
XMAIL_ROOT=/apps/MailRoot
echo Killing XMail
kill `ps -aux | grep XMail | grep -v grep | awk '{print $2}'`
wait
echo Starting XMail
$XMAIL_ROOT/bin/xmail start
exit 0


Hope this helps

Fred

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
Behalf Of Ken Larkman
Sent: 29 avril, 2004 14:58
To: [EMAIL PROTECTED]
Subject: [xmail] Script to shut down then start xmail

Does anyone have a script I can run from a crontab on FreeBSD that will
stop Xmail then start it after the service has stopped?
Thanks,

- ken


-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Script to shut down then start xmail

2004-04-29 Thread Fred

Sorry, 

make sure the wait command is on a new line, echo Starting XMail
should be on a new line too.

fred

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Fred
Sent: 29 avril, 2004 15:27
To: [EMAIL PROTECTED]
Subject: [xmail] Re: Script to shut down then start xmail


My Pleasure Ken, but make sure the wait command is on a new line, exit 0
should be on a new line too. 

fred

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ken Larkman
Sent: 29 avril, 2004 15:23
To: [EMAIL PROTECTED]
Subject: [xmail] Re: Script to shut down then start xmail

Thanks, Fred!

That looks like it does exactly what I need.

Thanks,

- Ken

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Fred
Sent: Thursday, April 29, 2004 1:13 PM
To: [EMAIL PROTECTED]
Subject: [xmail] Re: Script to shut down then start xmail


Hi,

Make sure XMAIL_ROOT and path to SH is valid

#!/bin/sh
#
XMAIL_ROOT=/apps/MailRoot
echo Killing XMail
kill `ps -aux | grep XMail | grep -v grep | awk '{print $2}'`
wait
echo Starting XMail
$XMAIL_ROOT/bin/xmail start
exit 0


Hope this helps

Fred

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
Behalf Of Ken Larkman
Sent: 29 avril, 2004 14:58
To: [EMAIL PROTECTED]
Subject: [xmail] Script to shut down then start xmail

Does anyone have a script I can run from a crontab on FreeBSD that will
stop Xmail then start it after the service has stopped?
Thanks,

- ken


-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]