how to get the total timeto ccomplete script execution
hi
i want to know if there is a command by which i can see how much time it takes for a complete execution of script of program. also is there any way for line by line debugging of shell script i.e. to execute one line at a time. |
there is a command time to do that:
time <your command> (see man page of bash) |
is there a way to debug a single line at a time i know the -xv way
|
Just set/unset xv per line eg
Code:
set -xv; a=(a "b 2" c); set +xv Code:
# just time |
http://www.cyberciti.biz/tips/debugg...ll-script.html
I found this, but quite old: http://archive09.linux.com/feature/153383 or http://bashdb.sourceforge.net/bashdb.html |
thanks chris and pan
|
All times are GMT -5. The time now is 04:57 AM. |