You can use strace on a specific pid to figure out what a specific process is doing, e.g.:
strace -fp <pid>
You might see something like:
select(9, [3 5 8], [], [], {0, 999999}) = 0 (Timeout)
| #!/bin/bash | |
| # | |
| # ============================================================ | |
| # | |
| # @license This program is free software. | |
| # | |
| # @category Script for Percona Server | |
| # @project Gedow Software | |
| # @package Gedow Percona Utils | |
| # @author GedowFather http://blog.father.gedow.net/ |
| #!/bin/sh | |
| if [ -z "$1" ]; then | |
| echo "usage: ./make-rpm.sh 0.2" | |
| exit 1 | |
| fi | |
| version=$1 | |
| cur=`pwd` | |
| rm -f fluent-agent-lite.v$version.tar.gz | |
| rm -fr fluent-agent-lite |
| #!/bin/sh -- | |
| set -e | |
| echo "" | |
| echo "START POST-MERGE HOOK" | |
| echo "" | |
| HOOK_DIR=`dirname $0` #git_hooks directory | |
| PROC_DIR="$HOOK_DIR/../.." #vimproc directory |