From owner-freebsd-questions@FreeBSD.ORG Thu Feb 1 21:47:14 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A1DFA16A401 for ; Thu, 1 Feb 2007 21:47:14 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id 8618113C49D for ; Thu, 1 Feb 2007 21:47:14 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn05.u.washington.edu (hymn05.u.washington.edu [140.142.12.184]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l11LlEtG012910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 1 Feb 2007 13:47:14 -0800 Received: from localhost (localhost [127.0.0.1]) by hymn05.u.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l11LlD0P004229 for ; Thu, 1 Feb 2007 13:47:13 -0800 X-Auth-Received: from [192.55.52.1] by hymn05.u.washington.edu via HTTP; Thu, 01 Feb 2007 13:47:13 PST Date: Thu, 1 Feb 2007 13:47:13 -0800 (PST) From: youshi10@u.washington.edu To: freebsd-questions@freebsd.org In-Reply-To: <8cb6106e0702011311w6e15e117w127b4e9576dbca02@mail.gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.2.1.133432 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Running nmap on a 1 hour schedule [was Re: (no subject)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2007 21:47:14 -0000 On Thu, 1 Feb 2007, Josh Carroll wrote: >> In bash or csh I want to start nmap scanning at every 1 hour.how can I do >> this? >> thanks > > Use cron (man cron, man 5 crontab). Something like: > > 0 * * * * /usr/local/bin/nmap .... > > Would run it on the hour, each hour. Read the man pages for more details. > > Josh Consult your favorite webpage to search out examples on how to use cron / specify entries in crontab (crontab syntax is the same, regardless of what cron's in use). Also, please provide a subject line when asking a question next time. -Garrett