Most LP/CLP systems can easily be used as scripting languages:
some have it (e.g., CIAO), others can be adapted easily with some
user-level code (e.g., we have adapted the CIAO solution for SICStus
and made it freely available on ftp):
#!/usr/local/bin/lpshell
main(_) :-
write('Content-type: text/html'), nl, nl,
write('<HTML>'),
write('Hello <B>world</B>.'),
write('</HTML>'), nl.