Registered Member
|
I add this line to my ~/.bashrc:
so that I can launch my program in any shell. However it doesn't work when I use the Konsole intergrated in Dolphin. What should I do? |
Manager
|
what kind of file is GMXRC is? 'cause the source command iirc executes the contents of a file. I would think you'd want to add /usr/local/gromacs/bin to your $PATH so you could execute it when desired
|
Registered Member
|
This is the contain of GMXRC
I have added it to my .bashrc and it works. I wonder what is the different between them? PS: I kinda feel that the forum should have a hide button, so that the long script won't occupy much space. |
Manager
|
the code tags limits the amount of text displayed, at some point text will longer be displayed and a scroll bar will appear |
Registered Member
|
It does appear the scroll bar, but it still seems to occupy so much space.
By the way, do you know what is the different between adding the path to $PATH and executing it? |
Manager
|
Guessing the amount of lines displayed using code tags was either the sw's default or it was considered a good compromise between to much and too little by the original admins. An alternative is to post the text on something like pastebin.com but then the reader must go there
not sure about your 2nd question, $PATH is a variable so you don't execute it per se |
Registered Member
|
It doesn't work again. Do you have any idea?
|
Administrator
|
Can you please confirm that the shell being launched by the Dolphin embedded terminal is bash?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Yeah, I can confirm that. Any command I type in like sudo apt-get install always works.
|
Administrator
|
Please post the output of the following command:
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
In Konsole:
In Yakuake:
In terminal of Dolphin:
|
Administrator
|
Please add a statement such as the following below into ~/.bashrc and see if it gets printed out when you open a terminal.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Yes, it do appear "test" when I open every shell, including the one in Dolphin.
After I type in the ps aux command, it works again. I don't know what happened. But now, when I type "which mdrun", the output is:
with double slashes. I know that this is OK for the OS, but maybe your command makes the path like this. |
Registered Member
|
It stop working again, however the "test" word still appears on the Dolphin's one, indicates that ~/.bashrc is still good. It only works back if I use
|
Administrator
|
That is extremely odd behaviour. Please compare the output of "which mdrun" and "echo $PATH" both before and after running "ps aux".
Also, when it fails, what is the output given?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell