Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sharing files between SCO 5.0.5 and Current ver of Red Hat 1

Status
Not open for further replies.

ttyguy

IS-IT--Management
Jan 8, 2003
15
US
I do not know if this is going to be a problem or not but, I need to know if it is going to be possible to share files between a SCO 5.0.5 system and a system running the most current version of Redhat. Here is my scenario. I am currently running a POS system on a SCO 5.0.5 system and I need to know if it will be possible to copy certain files (not system files) over to a system running Redhat. I guess my question is will Redhat interpret the SCO files as Redhat (formatted) files.
My hope is to copy these files to the Redhat system. Once the files are on the Redhat system, I would like to connect to them via an OBDC connection to a SQL 2000 server (via a product put ot by Transoft).
If anybody has any thoughts, ideas or comments; please let me know.
Thanks,
ttyguy
[pc]
 

RedHat doesn't interpret anything. I don't now if I'm sure what you mean but if you just want to copy files then that's no problem.

You can use ftp, nfs, rcp etc. to copy the files.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
I use NFS. My linux FTP directories are actually NFS shares that are physically located on my OpenServer 5.0.6 box on the network.

This keeps a single copy of the file 'live' on both systems.
 
Thanks Hemo,

I think what you are doing answered my question. I may not have phrased it that good. You seem to be doing something similar to what I am trying to accomplish with your FTP shares on your 5.0.6 box. I need to FTP somes files from a SCO 5.0.5 box to a Red Hat system and it sounds like it will work without any problems. Are you using any special product to complete the FTP or is this a cron or command line job?

Thanks for the assistance,

ttyguy
[flip]
 
Nope. The OS mounts the NFS like it's own filesystem, natively accessing and locking files via TCP.

Assuming you have administrator rights on the SCO box:
On the SCO box, edit/create the file /etc/exports and place in it the full path of the directory to be 'shared'. Here are sample contents:

/u/pub
/usr/local/apache/html


Next shutdown and restart the NFS processes:

nfs stop
nfs start


When restarting NFS, you should see something similar to this:

Starting NFS services: exportfs mountd nfsd pcnfsd biod(x4)
Starting NLM services: statd lockd

The 'exportfs' entry shows that NFS has processed your /etc/exports list and those directories are now able to be mounted as NFS shares on a remote system.

Now, on the RedHat box, again assuming you have administrator rights:
Add a line to mount the NFS shares in both /etc/fstab and /etc/mtab. In /etc/fstab, I like to make sure I add my entries _above_ and entries kudzu may have done (just add your info above any lines that have 'kudzu' in them, if you have any)
Here's an example entry for fstab:
Code:
192.168.1.10:/u/pub /usr/ftp/pub      nfs   rsize=8192,wsize=8192,timeo=14,intr

And the same example for /etc/mtab:
Code:
192.168.1.10:/u/pub /usr/ftp/pub nfs rw,rsize=8192,wsize=8192,timeo=14,intr,addr=192.168.1.10 0 0


You see the IP address in the entries above? replace it with the IP of your SCO box. The first entry is the IP, a colon, the direcotry on the SCO box. The next entry is the directory on the linux box you want to mount this filesystem as. The path on the linux box should exist, and should be empty. If it is not empty, then you will loose access to the pre-existing files in that path while the NFS share is mounted. You will re-gain access to the pre-existing files after you unmount the NFS share. So, I am accessing the path '/u/pub' on my server at IP '192.168.1.10' and mounting it on my linux box as '/usr/ftp/pub'.

On linux:

mount /usr/ftp/pub

and you should be all set. If you plan to read/write to a file from both systems, make sure user/group permissions are set correctly on the file.

If you find this post helpful, please mark this post, thanks!
 
Thanks Hemo,

When I get thing setup, I will give it a try.

Thanks Again,

ttyguy
[morning]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top