Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2001 17:13:19 -0400
From:      "Andre` Niel Cameron" <AndreC@Axxs.net>
To:        "free bsd" <freebsd-questions@FreeBSD.ORG>
Subject:   Shell scripting help please:)
Message-ID:  <034001c14606$e6c4f4a0$a50410ac@olmct.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?034001c14606$e6c4f4a0$a50410ac>