У меня есть скрипт bash, подобный этому:
#!/bin/sh
echo
echo ============== INSTALLATION START ==============
echo
#Copy routes
cp /test/releases/$version/trial_routes.yml test/configuration/gateway/$route_filename
if [ $? -ne 0 ];
then {echo "====> Routes copy file error!"; exit 1};
fi
echo<br>
echo ============== INSTALLATION END ================
echo INSTALLATION RESULT:: Success
echo
exit 0
======================= Конец. Я хочу вызвать это из Java и получить мое эхо в результате. Любая помощь?
#!/bin/sh
echo
echo ============== INSTALLATION START ==============
echo
#Copy routes
cp /test/releases/$version/trial_routes.yml test/configuration/gateway/$route_filename
if [ $? -ne 0 ]; then {echo "====> Routes copy file error!"; exit 1}; fi
echo<br>
echo ============== INSTALLATION END ================
echo INSTALLATION RESULT:: Success
echo
exit 0