Rootssh and tcsh


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.40.04
Platform: mac and Linux
Compiler: arm64-apple-darwin20.0.0-clang

I am trying to connect to a remote server with rootssh. This server is configured to use tcsh by default. Hence with rootssh calls export, it will throw export: Command not found. Is there something I can do?


Hi,

I never test rootssh with tsch on remote node.
As workaround you can try to edit rootssh script.
Just copy it to your local directory and modify it.

There are exactly three commands where export is used - all at the end of rootssh.
Try to replace them by setenv.

Regards,
Sergey

Thanks. This did the trick

I will modify rootssh script and add --csh argument to it. Like:

rootssh --tcsh remote.node.with.tcsh

You can try new version if you want:

rootssh.txt (5.7 KB)

I don’t think your script works as the syntax for setenv is

setenv VAR value

So now it is complaining

setenv: Variable name must contain alphanumeric characters.

Thanks for testing.
Maybe this works for you:

rootssh.txt (6.0 KB)

Yup, this version works