MESSAGE
DATE | 2015-04-13 |
FROM | Ruben Safir
|
SUBJECT | Subject: [LIU Comp Sci] BASh Shell Scripting
|
From owner-learn-outgoing-at-mrbrklyn.com Mon Apr 13 13:28:15 2015 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix) id 851DD16116C; Mon, 13 Apr 2015 13:28:15 -0400 (EDT) Delivered-To: learn-outgoing-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 28) id 6FC2C161170; Mon, 13 Apr 2015 13:28:15 -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 63D0D16116C for ; Mon, 13 Apr 2015 13:27:51 -0400 (EDT) Received: from [10.0.0.19] (www.mrbrklyn.com [96.57.23.82]) by mailbackend.panix.com (Postfix) with ESMTPSA id DA0AE14A28; Mon, 13 Apr 2015 13:27:50 -0400 (EDT) Message-ID: <552BFC96.3050102-at-panix.com> Date: Mon, 13 Apr 2015 13:27:50 -0400 From: Ruben Safir 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: [LIU Comp Sci] BASh Shell Scripting Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: owner-learn-at-mrbrklyn.com Precedence: bulk Reply-To: learn-at-mrbrklyn.com
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
|
|