Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2001 13:27:34 -0700
From:      "doug" <want_2_learn_freebsd@hotmail.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   How to I get a script to run as a daemon?
Message-ID:  <DAV26kBbKP7Ie8tlMaz00005eda@hotmail.com>
References:  <DAV20QUUBPcZi71mrvo00005980@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_001F_01C127E9.8A58C060
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

OK, let me ask it this way:

How to I get a script to run as a daemon -- repeating over and over in one
minute intervals and run quiet?

I have attached asptest.sh which is what I need to run the others in the
background.  Right now, I have cron run it, but it gives me output every
single minute by e-mail!!

Thanks!

Doug.

----- Original Message -----
From: "doug" <want_2_learn_freebsd@hotmail.com>
To: <freebsd-questions@FreeBSD.ORG>
Sent: Friday, August 17, 2001 6:46 PM
Subject: HELP!! Cron is sending me a TON of mail!!!!


> Hi,
>
> I made a shell script that executes 7 other scripts, and it's all working,
> but cron updates everytime it runs, and this runs every minute! (which is
> how often I need it to run)
>
> How to I stop this?
>
> Thanks!

------=_NextPart_000_001F_01C127E9.8A58C060
Content-Type: application/octet-stream;
	name="asptest.sh"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="asptest.sh"

#!/bin/sh
#
# This will execute all the subscripts below.
#
cd /home/wwwroot/scripts/asptest
sh web1/web1.sh
sh web2/web2.sh
------=_NextPart_000_001F_01C127E9.8A58C060
Content-Type: application/octet-stream;
	name="web1.sh"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="web1.sh"

#!/bin/sh=0A=
#=0A=
# This script is the engine of the asptester at http://asptest.apc.net/=0A=
# This one is for web1=0A=
#=0A=
rm /home/wwwroot/vhosts/asptest.apc.net/web1/http-up.png=0A=
/usr/local/bin/wget http://mmweb1001.apc.net/interface/pics/http-up.png=0A=
mv http-up.png /home/wwwroot/vhosts/asptest.apc.net/web1/=0A=
rm /home/wwwroot/vhosts/asptest.apc.net/web1/asp-up.png=0A=
/usr/local/bin/wget http://mmweb1001.apc.net/interface/asp.asp=0A=
mv asp-up.png /home/wwwroot/vhosts/asptest.apc.net/web1/=0A=
rm /home/wwwroot/vhosts/asptest.apc.net/web1/db1-up.png=0A=
/usr/local/bin/wget =
http://mmweb1001.apc.net/interface/isdbrunning.asp?db=3DDB1=0A=
mv db1-up.png /home/wwwroot/vhosts/asptest.apc.net/web1/=0A=
rm /home/wwwroot/vhosts/asptest.apc.net/web1/db2-up.png=0A=
/usr/local/bin/wget =
http://mmweb1001.apc.net/interface/isdbrunning.asp?db=3DDB2=0A=
mv db2-up.png /home/wwwroot/vhosts/asptest.apc.net/web1/=0A=
rm /home/wwwroot/vhosts/asptest.apc.net/web1/ora-up.png=0A=
/usr/local/bin/wget =
http://mmweb1001.apc.net/interface/isdbrunning.asp?db=3DORA=0A=
mv ora-up.png /home/wwwroot/vhosts/asptest.apc.net/web1/
------=_NextPart_000_001F_01C127E9.8A58C060
Content-Type: application/octet-stream;
	name="web2.sh"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="web2.sh"

#!/bin/sh=0A=
#=0A=
# This script is the engine of the asptester at http://asptest.apc.net/=0A=
# This one is for web2=0A=
#=0A=
rm /home/wwwroot/vhosts/asptest.apc.net/web2/http-up.png=0A=
/usr/local/bin/wget http://mmweb1002.apc.net/interface/pics/http-up.png=0A=
mv http-up.png /home/wwwroot/vhosts/asptest.apc.net/web2/=0A=
rm /home/wwwroot/vhosts/asptest.apc.net/web2/asp-up.png=0A=
/usr/local/bin/wget http://mmweb1002.apc.net/interface/asp.asp=0A=
mv asp-up.png /home/wwwroot/vhosts/asptest.apc.net/web2/=0A=
rm /home/wwwroot/vhosts/asptest.apc.net/web2/db1-up.png=0A=
/usr/local/bin/wget =
http://mmweb1002.apc.net/interface/isdbrunning.asp?db=3DDB1=0A=
mv db1-up.png /home/wwwroot/vhosts/asptest.apc.net/web2/=0A=
rm /home/wwwroot/vhosts/asptest.apc.net/web2/db2-up.png=0A=
/usr/local/bin/wget =
http://mmweb1002.apc.net/interface/isdbrunning.asp?db=3DDB2=0A=
mv db2-up.png /home/wwwroot/vhosts/asptest.apc.net/web2/=0A=
rm /home/wwwroot/vhosts/asptest.apc.net/web2/ora-up.png=0A=
/usr/local/bin/wget =
http://mmweb1002.apc.net/interface/isdbrunning.asp?db=3DORA=0A=
mv ora-up.png /home/wwwroot/vhosts/asptest.apc.net/web2/
------=_NextPart_000_001F_01C127E9.8A58C060--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DAV26kBbKP7Ie8tlMaz00005eda>