Hello all I have build an CI server by jenkins. I want to execute remote bash shell on testing server (Ubuntu server 12.04 LTTS) by this sample script through ssh plugin
#!/bin/bash
cd "$(dirname "$0")"
echo "[INFO] Stopping service mix service"
cd /home/setup/Development/apache-servicemix-4.5.0/bin
./stop
echo "[INFO] Wait few secs for stopping service"
sleep 5
echo "[INFO] Start service"
./start
sleep 1
exit;
But the servicemix can not start, if I do manually ssh login from bash shell, then execute this script (stored in test server) it can work well. Any Idea for this. Thank you
date > tmpfile.txtat the beginning of your script and check iftmpfile.txtwas created. If not, your setup for running the script is broken. - Michael Schlottke-Lakemper