Rendering on server

I am using a command line to do my animation rendering on server, but I have some probs,

the blender file is unable to find the HDRi directory, which resulted in a hardware shade state.
Are there any ways to solve this problem? (e.g. scripts or anything?)

how do i set the directory output on where I want my animation frames to be on?

The blender will not show the GUI when I’m doing rendering via command line, so it’s quite a challenge. (I can only see programming text and a black screen…lol)

Is the image packed? Could the image path be relative, sending the render node to the wrong address?

Nope, it’s a HDR extension image file, it’s not packed, I’ve uploaded to the server as well.
I am waiting for the render to be completed to see the results.