Regarding calling a bash shell from jsp in linux environment

Dear Friends,
During the development of jsp on linux I have
to execute some bash shell from jsp, which executes
some system command and returns the status. I am
facing problem with this. IN windows environment
calling notepad and opening it through the jsp is
possible. Please give me your valuable suggestion