linux - Exit codes to configure/make/make install -
in company have manually configure , install apaches. i'm working in script automatically install it.
problem couldn't find exit code configure/make/make install
found workaround check output, barely working.
there way check if commands finish successfully?
tried using exit(0), commands finish. need know if finish errors.
thanks help
you can see if previous command failed checking $?. if you're scripting configure/make/make install, you'll following (i'll use configure example):
./configure --install-prefix=/usr/local/ rc=$? if [ $rc != 0 ]; # output messages or take actions because last # command failed, exit same code. exit $rc fi
Comments
Post a Comment