[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem while executing a script
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: problem while executing a script
- From: mumu <spamadore@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 26 Apr 2010 15:18:03 +0200
- To: libssh@xxxxxxxxxx
Hello I m using the following script to execute commands on a remote server http://dev.libssh.org/browser/examples/exec.c my problem 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é
Archive administrator: postmaster@lists.cynapses.org