Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2002 22:18:36 -0700
From:      Adam Weinberger <adam@vectors.cx>
To:        Kirk Bailey <idiot1@netzero.net>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: sh script question
Message-ID:  <20020903051836.GZ56964@vectors.cx>
In-Reply-To: <3D743DFF.B1DE6C8A@netzero.net>
References:  <3D743DFF.B1DE6C8A@netzero.net>

next in thread | previous in thread | raw e-mail | index | archive | help
echo "#\!`which python`" > /final/path/to/script
cat /rest/of/prepared/script >> /final/path/to/script
mkdir /whatever/web/dir
echo "${USER}@`hostname`" > /whatever/web/dir/email_file

does this help at all?

-Adam


>> (09.02.2002 @ 2143 PST): Kirk Bailey said, in 1.4K: <<
> I want to write a script to install a python application. I has to locate the
> interpreter, extract that path, and create the shebang declaration on the first
> line, then append the remaining prepared script to that, create a directory
> under the web cgi-bin, and create a pair of files in it with the owner's email
> (and password in one of them). some of this is simple io, but I am pretty
> unclear on the joining of strings and variable values,  not to mention parsing
> the output of whereis- or how to direct it's raw results into some sort of a
> variable. Scripting can be very powerful, but I'm still something of a newbie at
> this. Anyone interested  in tossing an oar into my waters?
> 
> -- 
> 
> end
> 
> Respectfully,
>              Kirk D Bailey
> 
> 
> +---------------------"Thou Art Free." -Eris-----------------------+
> | http://www.howlermonkey.net  mailto:highprimate@howlermonkey.net |
> | KILL spam dead!      http://www.scambusters.org/stopspam/#Pledge |
> | http://www.tinylist.org  +--------+   mailto:grumpy@tinylist.org |
> +------------------Thinking| NORMAL |Thinking----------------------+
>                            +--------+
> -------------------------------------------
> Introducing NetZero Long Distance
> Unlimited Long Distance only $29.95/ month!
> Sign Up Today! www.netzerolongdistance.com
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 
>> end of "sh script question" from Kirk Bailey <<


--
"Oh good, my dog found the chainsaw."
        -Lilo, "Lilo & Stitch"
Adam Weinberger
adam@vectors.cx
http://vectors.cx


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?20020903051836.GZ56964>