CGI question: Popup boxes

Joel Hammer Joel
Mon May 17 11:44:43 PDT 2004


Using CGI scripts on the server, written in bash, is there a way to tell the
browser to open a new window to receive output? 

For example, the script below:

#!/bin/sh
echo -e "content-type: text/html"
echo
echo
echo "<html>"
echo "<body>"
echo '<font color="blue" size="4">'
echo "<p>"
/usr/X11R6/bin/identify -verbose out1.jpg | sed -n "/comments/{:loop;n;s/$/<br>/p;bloop}"
echo "<font>"
echo "</body>"
echo "</html>"         

adds another window in the windows history. The user has to hit the back
button to get back to the original window. It would be nice to avoid this.

Any insights appreciated,

Thanks,
Joel
 



More information about the Linux-users mailing list