How to display information of the script while its running? | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

How to display information of the script while its running?

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-08-2013
Rashid Khan Rashid Khan is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 27 May 2013, 5:29 AM EDT
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
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  
Old 03-08-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 22 August 2014, 6:04 PM EDT
Location: Saskatchewan
Posts: 19,236
Thanks: 773
Thanked 3,224 Times in 3,022 Posts
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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



All times are GMT -4. The time now is 07:35 PM.