Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2001 00:09:13 -0700 (PDT)
From:      Manas <bhatt_manas@yahoo.com>
To:        Andre` Niel Cameron <AndreC@Axxs.net>, free bsd <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Shell scripting help please:)
Message-ID:  <20010926070913.43127.qmail@web10702.mail.yahoo.com>
In-Reply-To: <034001c14606$e6c4f4a0$a50410ac@olmct.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <AndreC@Axxs.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010926070913.43127.qmail>