定义链接到外部服务器上的目录的全局变量

时间:2014-05-22 20:48:17

标签: bash

我试图在特定的软件程序中使用一组例程,但是例程需要特定版本的软件才能有效运行(我的系统上的版本比所需的版本旧)。我可以通过SSH连接到一个拥有更新版本的外部服务器。但是,我不知道如何将外部服务器上当前软件的位置附加到我的系统上可能存在的全局变量。有可能吗?

运行例程的bash脚本的形式是:

#!/bin/bash

# This script sets up the  IDL_PATH and IDL_STARTUP for gbtidl
# It then invokes idl via this path - be sure and edit this to
# reflect your local IDL installation.
LOCAL_IDL=/usr/local/bin/idl

# set the below env variable to the location of this installation 
export GBT_IDL_DIR=/home/rloughnane/gbtidl

我想编辑LOCAL_IDL变量名,以便它可以指向位于外部服务器上的文件。

0 个答案:

没有答案