From owner-freebsd-questions@FreeBSD.ORG Tue Jan 16 09:00:42 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 DB4F716A4A7 for ; Tue, 16 Jan 2007 09:00:42 +0000 (UTC) (envelope-from linuxquest7570@yahoo.com) Received: from web59207.mail.re1.yahoo.com (web59207.mail.re1.yahoo.com [66.196.101.33]) by mx1.freebsd.org (Postfix) with SMTP id B68A013C459 for ; Tue, 16 Jan 2007 09:00:36 +0000 (UTC) (envelope-from linuxquest7570@yahoo.com) Received: (qmail 30164 invoked by uid 60001); 16 Jan 2007 09:00:35 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=De5plu4+GrwgiqD464CRYYBPNmj8u2+30qjXA1x+d765y099ugJAM+Gb+gjwJhmIu27H/QyN0WH7LCZ0Vwj1futs/WWpsMCOVOPGHQ1QKuhimkhb6QnS0MZtvsY4MOCL6m/9nznbDtMnVxhaBBByWfCAZos36H6KWsrtIzI8bp0=; X-YMail-OSG: OzmghdIVM1k_JHFT__Abs9zf2AKuhe3LLDgEabP4dHcip0c.Z7sbXIPiUjcF36MjKAAiFdwQKLgOfCSKBshPVjRzj6CVK.WHetxV9QpM99XOK4bI_fsbakSUYPhKaVU2GR1fjHgGjgRFZxQxm6HB9qmMmtRlpqf1hhm58.JM_beu Received: from [218.208.242.130] by web59207.mail.re1.yahoo.com via HTTP; Tue, 16 Jan 2007 01:00:35 PST Date: Tue, 16 Jan 2007 01:00:35 -0800 (PST) From: linux quest To: FreeBSD-questions@freebsd.org MIME-Version: 1.0 Message-ID: <524906.28483.qm@web59207.mail.re1.yahoo.com> X-Mailman-Approved-At: Tue, 16 Jan 2007 12:20:28 +0000 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Command Execution Using Script - Similar to Windows Batch File-Like Script (Coding Help) 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: Tue, 16 Jan 2007 09:00:42 -0000 Dear FreeBSD Communities, 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 have researched and google this for the entire week, but I still can't find the solution. For example in Windows, all I need to do is to type "nmap 192.168.1.2" and save it in a text file with the extension .bat - and everything will be taken care of. I hope someone can share with me the simple coding to solve this problem. Thank you so much, guys :) Regards, Linux Quest Regards, Linux Quest --------------------------------- No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started.