My Oracle Support Banner

Running an script fails with SyntaxError: invalid syntax (Doc ID 2102935.1)

Last updated on MAY 26, 2021

Applies to:

Oracle VM - Version 3.0.1 and later
Private Cloud Appliance - Version 1.0.1 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64


 When using a conditional or iterative statement in an ovm_shell script, e.g. a for "loop" or an "if" statement, the commands after the conditional statement fails with the following kind of exception :

 running the command outside of the for statement does succeed, so syntax doesn't appear invalid at first glance.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.