Hi, in order to have esync run by cron I have added a --nospinner option, turning off the remaining index update spinner. Here is the diff: --- esync.orig 2004-07-14 15:24:28.035572645 +0200 +++ esync 2004-07-14 16:45:21.222994489 +0200 @@ -28,6 +28,7 @@ sys.path.append("/tmp") eoptions = "" +eupdatedb_extra_options = "" showtitles = True verbose = False @@ -47,12 +48,15 @@ print "" print darkgreen(" --verbose") + ", " + darkgreen("-v") print " Verbose output" + print "" + print darkgreen(" --nospinner") + print " Don't display the remaining index count" sys.exit(0) try: - opts = getopt(sys.argv[1:], "hwnv", ["help", "webrsync", "nocolor", "verbose"]) + opts = getopt(sys.argv[1:], "hwnv", ["help", "webrsync", "nocolor", "verbose", "nospinner"]) except GetoptError, error: print red(" * Error:"), error, "(see", darkgreen("--help"), "for all options)" print @@ -71,6 +75,9 @@ showtitles = False elif arg in ("-v", "--verbose"): verbose = True + elif arg in ("--nospinner"): + eupdatedb_extra_options = "-q" + def emsg(msg): global showtitles @@ -117,7 +124,7 @@ emsg("Doing 'eupdatedb' now") print "" -if os.system("/usr/sbin/eupdatedb " + eoptions) != 0: +if os.system("/usr/sbin/eupdatedb " + eoptions + " " + eupdatedb_extra_options) != 0: print "" print red(" * Error:"), "eupdatedb failed" sys.exit(1)
Created attachment 35398 [details, diff] patch for --nospinner
Please send it to the esearch author.
david seems to be alive again :)
The patch is included now (back from 7 week-holidays). It will be released with esearch-0.7. Thanks, David
esearch 0.7 in CVS