trimhistory - directory not found
list Rolf Schrittenlocher
Hi, I want to use trimhistory (Solaris 9, hobbit-4.2.0) and have an error: trimhistory --cutoff=`/opt/sfw/bin/gdate +%s --date="1 Jan 2007"` 2008-11-26 09:19:49 Cannot cd to history directory: No such file or directory history (hist, histlogs, history.log) are in directory "data" which is a link to the raid: ~hobbit./hobbit-4.2.0/data -> /raid0/log/.../hobbit/data. May this cause problems? Any ideas where to make this setting? Thanks! Rolf -- Mit freundlichen Gruessen Rolf Schrittenlocher Bitte beachten Sie die neue Emailadresse! HeBIS-IT, Senckenberganlage 31, 60054 Frankfurt Tel: (XX) XX - XXX XXXXX Fax: (XX) XX XXX XXXXX LBS: user-1e39a1813094@xymon.invalid Persoenlich: user-ea9d95bffcf0@xymon.invalid
list Henrik Størner
▸
In <user-c9f4ad6ba2a5@xymon.invalid> Rolf Schrittenlocher <user-ea9d95bffcf0@xymon.invalid> writes:
I want to use trimhistory (Solaris 9, hobbit-4.2.0) and have an error: trimhistory --cutoff=`/opt/sfw/bin/gdate +%s --date="1 Jan 2007"` 2008-11-26 09:19:49 Cannot cd to history directory: No such file or directory
Run it via "bbcmd" to make sure it has all the Hobbit environment setup. I.e. bbcmd trimhistory --cutoff=..... Regards, Henrik
list Rolf Schrittenlocher
Dear Henrik, thank you! bbcmd trimhistory --cutoff=`/opt/sfw/bin/gdate +%s --date="1 Jan 2007"` 2008-12-02 10:01:02 Using default environment file /pica/ffm/com/sys/hobbit/client/etc/hobbitclient.cfg 2008-12-02 10:01:02 Cannot cd to history directory: No such file or directory That didn't work. But I found in the sources that it is $BBHIST what is missing. So . ../etc/hobbitserver.cfg did the job. Don't know why the hobbit user didn't read this file. kind regards Rolf
▸
In <user-c9f4ad6ba2a5@xymon.invalid> Rolf Schrittenlocher <user-ea9d95bffcf0@xymon.invalid> writes:I want to use trimhistory (Solaris 9, hobbit-4.2.0) and have an error: trimhistory --cutoff=`/opt/sfw/bin/gdate +%s --date="1 Jan 2007"` 2008-11-26 09:19:49 Cannot cd to history directory: No such file or directoryRun it via "bbcmd" to make sure it has all the Hobbit environment setup. I.e. bbcmd trimhistory --cutoff=..... Regards, Henrik
-- Mit freundlichen Gruessen Rolf Schrittenlocher Bitte beachten Sie die neue Emailadresse! HeBIS-IT, Senckenberganlage 31, 60054 Frankfurt Tel: (XX) XX - XXX XXXXX Fax: (XX) XX XXX XXXXX LBS: user-1e39a1813094@xymon.invalid Persoenlich: user-ea9d95bffcf0@xymon.invalid