From owner-freebsd-questions@FreeBSD.ORG Tue Jan 16 12:49:21 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 7B00616A416 for ; Tue, 16 Jan 2007 12:49:21 +0000 (UTC) (envelope-from george.vanev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238]) by mx1.freebsd.org (Postfix) with ESMTP id 22FD513C465 for ; Tue, 16 Jan 2007 12:49:21 +0000 (UTC) (envelope-from george.vanev@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1995214wxc for ; Tue, 16 Jan 2007 04:49:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=HQpbWZmeGDCVX8XQTODTQfsX2GsJ2FP7CrZqCVRMjsW/hcbm3iMPRN/K40DTT50l9n1494Lc+QBpI7afZP6p8qxzYiohPtWy0Vp8NCbkdtLwMg19MLOPp4qHEy0pvFupG/559ZQtGNkR7YqH8tNq0hGxI6if1jJXkl7/psqP1s8= Received: by 10.70.113.16 with SMTP id l16mr10215490wxc.1168951760575; Tue, 16 Jan 2007 04:49:20 -0800 (PST) Received: by 10.70.12.14 with HTTP; Tue, 16 Jan 2007 04:49:20 -0800 (PST) Message-ID: <6f4f57f60701160449m2f1cf894u5795f2bd674ea442@mail.gmail.com> Date: Tue, 16 Jan 2007 14:49:20 +0200 From: "George Vanev" To: "linux quest" In-Reply-To: <524906.28483.qm@web59207.mail.re1.yahoo.com> MIME-Version: 1.0 References: <524906.28483.qm@web59207.mail.re1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD-questions@freebsd.org Subject: Re: 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 Reply-To: George.Vanev@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 12:49:21 -0000 I'm sorry I have to tell you this, but your questions are pretty silly for this mailing list. I suspect I am not the first that have told you this. Anyway... I think I saw someone answer you this question - how to make the perl script. Obviously you have to install perl. The easiest way is to create a shell script for this. Try reading a little documentation, before ask such questions. On 1/16/07, linux quest wrote: > > 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. > _______________________________________________ > 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" > -- George Vanev