From owner-freebsd-questions Sat Aug 18 13:24:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (dav26.law15.hotmail.com [64.4.22.83]) by hub.freebsd.org (Postfix) with ESMTP id A6A9637B40C for ; Sat, 18 Aug 2001 13:24:46 -0700 (PDT) (envelope-from want_2_learn_freebsd@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 18 Aug 2001 13:24:46 -0700 X-Originating-IP: [209.144.200.72] From: "doug" To: References: Subject: How to I get a script to run as a daemon? Date: Sat, 18 Aug 2001 13:27:34 -0700 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_001F_01C127E9.8A58C060" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-OriginalArrivalTime: 18 Aug 2001 20:24:46.0570 (UTC) FILETIME=[D29F34A0:01C12823] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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" To: 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