In my server machine I am running pvserver: mpiexec -np 12 pvserver
On my local machine I could easily connect to the server machine and from File > Open I could browse files on the server but when I run Python Shell (View > Python Shell) I don’t know how to access the remote files:
os.getcwd() # This returns the path in the local machine not in the remote server.
How can I access remote server files from within Python Shell in the local machine?
Thank you for the info.
Is there a way to create an empty file on the server when browsing the remote server from the local machine? A little bit of context —
I am trying to postprocess an OpenFOAM simulation case. In general to open OpenFOAM case I have to create manually an empty file with .foam extension, e.g: mysimulation.foam in order to open it in Paraview. So I wonder how can I create such a file in the remote server from the local machine?
I don’t recommend doing any of this, however. You’re probably voiding the parallel-processing capabilities from your mpiexec call. Why must you access the files from the python shell instead of the typical way?
And if you have access to the server, why not do your file manipulation through some other means (ssh-ing through a local terminal)?
I think it is a tedious task to connect to a server using ssh …etc just to create an empty file to enable Paraview to open the simulation case from the local machine. Your suggestion of using mapped drives may works fine but in my case it not always possible to move my simulation to a mapped drive or share it on network.