Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 2 [3] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Script help needed please< Next Oldest | Next Newest >
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Dec. 28 2004,22:05 QUOTE

mikshaw, Your Bash skill never fail to wow me.  I'd swear I get something new out of every example.  I really liked the use of variables to hold the parts, so that it would be easy to change things.

I think the reason that the script was putting things into /root instead of /home/dsl was because if you are running the script as user root $HOME=/root whereas running it as user dsl $HOME=/home/dsl
Back to top
Profile PM 
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: Dec. 28 2004,22:18 QUOTE

adding the full path worked just fine. Thanks alot for your help. I'll do some test installs this evening.

I have you noted in the code.  :D

Chris
Back to top
Profile PM MSN YIM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 29 2004,05:55 QUOTE

ok then, I wasn't aware that you were running it as root.  Instead of "$HOME/`basename $DOCDIR`" it could be "/home/dsl/`basename $DOCDIR`".  When you said that the symlink was put in the root directory I thought you meant '/' when you actually meant '/root'.  That makes sense.

Variables, in my opinion, are the most useful element in scripting.  Not only do they allow you to easily modify set values in scripts, but they are also used a lot when you need to get a value which may vary depending on the environment, hence the name 'variable'.  I had my first taste of them doing actionscript in Flash 4.  After doing several projects with Flash3 (no variables) and making everything linear and specific, the introduction of variables opened up a whole new world of user interaction.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
12 replies since Dec. 28 2004,16:02 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 2 [3] >/
reply to topic new topic new poll
Quick Reply: Script help needed please

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code