SSH_AGENT_PID=3655; export SSH_AGENT_PID; echo Agent pid 3655; # C-shell For example, if your login shell is /bin/csh, and you invoke this script: .