Hi André, Could you also include the C code you're using to launch this script ? It doesn't seem obvious to me. Thanks,
Aris mumu a écrit : > Hello > > I m using the following script to execute commands on a remote server > http://dev.libssh.org/browser/examples/exec.c > > my probléme is that when i wan't to execute this script > > TMP=/tmp/onstat$$ > SOFI_SPE=0 > LIAI_SOFI=0 > WALK=0 > INFORMIX=0 > > INFORMIXDIR=/informix > export INFORMIXDIR > > PATH=$PATH:$INFORMIXDIR/bin > export PATH > > echo "[PROCESS WALKIMAGE]" > > ps -ed|grep lt-inter > $TMP > if [ -s "$TMP" ] ; then echo "lt-inter=OK" > else echo "lt-inter=NOK" > WALK=2 > fi > > ps -ed|grep pltauth > $TMP > if [ -s "$TMP" ] ; then echo "pltauth=OK" > else echo "pltauth=NOK" > WALK=2 > fi > > > ps -ed|grep pltbatch > $TMP > if [ -s "$TMP" ] ; then echo "pltbatch=OK" > else echo "pltbatch=NOK" > WALK=2 > fi > > data are truncated , i see only the result from the last command > pltbatch=OK with some letters > > pltbatch=OK > KIMAGE > > how can i get the good result, > note that i m a newbie, so a sample script is welcomed > this has been bothering me the whole day, so any answers is welcomed > > thanks in advanced > > André
