|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to display information of the script while its running?
how to display the messages on screen IN PERL such as "
1. Entering while loop" if the script enters a while loop. 2. Checking FILENAME. etc... 3. Print statement is also not helpful.... Last edited by Rashid Khan; 03-08-2013 at 04:44 AM.. |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
You mean like debugging information, which prints lines as it runs code without needing print statements? Try the Perl Debugger
perl -d scriptname
It's a bit more complicated than set -x since it's an interactive debugger, but not that complicated. The s command tells it to run the next line, and you can repeat that command by holding down enter. q quits. See man perldebtut for more complete instructions. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Display problem when running a remote script | chris01010 | UNIX for Dummies Questions & Answers | 4 | 05-17-2012 05:45 AM |
| Display full command (including options) information in running | happy_lotus | UNIX for Dummies Questions & Answers | 3 | 04-18-2012 04:05 AM |
| Run a bash script, display on the screen and save all information in a file including error info | Damon sine | Shell Programming and Scripting | 1 | 10-05-2010 04:02 PM |
| display time required to complete running script | npatwardhan | Shell Programming and Scripting | 3 | 01-18-2009 07:01 PM |
| PS command does not display shell script running | hadarot | Shell Programming and Scripting | 4 | 09-15-2005 05:56 AM |
|
|