MESSAGE
DATE | 2015-04-15 |
FROM | Ruben
|
SUBJECT | Re: [LIU Comp Sci] BASh Shell Scripting
|
From owner-learn-outgoing-at-mrbrklyn.com Wed Apr 15 19:03:01 2015 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix) id 86C1216115E; Wed, 15 Apr 2015 19:03:01 -0400 (EDT) Delivered-To: learn-outgoing-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 28) id 75D98161168; Wed, 15 Apr 2015 19:03:01 -0400 (EDT) Delivered-To: learn-at-nylxs.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mrbrklyn.com (Postfix) with ESMTP id C389B16115E for ; Wed, 15 Apr 2015 19:02:36 -0400 (EDT) Received: from [148.4.239.155] (182631e.cst.lightpath.net [24.38.3.30]) by mailbackend.panix.com (Postfix) with ESMTPSA id 59150122A5 for ; Wed, 15 Apr 2015 19:02:35 -0400 (EDT) Message-ID: <552EEEBD.1050806-at-panix.com> Date: Wed, 15 Apr 2015 19:05:33 -0400 From: Ruben User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: learn-at-nylxs.com Subject: Re: [LIU Comp Sci] BASh Shell Scripting References: <552BFC96.3050102-at-panix.com> In-Reply-To: <552BFC96.3050102-at-panix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-learn-at-mrbrklyn.com Precedence: bulk Reply-To: learn-at-mrbrklyn.com
http://www.linuxjournal.com/article/2807
On 04/13/2015 01:27 PM, Ruben Safir wrote: > To the Students mailing list: Please with regard to the assignment > on shell scripting > > http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html > > http://www.panix.com/~elflord/unix/bash-tute.html > http://www.grymoire.com/Unix/Sh.html#uh-29 > http://tldp.org/LDP/abs/html/ > > I know that your gonna google things but go to the source. > > It is not in these FAQs but do NOT forget to change the PATH variables > to a specific set of locations to find executables.... or you have a > mile high security hole/ > > See > > [ruben-at-stat13 ~]$ set|grep PATH > CLASSPATH=/home/ruben/GNUstep/Library/Libraries/Java:/root/GNUstep/Library/Libraries/Java:/usr/lib/GNUstep/Libraries/Java > GNUSTEP_PATHLIST=/usr/System:/usr/Network:/usr/Local:/root/GNUstep > GUILE_LOAD_PATH=/home/ruben/GNUstep/Library/Libraries/Guile:/root/GNUstep/Library/Libraries/Guile:/usr/lib/GNUstep/Libraries/Guile > INFOPATH=/usr/share/info::/root/GNUstep/Library/Documentation/info::/home/ruben/GNUstep/Library/Documentation/info: > LD_LIBRARY_PATH=/home/ruben/GNUstep/Library/Libraries:/root/GNUstep/Library/Libraries:/usr/lib > MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins > PATH=/home/ruben/GNUstep/Tools:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl > [ruben-at-stat13 ~]$ > > That is standard on my usable shell - tooo wide. On shell scripts, it > is important to remember to set your environment and not depend on what > you inherit when you run it. In fact, that is probably true with all > programming, but it is an upfront and wide problem with shell scripts. > > Ruben >
|
|