Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ 1 2 [3] 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Manpages Issue, Can't execute the manpages.< Next Oldest | Next Newest >
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: May 04 2007,15:55 QUOTE

It justs checks if you have the KNOPPIX directory, if you don't it assumes you have a hd-install and searches different paths...

Mount the uci, copy all files to a writable directory, unmount the uci..


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
mesmero Offline





Group: Members
Posts: 7
Joined: May 2007
Posted: May 04 2007,18:28 QUOTE

Again the same result. I repeat my steps.

1. Mounted the uci (/opt/man/)
2. Copied it to /man/
3. Replaced the man.sh
4. Unmounted the uci (There is no longer an /opt/man/.)
5. Moved /man/ to /opt/. => /opt/man/
6. Deleted /man/
7. Executed "man *" in the terminal.
=> same result

Maybe i understood something wrong, or?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 04 2007,18:56 QUOTE

By using the command "man something", you are using the man executable found first during a path search. It is most likely the original man perl script.

If you want to use that specific command (man *) with WDef's script, that script must be found in your PATH before the perl version is found. There are several solutions to this, but I'd say the easiest would be to create an alias:

alias man='/path/to/man.sh'

However, it doesn't look like WDef's script accepts commandline parameters, so you may still need to use just "man" and then type in what manpage you want when you are prompted for it.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: May 04 2007,19:05 QUOTE

nvm :P (mikshaw beat me to it)

------

btw, if you wanted to edit WDef's scripts to accept command line args, you could do something like

Code Sample
if [ $# -ne 0 ]; then
 manpage=$@
else
 echo "What manual page do you want?"
 read manpage
fi
exec /opt/man/bin/man "$manpage"
Back to top
Profile PM 
mesmero Offline





Group: Members
Posts: 7
Joined: May 2007
Posted: May 05 2007,08:12 QUOTE

I give it up. Did the following things.:

1. Loaded the man.uci
2. Created an alias: alias man='/opt/man/man.sh'
3. Executed man ...
=> Again error messages:

"shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
/usr/bin/less: invalid option --i"...

Maybe the easiest solution would be to create a man page dsl file. I am not so confident, if i beginn to hack my linux. But thanks for your supply, learned again something.
Back to top
Profile PM 
16 replies since May 03 2007,10:56 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ 1 2 [3] 4 >/
reply to topic new topic new poll
Quick Reply: Manpages Issue

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code