I´ve written a small batchjob that should kill and start a process on a linux host. Killing the process works fine but executing the shellscript to start the job again dos not.
plink -v -pw password root@192.168.1.63 "pgrep -f jobname | xargs kill"
plink -v -pw password root@192.168.1.63 "cd /data/server && /bin/bash runsrv.sh"
So the second row shows no error but also no job is startet and I´ve no idea why.
EDIT 1: Here is the content of the runsrv.sh fil:
JBOSS_CLASSPATH=.
export JBOSS_CLASSPATH
JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=utf8 -Xms3072M -Xmx3072M -XX:MaxPermSize=512m -XX:+AggressiveOpts -XX:+DoEscapeAnalysis"
export JAVA_OPTS
nohup ../../bin/run.sh -c idx -b 192.168.1.63 > log/serverstdout.log 2>&1 &
Thanks for any hint in advance!