I'm recently trying to use a Linux server to remotely run Mathematica calculations. Without administrator root, I installed the Mathematica software in my user directory at $HOME/Mathematica/
. I added the command
$HOME/Mathematica/Executables/math -pwfile "$HOME/.Mathematica/Licensing/mathpass" < $HOME/Run.txt >& log
to a script and submitted the job to the computing node. Here, Run.txt is a text file obtained by copying the contents of a Mathematica notebook. However, I found that even if I included the path to the mathpass file in the command, I still received an error message
"Mathematica 13.1.0 Kernel cannot find a valid password."
Do you have any suggestions on how to solve this issue?