Problem : AIX ksh 0403-057 Syntax error: `(‘ is not expected error???

Problem : AIX ksh   0403-057 Syntax error: `(‘ is not expected error???

I am running the command below  on AIX, 5.3. its the oracle exp program.  Im pretty sure the syntax is correct.

exp scott/tiger file=test.dmp tables=(lsc_account)

instead of following my command as instructed. Its refusing with this lousy excuse

0403-057 Syntax error: `(‘ is not expected error

any ideas?


 

Solution: AIX ksh   0403-057 Syntax error: `(‘ is not expected error???

You’re missing a $ symbol; The ksh syntax to assign the output of a command to a variable is:
VARIABLE=$(command)
or
VARIABLE=`command`