Page 1 of 1

Posted: Mon Aug 04, 2008 9:01 pm
by ray.wurlod
A search of DSXchange will uncover suitable routine code.

Posted: Mon Aug 04, 2008 11:03 pm
by RAJARP
hi suresh....
your requirement could be achieved without a WFF but by using a shell script and an execute command activity.

Code: Select all

wait_time=<period u need to wait for that ready file>
time=0
while [ $time != $wait_time ]
do
if [ -f /readyfilelocation/Ready_*.csv ]
then
flag=0
echo "ready file found"
echo $flag
exit 0
break
else
time=$(($time+1))
fi
done
Now call your script from execute command activity:
command:sh
parameter:unixscriptname
trigger: conditional trigger(return value=0),to proceed furthur....

anyway double check the script before running it
regards,
rajarp

Using Wait For File Logic

Posted: Mon Aug 04, 2008 11:17 pm
by suresh.narasimha
Hi Raja and Ray

Thanks very much for your answers.

I'll try and implement the logic.

Re: Using Wait For File Logic

Posted: Tue Aug 05, 2008 5:54 pm
by aartlett
suresh.narasimha wrote:Hi Raja and Ray

Thanks very much for your answers.

I'll try and implement the logic.
Suresh,
I'd add a sleep command at the
"else
time=$(($time+1))
fi
"
and increment time by the sleep size, otherwise this is going to spin your processor out of control.