Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-13-2011, 05:30 PM   #1
LQ Newbie
Registered: May 2011
Posts: 2

Rep: Reputation: 0
problem with ln and rlogin ...

Our simulations generate some big files, I want to save them under /scratch and then ln –s /scratch/$USER/XXX1234/filename to user’s project work area.

If user runs the ln command after rlogin or rsh to different machine, then he can’t see the link from his local machine.

How can I add machine information into the ln command, so user can always access the file no matter he rlogin which machine.

We are running CentOSv5

Last edited by Smashfactor; 05-13-2011 at 05:31 PM.
Old 05-14-2011, 10:40 AM   #2
Registered: Oct 2009
Location: MI
Distribution: Arch 2.6.35
Posts: 107

Rep: Reputation: 1
Have you tried using rcp or scp? If not man these programs to see functions and modifiers.

If this is for a corporate environment, I suggest you use scp. These functions are similar to the copy command, but apply to copying files from a host to a remote, or a remote to a host. One is secure the other is not, scp and rcp, respectively.

I am assuming that these files or directories have not been broadcast to your remote machines. If this is the case you may want to create a script that updates all of the files on each machine when an update on the file is made.
Old 05-14-2011, 10:59 AM   #3
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

If I am getting it correctly the scenario is like as follows:

1. You have machine that runs some software which generates big log files and you are saving it under /scratch
2. You want the users from other machines to access these log files via symbolic link pointing to the original log files.

As far as I aware there is no option to add machine information in ln command. What you can do to achieve what you are trying to do is:

1. Configure /scratch/logs as a NFS share.
2. Configure other Linux system to mount this NFS share via automounter (autofs)
3. Update .bash_profile to create a link for users to these files in their home directory pointing to NFS share mounted by autofs.

Anyways I feel that using it directly via NFS is a better option rather than using a symbolic link.

I hope this helps.
Old 05-23-2011, 02:58 PM   #4
LQ Newbie
Registered: May 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks to all. I went with setting up a NFS mount and cp. Everyone that needs to can now access the data.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rlogin bhargava_mattur Linux - Software 1 02-01-2008 08:36 AM
LTSP rlogin and rsh problem okkadu Linux - Server 2 05-16-2007 10:24 AM
PROBLEM IN 'rlogin" rajaniyer123 Solaris / OpenSolaris 6 03-26-2006 09:10 PM
Rlogin Problem SOS Please tungaw2001 Linux - Networking 0 10-23-2003 06:11 AM
rlogin problem Pakorn Linux - Networking 0 12-26-2001 04:21 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 PM.

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