call a popup message from the shell script

Hi ,
this is my first querry in this forum and I am new bee to the shell scripting..Please have a glance on my query and give ur valuable suggestions .
I have a crown job which performs one function,If the job has done successfully we need to send message to some group as "SUCCESSFUL" or else we need to send the failure message to that group.In the mean time I need to display a pop up message in some particular pages like http://localhost/cgi-bin/ela.cgi.....Please tell me how do we call a JS popup message from the shell scripts...

Thanks and Regards,
Ela.

sdm -t $mail_list -s "Success "`basename $0` -m "$1 /tmp/int002_$$"
if [ "$success250" -eq 1 ]
then
sdm -t $mail_list -s "Success "`basename $0` -m "$1 /tmp/int002_$$"
else
sdm -t $mail_list -s "FAILURE "`basename $0` -m "$1 /tmp/int002_$$"