Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, In perl script we can debug script--- command perl -w file.pl So any one have idea for debugging command for shell script ? Thank you...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Location
    Riyadh Saudi-Arabia
    Posts
    32

    Question How to debugg shell script

    Hi,

    In perl script we can debug script--- command perl -w file.pl
    So any one have idea for debugging command for shell script ?



    Thank you

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Exclamation

    I think you need to use set -x
    check here
    How to debug a Shell Script under Linux or UNIX
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...