Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Shell Loops me mad
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Gordon
LXF regular


Joined: Thu Apr 07, 2005 6:01 pm
Posts: 209
Location: Bradford, West Yorkshire

PostPosted: Wed Jul 27, 2005 10:09 pm    Post subject: Reply with quote

I thought I recognized this code. It seems to be the code from the book "Beginning Linux Programming", Wrox Press, ISBN 1-874416-68-0, chapter 2, code starts on page 72 inmy copy and is copyrighted to Wrox Press 1996. Did K Windle write the original for Wrox?
_________________
Violence is the last refuge of the incompetent
Back to top
View user's profile Send private message Yahoo Messenger
Nigel
LXF regular


Joined: Fri Apr 08, 2005 9:03 pm
Posts: 1141
Location: Gloucestershire, UK

PostPosted: Wed Jul 27, 2005 10:58 pm    Post subject: Reply with quote

Does the code in the book have all the typos in it as well Question Rolling Eyes
Back to top
View user's profile Send private message
RD
LXF regular


Joined: Mon Jul 25, 2005 3:53 am
Posts: 272
Location: irc.ixl2.net

PostPosted: Thu Jul 28, 2005 12:24 am    Post subject: Reply with quote

Gordon, after a quick google it would seem you was write and i had been given half finished stole code to finish as a result i will speak to the person who gave me the half finished code and to wrox about this matter, as a result i have had no choice but to edit and remove the copy right code from the forums and shall not be acceppting any more code from the person who was supose to "help me understand the shell coding" Evil or Very Mad , this is an out right embaresment Embarassed , Nigel it would seem that i have wasted your time and my own and was fooled into thinking that this was genuine. Evil or Very Mad Evil or Very Mad


NOT A HAPPY BUNNY Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad
Back to top
View user's profile Send private message Visit poster's website
Nigel
LXF regular


Joined: Fri Apr 08, 2005 9:03 pm
Posts: 1141
Location: Gloucestershire, UK

PostPosted: Thu Jul 28, 2005 12:57 am    Post subject: Reply with quote

RD - well, at least you have learned something about shell scripts. And I have to admit, so have I - I hadn't used case statements in bash scripts before (although I use them all the time in C). So it hasn't been a complete waste of time.
You may find after a bit of research that you are free to use the script itself, but changing the copyright assignment is a definite no-no.

And this is a good example of why SCO won't find any dodgy code in Linux - with development done so publicly, anything that isn't kosher gets outed very quickly Wink
Back to top
View user's profile Send private message
Gordon
LXF regular


Joined: Thu Apr 07, 2005 6:01 pm
Posts: 209
Location: Bradford, West Yorkshire

PostPosted: Thu Jul 28, 2005 4:19 pm    Post subject: Reply with quote

Hi RD, sorry to have caused you embarresment and anger. But I had also tried the code a few years ago myself from the Wrox book and it didn't work for me then either. Although the code from the book is copyright Wrox press, it is still under the GNU GPL licence, so you can still use it or modify it as long as you make such modifications available to others and acknowledge Wrox as the copyright holders.

Don't let this put you off learning bash scripting though.

With all due respect to Wrox though, "Beginning Linux Programming" may be worth a read. Would Linux Format consider doing a review of the latest edition?

Nigel, The code from the book does have some of the same typoes, such as the "cdttitle" variable.

I hope nobody feels too badly about this.

Regards to all concerned. Gordon
Back to top
View user's profile Send private message Yahoo Messenger
RD
LXF regular


Joined: Mon Jul 25, 2005 3:53 am
Posts: 272
Location: irc.ixl2.net

PostPosted: Thu Jul 28, 2005 4:53 pm    Post subject: Reply with quote

Hi,

Im embarrested and angriy simple because i was given a half finished code that i thought was genuine to later find out that it had/has been cp by Wrox, i feel cheated out of trying to learn a new skill, in future rather than jumping in head first i shall do some home work first.

BTW thanks
_________________
[url=irc://irc.ixl2.org/ixl2]irc.ixl2.org[/url]
Back to top
View user's profile Send private message Visit poster's website
Gordon
LXF regular


Joined: Thu Apr 07, 2005 6:01 pm
Posts: 209
Location: Bradford, West Yorkshire

PostPosted: Thu Jul 28, 2005 4:57 pm    Post subject: Reply with quote

No probs. You could try looking at the "Advanced Bash Scripting Guide" which is on the LXF70 DVD.

Gordon
_________________
Violence is the last refuge of the incompetent
Back to top
View user's profile Send private message Yahoo Messenger
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast