background rendering problem

Dear all,

i try to run blender on the linux shell. the command is

blender -b -P myscript myscene.blend

after the start, the following error occurrs (related to the python script ‘myscript’):

ValueError: object ‘CAM’ not found

i checked the blend file and there the object is defined as ‘CAM’. when i run the python script in the blender gui, it works perfectly. any suggestions?