% pdflatex --shell-escape helloworld.tex
\documentclass{article}
\begin{document}
\section{Execute shell script}
\input{|"./helloworld.sh"}
\section{Execute perl script}
\input{|"./helloworld.pl"}
\end{document}
