LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem with ln and rlogin ... (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-ln-and-rlogin-880668/)

Smashfactor 05-13-2011 04:30 PM

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

smturner1 05-14-2011 09:40 AM

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.

T3RM1NVT0R 05-14-2011 09:59 AM

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

Smashfactor 05-23-2011 01:58 PM

Thanks to all. I went with setting up a NFS mount and cp. Everyone that needs to can now access the data.


All times are GMT -5. The time now is 03:22 AM.