Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm doing calculation on a cluster.
I order to analyze data, I wish to open output from my local machine.
For example, I'd need to do
rasmol out.xyz (out.xyz being in the cluster)
Does someone has already done such thing?
Thanks in advance,
uhmm...is "rasmol" a program that do the analyses on data in the remote file "out.xyz" ?
If it is, "rasmol" is a local program on your machine ? If it is, then the only remote is the data file, right ?
if it is then you have a couple of options:
1) transfer the data file "out.xyz" from remote machine to a local directory on your machine, using ftp or scp, smbclient, etc.
2) access the remote file on a networked folder using NFS or CIFS. This could impact on the network performance depending how the file is accessed by "rasmol" - Just one read on all file is fine; it won't hurt the network performance - otherwise, several small random access will.
You could provide more info for a more precise feedback.
Thanks for your answer.
Yes, "rasmol" is a local program on my machine, and so the only remote is the data file.
In fact. rasmol display molecule from a coordinate file *.xyz.
I thought about get back data and open them locally, but I imaged about an other possibility like
rasmol "datafile in this machine".
Actually, ssh does that but one can not use local program to open the remote file. The program needed must be installed in the remote host.
I see.
you can at least, simplify the remote access. I suppose "resmol" it is a program with a graphical interface running on a *nix like machine as your local computer.
Than you can not open an interactive shell on the cluster, but a "run just this command there". I mean:
you can even create a simple alias (in fact a function if you use bash) to do that and passing the file name as argument:
Code:
function rrasmol () {
if [ "$1" = "" ]; then
echo "Error: Argument a file name on remote cluster."
return
fi
ssh -X your-user-name-on-cluster@cluster-name-or-ip "rasmol ${1}"
}
put this in your .alias file, source it (. .alias), and just do:
rrasmol out.xyz
If the extension of data file is constant you can even hardcode it in the alias ("rasmol ${1}.xyz") and just call "rrasmol out".
In fact rasmol dos not exist in the remote machine. So basically, I would need to open a remote file with a local program.
If it's not possible, I cat write a function which get the data file and open it locally.
Thanks for your help,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.