But this is not working. The $OUT variable is set to 1 after execution.
ExecWait '"osql.exe" -S SERVER -U USER
-P PASSWORD -n -i validate_osql.sql > validateOSQL.dat -b' $OUT
I have copied the exact command to a cmd window and it works fine. Also executing sqlplus commands works perfectly too.
Any ideas?