runremotely.sh 511 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
account=berlin@hd
sourcedir=/data5/dev/creator/tests/manual/fakevim/
exename=fakevim
targetdir=/tmp/run-${exename}

executable=${sourcedir}/${exename}
qtlibs=`ldd ${executable} | grep libQt | sed -e 's/^.*=> \(.*\) (.*)$/\1/'`

ssh ${account} "mkdir -p ${targetdir}"
scp ${executable} ${qtlibs} ${account}:${targetdir}
ssh ${account} "chrpath -r ${targetdir} ${targetdir}/*"
hjk's avatar
hjk committed
13
ssh -X ${account} "gdbserver localhost:5555 ${targetdir}/${exename}"
14
15
ssh ${account} "rm ${targetdir}/* ; rmdir ${targetdir}"