From owner-freebsd-questions Wed Sep 26 0: 9:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web10702.mail.yahoo.com (web10702.mail.yahoo.com [216.136.130.210]) by hub.freebsd.org (Postfix) with SMTP id 8D9F337B40E for ; Wed, 26 Sep 2001 00:09:13 -0700 (PDT) Message-ID: <20010926070913.43127.qmail@web10702.mail.yahoo.com> Received: from [203.200.52.16] by web10702.mail.yahoo.com via HTTP; Wed, 26 Sep 2001 00:09:13 PDT Date: Wed, 26 Sep 2001 00:09:13 -0700 (PDT) From: Manas Subject: Re: Shell scripting help please:) To: Andre` Niel Cameron , free bsd In-Reply-To: <034001c14606$e6c4f4a0$a50410ac@olmct.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 The script is :-- ------------------------------------------- #!/usr/local/bin/bash formail=$1 bob=$2 cd /usr/local/scripts/ cp {$1}.tar /home/{$2}/www/cgi-bin/{$1}.tar tar xvf {$1}.tar chmod -Rf 755 *.pl rm -fr {$1}.tar cd - -------------------------------------------- thanks -manas --- Andre` Niel Cameron wrote: > I have a question. If I want to make a script so I > can put on the command > line, install formmail bob > how would the two command line options be > represented in the script? with > formmail bieng the script and bob bieng the user? > IE > > install formmail bob > > //begin script %1=formmail %2=bob > cd /usr/local/scripts/ > cp %1.tar /home/%2/www/cgi-bin/%1.tar > cd /home/%2/www/cgi-bin > tar xvf %1.tar > chmod -Rf 755 *.pl > rm -f %1.tar > cd back/to/original.directory > //exit script > > Anyone wanna help me out?:) Thanx > Regards, > Andre` C. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of > the message __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message