Problem using the .x command


Hope I’m in the right place.
I’m using version 5.34.34 on my mac and
according to the user guide, .x should load and execute the script, but I always get the error message that the script is not in the macro.

My question is, say I have a script(file.C) on my Desktop directory, how do I execute it in my root session step by step ? How do a save a script in the macro ?

Thanks a lot

  1. open a Terminal window
  2. at the shell prompt type “cd ~/Desktop”
  3. again at the shell prompt type “root” (assuming it is properly installed on your PC)
  4. root should start and you get the root prompt
  5. at the root prompt type “.x file.C”

also this can help: … Primer.pdf