LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 10-15-2008, 02:12 PM   #1
aihaike
Member
 
Registered: Feb 2006
Location: Shanghai, China
Distribution: Slackware
Posts: 201

Rep: Reputation: 15
Question analyze data from remote host


Dear all,

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,

Eric.
 
Old 10-15-2008, 03:41 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
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.

Last edited by marozsas; 10-15-2008 at 03:45 PM.
 
Old 10-15-2008, 03:59 PM   #3
aihaike
Member
 
Registered: Feb 2006
Location: Shanghai, China
Distribution: Slackware
Posts: 201

Original Poster
Rep: Reputation: 15
Smile

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.

Best,

Eric.
 
Old 10-15-2008, 04:14 PM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
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:

Code:
user@localmachine$ ssh -X your-user-name-on-cluster@cluster-name-or-ip "rasmol out.xyz"
You got it ?

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".

cheers,
 
Old 10-16-2008, 04:31 AM   #5
aihaike
Member
 
Registered: Feb 2006
Location: Shanghai, China
Distribution: Slackware
Posts: 201

Original Poster
Rep: Reputation: 15
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,

Eric.
 
Old 10-18-2008, 04:47 PM   #6
aihaike
Member
 
Registered: Feb 2006
Location: Shanghai, China
Distribution: Slackware
Posts: 201

Original Poster
Rep: Reputation: 15
Thumbs up

I've just discovered the powerfull sshfs.
You can mount a remote directory via ssh by simply typing:

sshfs host: local_directory/

Best,

Eric.
 
Old 10-19-2008, 04:14 PM   #7
abolishtheun
Member
 
Registered: Mar 2008
Posts: 183

Rep: Reputation: 31
or have someone on your IT staff set up NFS.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 34 05-24-2013 09:28 AM
CUPS error: Remote host did not accept data file NoUse4ANick Linux - Networking 5 01-24-2011 04:00 PM
Remote Host hkillen Linux - Newbie 1 09-18-2006 05:46 PM
MRTG -> remote host Soulstealer Linux - Networking 3 06-27-2005 06:11 PM
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 08:48 AM


All times are GMT -5. The time now is 09:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration