From owner-freebsd-questions@FreeBSD.ORG Mon Jan 15 16:00:46 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 C798C16A551 for ; Mon, 15 Jan 2007 16:00:46 +0000 (UTC) (envelope-from davegro@hotmail.com) Received: from bay0-omc2-s14.bay0.hotmail.com (bay0-omc2-s14.bay0.hotmail.com [65.54.246.150]) by mx1.freebsd.org (Postfix) with ESMTP id 1442F13C457 for ; Mon, 15 Jan 2007 16:00:23 +0000 (UTC) (envelope-from davegro@hotmail.com) Received: from hotmail.com ([65.55.132.30]) by bay0-omc2-s14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 15 Jan 2007 07:48:20 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 15 Jan 2007 07:48:20 -0800 Message-ID: Received: from 68.45.124.27 by BAY127-DAV20.phx.gbl with DAV; Mon, 15 Jan 2007 15:48:17 +0000 X-Originating-IP: [68.45.124.27] X-Originating-Email: [davegro@hotmail.com] X-Sender: davegro@hotmail.com Message-ID: <45ABA23D.2060207@gmail.com> Date: Mon, 15 Jan 2007 10:48:13 -0500 From: Dave Grochowski User-Agent: Thunderbird 1.5.0.7 (X11/20061110) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20070115073443.5539.qmail@web59210.mail.re1.yahoo.com> In-Reply-To: <20070115073443.5539.qmail@web59210.mail.re1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Jan 2007 15:48:20.0344 (UTC) FILETIME=[94B7F780:01C738BC] Subject: Re: Newbie NMap in FreeBSD Question 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: Mon, 15 Jan 2007 16:00:46 -0000 Hey, It is pretty straightforward: --- cut here --- #!/usr/local/bin/perl exec("nmap 192.168.1.2"); --- cut here --- I would just use an sh script for something this simple: --- cut here --- #!/bin/sh nmap 192.168.1.2; --- cut here --- If you want to be able to supply optional arguments, we can slightly modify the script to allow for it: --- cut here --- #!/bin/sh nmap $@ 192.168.1.2; --- cut here --- So you can do a "./mynmap -A -Ss" and it will run "nmap -A -Ss 192.168.1.2". Hope that helps. Sincerely, Dave Grochowski linux quest wrote: > Note: forwarded message attached. > > --------------------------------- > Now that's room service! Choose from over 150,000 hotels > in 45,000 destinations on Yahoo! Travel to find your fit. > > ------------------------------------------------------------------------ > > Subject: > Newbie NMap in FreeBSD Question > From: > linux quest > Date: > Sat, 13 Jan 2007 08:53:18 -0800 (PST) > To: > FreeBSD-questions@freebsd.org > > To: > FreeBSD-questions@freebsd.org > > > Lets say, I wanted to create a Perl script to execute a very simple > nmap command as listed below, may I know how do I do it? > unix# nmap 192.168.1.2 > I know we need to save it in .pl extension. May I know what else I > need to do. I hope someone can share with me the simple coding. > Thanks. [01.gif] > Regards, > Linux Quest > _________________________________________________________________ > > 8:00? 8:25? 8:40? [1]Find a flick in no time > with the[2]Yahoo! Search movie showtime shortcut. > > References > > 1. http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news > 2. http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news > > > ------------------------------------------------------------------------ > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"