From owner-freebsd-questions Wed Aug 21 20:50:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54BBC37B400 for ; Wed, 21 Aug 2002 20:50:34 -0700 (PDT) Received: from mail.au.darkbluesea.com (mail.au.darkbluesea.com [203.185.208.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id C080843E65 for ; Wed, 21 Aug 2002 20:50:32 -0700 (PDT) (envelope-from d.anker@au.darkbluesea.com) Received: (qmail 2814 invoked from network); 22 Aug 2002 03:50:56 -0000 Received: from unknown (HELO au.darkbluesea.com) (10.0.0.188) by mail.au.darkbluesea.com with SMTP; 22 Aug 2002 03:50:56 -0000 Message-ID: <3D645F20.6060700@au.darkbluesea.com> Date: Thu, 22 Aug 2002 13:48:48 +1000 From: Duncan Anker User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oi Yan Cc: freebsd-questions@FreeBSD.ORG Subject: Re: crontab References: <20020822034743.64125.qmail@web21510.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Oi Yan wrote: >Hello > >Can I set crontab which only works after reboot the >server everytime > >If possible, how can I do it? > >Thank you > >______________________________________________________________________ >Post your ad for free now! http://personals.yahoo.ca > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > > you probably don't want a cron job.. If you put your script in /usr/local/etc/rc.d, make sure it ends with .sh and is executable, it will be run on every server reboot. This is probably what you're looking for. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message