JBOSS AUTO RESTART SCRIPT
set –xv
Shell script with Debug command inside:
Add set –xv inside the shell script now to debug the output as shown below.
$ cat filesize.sh #!/bin/bash set -xv for filesize in $(ls -l . | grep “^-” | awk ‘{print $5}’) do let totalsize=$totalsize+$filesize done echo “Total file […]
Recent Comments