Hi all
i want to write a ksh file that can be able to get a path directory and execute an other bach file
my scripte semm like that
Code:
#!/bin/ksh
ENV_ID=$1
WORK_DIR=${PWD%/bin}
#definition de la variable d'environement de la derniere version ECX
SUBDIR=`ls $WORK_DIR/| grep "ecx-batch-1" | tail -1`
SCRIPT_DIR="$WORK_DIR/$SUBDIR"
#echo : that put the right path OK !!!!
echo $SCRIPT_DIR
. `$SCRIPT_DIR`/bin/target.sh