I did exactly what bartus11 suggested, specifying the full path for the local install, however when I ran a simulation the program didn't run from the local install but from the main one.
However, in gromacs I need two things: the executable tools and the directory that contains all the forcefield files. These two are in different directories in the local install. I think I should add two lines in the profile; one which will point to all the executables and another one which will point to the forcefield files and so on.
I will post an update when I try it.
[Or I could also try this:
4.11. Getting access to GROMACS after installation
GROMACS installs the script GMXRC in the bin subdirectory of the installation directory (e.g. /usr/local/gromacs/bin/GMXRC), which you should source from your shell:
$ source your-installation-prefix-here/bin/GMXRC
It will detect what kind of shell you are running and set up your environment for using GROMACS. You may wish to arrange for your login scripts to do this automatically; please search the web for instructions on how to do this for your shell.
Many of the GROMACS programs rely on data installed in our share/gromacs directory. By default, the programs will use the environment variables set in the GMXRC script, and if this is not available they will try to guess the path based on their own location. This usually works well unless you change the names of directories inside the install tree. If you still need to do that, you might want to recompile with the new install location properly set, or edit the GMXRC script.
(I'm only writing this down just in case anyone else is having the same problem)]
GROMACS installs the script GMXRC in the bin subdirectory of the installation directory (e.g. /usr/local/gromacs/bin/GMXRC), which you should source from your shell:
yes, definitely. You may also post the content of this GMXRC script so that we can suggest some course of action.
Let me address some problem you seem to have in understanding how UNIX works:
To execute an executable file you specify the full path to it:
Note, that for executables there is no "default" path, which is quite unlike in Windows: in DOS or the Windows shell if you happen to be in directory \some\where and you type "program" without specifying anything the file \some\where\program.exe would be executed. Not so in any UNIX. In UNIX you would have to write ./program ("." in this case means "current directory") to force the execution of a program in the current directory.
Because this is cumbersome (and - like you - nobody wants to type that much every time) there are few devices to cut short the effort: the first one is the PATH variable. This is a list of directories which are searched for the executable if no path is specified. The directories to search are separated by ":". You can display the current value of your PATH variable by entering the following, with a similar result as shown here:
This list of pathes are searched from the beginning. If i type prog and there is a file /etc/prog and another /sbin/prog the first one would be executed, because "/etc" comes before "/sbin" in my PATH. To make sure your local program becomes executed instead of the main one, add the path to it at the beginning of the PATH variable, like this:
A second device for shortening the typing i already used above: "." is always the current directory and if you are in the right directory you simply type "./prog" to execute an executable named "prog" which is there. It is even possible to add "." to the PATH, which makes UNIX behave like Windows in this regard. You should NOT DO THIS, though, because it poses security hazards. I just mentioned it because most users come up with that, thinking that it would be a great idea. It is not.
There are other "macros" for certain directories too: ".." is the directory above the current one. if you are in "/some/where", ".." would point to "/some". "~" is always set to your home directory (usually "/home/<username>"). "~<username>" points to the home directory of the user named "username". You can use these symbols in your PATH and in any other environment variables too.
Note that PATH is modifiable like any other environment variable. Execute
to set VARIABLE to "some value". Always use double quotes and do NOT surround the equals sign with spaces. To display the current value of VARIABLE do (notice the dollar sign):
As UNIX is case sensitive, do not confuse upper- and lowercase:
Dear Experts,
I have found this script on internet that can be used to execute local script remotely
#!/bin/bash
# runremote.sh
# usage: runremote.sh localscript remoteuser remotehost arg1 arg2 ...
realscript=$1
user=$2
host=$3
shift 3
# escape the arguments
declare -a args
... (4 Replies)
Im building a local yum server to update a handful of RHEL6 and RHEL7 servers, I'll be sharing out these updates via a local http webserver but I have a few questions.
1) it seem I am only able to download RHEL6 patches from a RHEL6 box and 7 patches from a 7 box which would mean I would have to... (1 Reply)
Hello,
I know for SSH'ing and running a local script is...
ssh -t user@servername < /path/to/localscript.sh
and with SSH'ing and SUDO'ing is...
ssh -t user@servername "sudo -u username ls -l /home/username"
My inquiry is how can I combine both, by SSH'ing and SUDO'ing but running... (4 Replies)
Hello,
I want to install a .deb package which I already have on the hard drive. I have tried to edit /etc/apt/sources.list to point to the file but apt-get says it can't find it. The package is not in the Debian repository.
Debian 6.0 (3 Replies)
When i use ssh command to execute local script on remote server , I am unable to do it.
Please let me know how this can be done in ksh
req=abc
dte=ghd
ssh username@hostname "$req $dte" < run_script.sh (2 Replies)
How can I install a new version of jre on a local zone? Since /usr is not writable in a local zone)? pls advise
solaris10 sparc
---------- Post updated at 03:51 PM ---------- Previous update was at 02:34 PM ----------
jdk6 i mean (6 Replies)
Is there a way to mount a filesystem from the global zone to the local zone without rebooting the local zone?
I'm using a lofs filesystem..
any help is appreciated! thanks.. (4 Replies)
If I run this
# ssh remote-server 'du -sk /usr/platform/`uname -i`/'
174 /usr/platform/SUNW,Sun-Fire-V245
I get my output just fine,
However, if i try to do the same but populate a local variable within my script called for example 'result'
#!/bin/ksh
result=`ssh remote-server... (3 Replies)
hello all,
anyone can point to some good basic tutorial/howto (independent, not specific to any distro) about how to install linux over LAN from one PC with working linux distro to another PC without cdrom and floppy-just over LAN?
Thanks in advance ! (2 Replies)
Hello UNIX gurus, I need to install the mysql odbc connector with unixODBC on my AIX 5.3 machine. I have a mySQL database running on another server (Ubuntu 7.04). The SQL database works fine. The problem I am having is when trying to run ./configure for mysql-connector-odbc it seems to be looking... (1 Reply)