Now I got the shell script working