From: Kern S. <ke...@si...> - 2006-02-24 21:49:21
|
On Friday 24 February 2006 20:55, Karl Hakimian wrote: > On Fri, Feb 24, 2006 at 04:24:03PM +0100, Kern Sibbald wrote: > > It seems to be working for me, but for support reasons, it would be good > > to have a complete list of the Perl modules that need to be installed. > > use Getopt::Std; > use DBI; > use Term::ReadKey; > use Term::ReadLine; > use Fcntl ':mode'; > use Time::ParseDate; > use Date::Format; > use Text::ParseWords; > > And Term::ReadLine::Gnu is highly recommended. > > I will add something to the docs. > > > I'd suggest that you try whatever the user enters on a cd command. > > I don't want to lock it to that, since the user may want to do something > like > > recover -i `pwd` and them move around from there. Networker's recover > does start in your current directory. > > > Not at all serious, but someone is going to mention it someday ... > > Yep. I did find a query that will find the top (sort of), but it is > pretty slow. I will have to do some more thinking about this. Perhaps you don't need to find the top. In the case that / is not found, then allow the user to enter "cd /home/kern/bacula" and see if it exists. If you do this only when no -i option and no / is found, then it should be upward compatible with what you have now. |