Sponsored Content
Full Discussion: script debugging
Top Forums Shell Programming and Scripting script debugging Post 302261868 by drl on Tuesday 25th of November 2008 10:56:07 PM
Old 11-25-2008
Hi.

Not with any builtin that I know of. The book below presents a script that allows breakpoints. You can download the code from Index of /bash2 , but you may need the support of the book. It's possible that you may be able to find Edition 2 used for an attractive price.

O'Reilly published a similar book on the Korn shell; code at Index of /korn2

Best wishes ... cheers, drl
Code:
Title: Learning the bash Shell
Author: Cameron Newham
Edition: Third
Date: 2005
Publisher: O'Reilly
ISBN: 0596009658
Pages: 376
Categories: bash, scripting, unix, linux, shell, programming
Comments: 4 stars, 27 reviews (Amazon 2007.08)
Comments: ( I have 2nd edition, 1998)
Comments: "bashdb", bash debugger, Chapter 9.

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

HP-UX Debugging Shell script

Hi, I was using AIX - ksh shell , and inorder to debug shell script I used set -vx to echo all the commands which are being executed. Can anybody tell me the corresponding method in HP-UX - in tcsh shell. Regards Shihab (1 Reply)
Discussion started by: shihabvk
1 Replies

2. Shell Programming and Scripting

FTP script debugging

Hello all, I am trying to run a script and have not had much success running it...ne help debugging it will be appreciated..The ftp script alone works but not within the while loop. below is the script #!/usr/bin/ksh destination_server=servename destination_user_id=un... (1 Reply)
Discussion started by: alfredo123
1 Replies

3. Shell Programming and Scripting

Nee help debugging script..plz

I am having problems w/this script. Menu is not comming up to prompt me. I've worked on it for days and still cannot see the problem. Anyone can help, I would appreciate it. Possible problems with syntax and function calls. Thks... TMP=$tapemgr/rpts/tmp # TAPE MANAGER MAIN MENU while : do... (8 Replies)
Discussion started by: gzs553
8 Replies

4. Shell Programming and Scripting

debugging a script??

Hi all, Am working on a script to understand the flow control of it.. Since i am from a C background i looking out for an easy way to analyze the script as it runs .. In C/C++ we have F7 that starts execution from main() and proceeds accordingly.. I was wondering if there is a same approach... (2 Replies)
Discussion started by: wrapster
2 Replies

5. UNIX for Advanced & Expert Users

cp script error, pls help in debugging!!!!

Hi all, I searched to find out a few cp scripts that had progress bar, but did not compromise on performance, when my efforts were in vain i went ahead and wrote one of my own ,taking i/p frm other scripts... But this is causing some errors and am unable to debug it.....pls help Here is the... (1 Reply)
Discussion started by: wrapster
1 Replies

6. UNIX for Advanced & Expert Users

debugging an already running bash script

# ps -ef | grep rc root 13903 1 0 08:56 ? 00:00:00 /usr/sbin/automount --timeout=60 /archive file /etc/auto_archive root 10706 1 0 08:55 ? 00:00:00 /bin/bash /etc/rc.d/rc 3 root 2933 20071 0 19:38 pts/1 00:00:00 grep rc Is there any way to debug the... (1 Reply)
Discussion started by: marcpascual
1 Replies

7. Shell Programming and Scripting

debugging the shell script with out actually running

Hello, Some one asked me in the inteview.... The question is, How do we debug the schell script before even running..... Interviewer told me one clue... There is SET command to accomplish this... Can any one tell me what kind of set commands.... Thanks. (2 Replies)
Discussion started by: govindts
2 Replies

8. Shell Programming and Scripting

Debugging a script with noexec

Newbie question. I cannot get "set -n" or "set -noexec on" to work on Linux or AIX! According to the man page and what I read online, it should inform me of syntax errors without executing commands in your script. So, can someone PLEASE explain why this does not work? ... (2 Replies)
Discussion started by: fgoyti
2 Replies

9. Shell Programming and Scripting

