Hello all,
I have done a post install script that install various packages.. For example I have:
What I want to know is how can have create a log file to see id there was any error/warning messages that occurred whilst the script was ran?
Could anyone help.
I'll read any documentation you have to offer.
Thank you
I have done a post install script that install various packages.. For example I have:
Code:
echo "# Updating The Ports Collection"
portsnap fetch extract
rehash
echo "# Enable PKGNG as new package format"
echo 'WITH_PKGNG=yes' >> /etc/make.conf
echo "# convert your /var/db/pkg database to the new pkg format"
pkg2ng
echo "# Install portmaster management tool."
make -C /usr/ports/ports-mgmt/portmaster BATCH=yes OPTIONS_FILE_SET="BASH ZSH" install clean
echo "# Check for outdated port"
portmaster -L
What I want to know is how can have create a log file to see id there was any error/warning messages that occurred whilst the script was ran?
Could anyone help.
I'll read any documentation you have to offer.
Thank you