Hello,
Our billing application outputs invoices in plain ascii files. Our management would like to have these converted in pdf files.
One spoolfile can contain multiple invoices. Basic layout of a spoolfile:
- Account details
- Invoice number
- Multiple lines containing items
- Summary
- Page...
I want to capture the output of several commands into a logfile. In between these commands, a value is assigned to a variable.
Example code 1:
----------
#!/bin/ksh
{
command1
command2
important_command3
exit_code=${?}
command4
} |tee ${LOGFILE}
if [ ${exit_code} -ne 0 ]
then mailx...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.