Having trouble with My Bash Script, need Help debugging

Hello Friends I am having trouble with my script below. I will describe the problems below the code box. I am hoping that some of the experts here can help me. #!/bin/bash #========================================================================================================= # Rsync File... (8 Replies)
Discussion started by: jdavis_33
8 Replies

10. Shell Programming and Scripting

Shell script debugging

hi all only the weirdest thing happened with me just now. I was debugging a shell script and I found that a step that was supposed to execute later was getting executed prior to another step for no reason. You know any ? i mean have a look at the following command- here it tries to grep... (7 Replies)
Discussion started by: leghorn
7 Replies
PERLBOOK(1)						 Perl Programmers Reference Guide					       PERLBOOK(1)

NAME
perlbook - Books about and related to Perl DESCRIPTION
There are many books on Perl and Perl-related. A few of these are good, some are OK, but many aren't worth your money. There is a list of these books, some with extensive reviews, at http://books.perl.org/ . We list some of the books here, and while listing a book implies our endorsement, don't think that not including a book means anything. Most of these books are available online through Safari Books Online ( http://safaribooksonline.com/ ). The most popular books The major reference book on Perl, written by the creator of Perl, is Programming Perl: Programming Perl (the "Camel Book"): by Larry Wall, Tom Christiansen, and Jon Orwant ISBN 978-0-596-00027-1 [3rd edition July 2000] http://oreilly.com/catalog/9780596000271/ The Ram is a cookbook with hundreds of examples of using Perl to accomplish specific tasks: The Perl Cookbook (the "Ram Book"): by Tom Christiansen and Nathan Torkington, with Foreword by Larry Wall ISBN 978-0-596-00313-5 [2nd Edition August 2003] http://oreilly.com/catalog/9780596003135/ If you want to learn the basics of Perl, you might start with the Llama book, which assumes that you already know a little about programming: Learning Perl (the "Llama Book") by Randal L. Schwartz, Tom Phoenix, and brian d foy ISBN 978-0-596-52011-3 [5th edition June 2008] http://oreilly.com/catalog/9780596520113 The tutorial started in the Llama continues in the Alpaca, which introduces the intermediate features of references, data structures, object-oriented programming, and modules: Intermediate Perl (the "Alpaca Book") by Randal L. Schwartz and brian d foy, with Tom Phoenix foreword by Damian Conway ISBN 978-0-596-00478-1 [1st edition March 2006] http://oreilly.com/catalog/9780596004781/ References You might want to keep these desktop references close by your keyboard: Perl 5 Pocket Reference by Johan Vromans ISBN 978-0-596-00374-6 [4th edition July 2002] http://oreilly.com/catalog/9780596003746/ Perl Debugger Pocket Reference by Richard Foley ISBN 978-0-596-00503-0 [1st edition January 2004] http://oreilly.com/catalog/9780596005030/ Regular Expression Pocket Reference by Tony Stubblebine ISBN 978-0-596-51427-3 [July 2007] http://oreilly.com/catalog/9780596514273/ Tutorials Beginning Perl by James Lee ISBN 1-59059-391-X [3rd edition April 2010] http://www.apress.com/book/view/1430227931 Learning Perl by Randal L. Schwartz, Tom Phoenix, and brian d foy ISBN 978-0-596-52010-6 [5th edition June 2008] http://oreilly.com/catalog/9780596520106 Intermediate Perl (the "Alpaca Book") by Randal L. Schwartz and brian d foy, with Tom Phoenix foreword by Damian Conway ISBN 0-596-10206-2 [1st edition March 2006] http://oreilly.com/catalog/9780596102067 Mastering Perl by brian d foy ISBN 978-0-596-10206-7 [1st edition July 2007] http://www.oreilly.com/catalog/9780596527242 Effective Perl Programming by Joseph N. Hall, Joshua A. McAdams, brian d foy ISBN 0-321-49694-9 [2nd edition 2010] http://www.effectiveperlprogramming.com/ Task-Oriented Writing Perl Modules for CPAN by Sam Tregar ISBN 1-59059-018-X [1st edition August 2002] http://www.apress.com/book/view/159059018X The Perl Cookbook by Tom Christiansen and Nathan Torkington with foreword by Larry Wall ISBN 1-56592-243-3 [2nd edition August 2003] http://oreilly.com/catalog/9780596003135 Automating System Administration with Perl by David N. Blank-Edelman ISBN 978-0-596-00639-6 [2nd edition May 2009] http://oreilly.com/catalog/9780596006396 Real World SQL Server Administration with Perl by Linchi Shea ISBN 1-59059-097-X [1st edition July 2003] http://www.apress.com/book/view/159059097X Special Topics Regular Expressions Cookbook by Jan Goyvaerts and Steven Levithan ISBN 978-0-596-52069-4 [May 2009] http://oreilly.com/catalog/9780596520694 Programming the Perl DBI by Tim Bunce and Alligator Descartes ISBN 978-1-56592-699-8 [February 2000] http://oreilly.com/catalog/9781565926998 Perl Best Practices by Damian Conway ISBN: 978-0-596-00173-5 [1st edition July 2005] http://oreilly.com/catalog/9780596001735 Higher-Order Perl by Mark-Jason Dominus ISBN: 1-55860-701-3 [1st edition March 2005] http://hop.perl.plover.com/ Mastering Regular Expressions by Jeffrey E. F. Friedl ISBN 978-0-596-52812-6 [3rd edition August 2006] http://oreilly.com/catalog/9780596528126 Network Programming with Perl by Lincoln Stein ISBN 0-201-61571-1 [1st edition 2001] http://www.pearsonhighered.com/educator/product/Network-Programming-with-Perl/9780201615715.page Perl Template Toolkit by Darren Chamberlain, Dave Cross, and Andy Wardley ISBN 978-0-596-00476-7 [December 2003] http://oreilly.com/catalog/9780596004767 Object Oriented Perl by Damian Conway with foreword by Randal L. Schwartz ISBN 1-884777-79-1 [1st edition August 1999] http://www.manning.com/conway/ Data Munging with Perl by Dave Cross ISBN 1-930110-00-6 [1st edition 2001] http://www.manning.com/cross Mastering Perl/Tk by Steve Lidie and Nancy Walsh ISBN 978-1-56592-716-2 [1st edition January 2002] http://oreilly.com/catalog/9781565927162 Extending and Embedding Perl by Tim Jenness and Simon Cozens ISBN 1-930110-82-0 [1st edition August 2002] http://www.manning.com/jenness Pro Perl Debugging by Richard Foley with Andy Lester ISBN 1-59059-454-1 [1st edition July 2005] http://www.apress.com/book/view/1590594541 Free (as in beer) books Some of these books are available as free downloads. Higher-Order Perl: http://hop.perl.plover.com/ Writing Perl Modules for CPAN: http://www.apress.com/resource/freeebook/9781590590188 Other interesting, non-Perl books You might notice several familiar Perl concepts in this collection of ACM columns from Jon Bentley. The similarity to the title of the major Perl book (which came later) is not completely accidental: Programming Pearls by Jon Bentley ISBN 978-0-201-65788-3 [2 edition, October 1999] More Programming Pearls by Jon Bentley ISBN 0-201-11889-0 [January 1988] A note on freshness Each version of Perl comes with the documentation that was current at the time of release. This poses a problem for content such as book lists. There are probably very nice books published after this list was included in your Perl release, and you can check the latest released version at http://perldoc.perl.org/perlbook.html . Some of the books we've listed appear almost ancient in internet scale, but we've included those books because they still describe the current way of doing things. Not everything in Perl changes every day. Many of the beginner-level books, too, go over basic features and techniques that are still valid today. In general though, we try to limit this list to books published in the past five years. Get your book listed If your Perl book isn't listed and you think it should be, let us know. perl v5.14.2 2011-09-26 PERLBOOK(1)
All times are GMT -4. The time now is 09:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy