5 cwd_old="$(ls -i -d "$dirnm" | cut -d ' ' -f 1)"
8 if [ "$pid_exe" = "" ]; then
10 cd "$dirnm" 2>/dev/null
15 kill -0 $pid_exe >/dev/null 2>&1
17 echo "Process not present"
20 for tloop in 1 2 3 4 5; do
21 cwd_cur="$(ls -i -d "$dirnm" 2>/dev/null | cut -d ' ' -f 1)"
22 if [ "$cwd_cur" ]; then
27 if [ $tloop -eq 5 ]; then
28 echo "Unavailable current working directory"
31 if [ "$cwd_cur" != "$cwd_old" ]; then