Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Locate with remote service

Locate with remote service
Thread Tools
Mac Enthusiast
Join Date: Apr 2001
Location: GR, MI
Status: Offline
Reply With Quote
Jan 11, 2003, 12:42 PM
 
I just read the MacAddict tip to use Locate to find files. But the tip is for the Local drive. How can I use this with a remote server I rsh or Telnet into. I work with an AIX Scitex Ripro server and they untilities are all OS9 and I'm trying to move to X. Being able to use Locate with a ASS shell would be really nice. Any ideas. Thanks
"This is fun, right?"
     
Dedicated MacNNer
Join Date: Jul 2001
Location: NC
Status: Offline
Reply With Quote
Jan 11, 2003, 02:18 PM
 
&nbsp;&nbsp;&nbsp;locate is a command line tool and can only be used on a remote machine if it's installed there. (and the database has been updated) If you have the option to install software on the remote machine, even in your home directory, on the remote machine, ftp to ftp://ftp.gnu.org, cd to gnu/findutils, download the findutils-4.1.tar.gz package, compile it and install it. Run sudo <PREFIX>/libexec/locate.updatedb and then <PREFIX>/bin/locate should do what you want.
Gary
A computer scientist is someone who, when told to "Go to Hell", sees the
"go to", rather than the destination, as harmful.
     
Junior Member
Join Date: Dec 1999
Status: Offline
Reply With Quote
Jan 11, 2003, 09:32 PM
 
Originally posted by Gary Kerbaugh:
&nbsp;&nbsp;&nbsp;locate is a command line tool and can only be used on a remote machine if it's installed there. (and the database has been updated) If you have the option to install software on the remote machine, even in your home directory, on the remote machine, ftp to ftp://ftp.gnu.org, cd to gnu/findutils, download the findutils-4.1.tar.gz package, compile it and install it. Run sudo <PREFIX>/libexec/locate.updatedb and then <PREFIX>/bin/locate should do what you want.
Hmm,

Couldn't you also NFSmount the remote server and then run locate.updatedb, with the proper flags to force it to scan the mounted server?

Of course, this requires both that you get assistance/permission from the server's admin to setup NFS, and that you are the admin on the client, or at least have nfs mounting permisisons.

Maybe you could even SMB or Appleshare mount the server... I don't see any reason why not.

Ben
     
Mac Enthusiast
Join Date: Apr 2001
Location: GR, MI
Status: Offline
Reply With Quote
Jan 12, 2003, 09:19 AM
 
I am the admin. I can mount the volume with Appleshare. But we prefer to use TCP/IP becuase it's faster. However, its an AIX based server from IBM that is running Creo software. We really don't like to mess with it buy adding software. It's a very critical server. Downtime it not an option or dataloss. Downtime on the server means downtime on the Printing Presses at $500 an hour. Maybe there is another solution. We use an app called FileTrak from Creo on OS9 to access, I believe the Legato Database and Archiver. What I need to do is have a fast way to scan for files and directories on the RAIDed logical volumes there are 20 at 16GIG each from OS X.
"This is fun, right?"
     
Dedicated MacNNer
Join Date: Jul 2001
Location: NC
Status: Offline
Reply With Quote
Jan 12, 2003, 10:09 AM
 
Originally posted by zeller:
Couldn't you also NFSmount the remote server and then run locate.updatedb, with the proper flags to force it to scan the mounted server?

Of course, this requires both that you get assistance/permission from the server's admin to setup NFS, and that you are the admin on the client, or at least have nfs mounting permisisons.
Hi Ben,
&nbsp;&nbsp;&nbsp;I agree with you; I was responding to the specification of rsh or telnet. It would require that the server export its drive (at least for NFS) but that might be less of a risk than allowing telnet. Yours is an excellent suggestion.
Gary
A computer scientist is someone who, when told to "Go to Hell", sees the
"go to", rather than the destination, as harmful.
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:05 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2