From owner-freebsd-questions Mon Sep 2 21:45: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6631237B400 for ; Mon, 2 Sep 2002 21:45:01 -0700 (PDT) Received: from mail9.wlv.netzero.net (mail9.wlv.netzero.net [209.247.163.66]) by mx1.FreeBSD.org (Postfix) with SMTP id 03F1943E3B for ; Mon, 2 Sep 2002 21:45:01 -0700 (PDT) (envelope-from idiot1@netzero.net) Received: (qmail 24379 invoked from network); 3 Sep 2002 04:44:58 -0000 Received: from dialup-65.58.198.60.dial1.tampa1.level3.net (HELO netzero.net) (65.58.198.60) by mail9.wlv.netzero.net with SMTP; 3 Sep 2002 04:44:58 -0000 Message-ID: <3D743DFF.B1DE6C8A@netzero.net> Date: Tue, 03 Sep 2002 00:43:43 -0400 From: Kirk Bailey Organization: Silas Dent Memorial Cabal of ERIS Esoteric and hot dog boiling society X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Subject: sh script question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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