Re: Help needed with gnu version of updatedb



On Thu, 19 Jul 2007, in the Usenet newsgroup comp.os.linux.setup, in article
<1184808404.923331.8540@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, voipfc wrote:

I am trying to use the gnu update program with the following command:

updatedb --localpaths='/home/backups_01' --output=$HOME/.locate/
locate.db

Assuming that is actually one line with the last option reading
'--output=$HOME/.locate/locate.db' and whatever $HOME expands to
in the environment you are running does contain the .locate
directory - OK

Nothing happens at all.

How are you running the command? Is this from a command-line - if so,
by who, and exactly what happens - does the prompt return immediately
with no message anywhere? Is this a cron job? If so, is $HOME
defined in the cron environment (run a cron job that runs the command
'set > /tmp/cron.environment' to see what that is)? Is there any log
output (perhaps /var/log/cron)?

Have I got the options write.

Assuming the caveats noted above - it looks OK.

This not the slocate version at slocate.trakker.ca.

So, exactly which is it? Does 'updatedb --version' tell? (There are
several versions - some of which have been "improved" which could cause
problems. The only GNU version I have immediate access to is version 4.1
from a long time ago, and that is a fairly simple Bourne shell script.)

Old guy
.



Relevant Pages

  • rlogin via expect mysteriously aborts when run from cron
    ... I'm not sure whether this is a problem related to shell, ... I have an application which, at some point, executes a zsh script. ... When investigating the output which was sent to me from the cron job ... I had one case where even a command ...
    (comp.lang.tcl)
  • Re: Running ssh cmd on cron -- debug2: channel 0: read failed
    ... It works fine if I manually run it on command line but it ... > does not run right if I run it as a cron job. ... You don't happen to have 2 copies of ssh installed in separate paths, ... Good judgement comes with experience. ...
    (SSH)
  • Re: cron jobs + (some?) output
    ... > I run mplayer from a script in the early morning as a cron job. ... it gets sent to root! ... If you want to stop this, you can redirect the output of the mplayer to ... This command will create a new log every day, ...
    (Debian-User)
  • cron job times out
    ... And everything works nice from command line. ... response = self._open ... return self.do_open(httplib.HTTPConnection, req) ... cron job triggers, it times out. ...
    (comp.lang.python)
  • Re: Check process running without using ps
    ... find proc name with cmdline arg. ... Be aware that the grep command itself *will* match. ... The two systems I have immediate access to, ... Solaris and Linux, both have /proc, with directories for each ...
    (comp.unix.programmer)