Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 13:17
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Educational
"Man Page Reader" in "Quirky Linux 1.40" ! only script
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Sat 19 Nov 2011, 18:10    Post_subject:  "Man Page Reader" in "Quirky Linux 1.40" ! only script
Sub_title: When there is no "Man Page Viewer".
 

Arrow

Quote:

Install_MPR--sr0.sh
Code:

#!/bin/bash
#MPR = Man Pages Reader
#
# > #
echo '[Desktop Entry]' > /usr/share/applications/ManPagesReader1.desktop ;
echo 'Name=Man Pages Reader - First use' >> /usr/share/applications/ManPagesReader1.desktop ;
echo 'Comment=The way to view Man Pages' >> /usr/share/applications/ManPagesReader1.desktop ;
#Don't touch >>>
#Exec=bash -c "mkdir -p /tmp/mantmp/manpages ; echo \"\`Xdialog --stdout --fselect /usr/share/man/ 40 70\`\" >/tmp/mantmp/.manpages ; cd /tmp/mantmp/ ; curl -C - -O file://\"\`cat /tmp/mantmp/.manpages\`\" ; stat -c %n \"\`cat /tmp/mantmp/.manpages\`\" ; cut -f \`cat /tmp/mantmp/.manpages | grep -o / | grep -c /\`- -d \"/\" /tmp/mantmp/.manpages | cut -f 2 -d \"/\" | cat >/tmp/mantmp/..manpages ; sleep 0.5s ; echo \"/tmp/mantmp/\`cat /tmp/mantmp/..manpages\`\" | cat > /tmp/mantmp/.manpages ; if [ -f /tmp/mantmp/manpages/\`cat /tmp/mantmp/..manpages | sed \"s/.bz2//\" | sed \"s/.gz//\"\`.html ] ; then surfer /tmp/mantmp/manpages/\`cat /tmp/mantmp/..manpages | sed \"s/.bz2//\" | sed \"s/.gz//\"\`.html ; rm \`cat /tmp/mantmp/.manpages\` ; rm /tmp/mantmp/.manpages ; rm /tmp/mantmp/..manpages ; elif [ -f /tmp/mantmp/manpages/\`cat /tmp/mantmp/..manpages\` ] ; then surfer \`cat /tmp/mantmp/.manpages\` ; rm /tmp/mantmp/\`cat /tmp/mantmp/..manpages\` ; rm /tmp/mantmp/.manpages ; rm /tmp/mantmp/..manpages ; elif [ -f \`cat /tmp/mantmp/.manpages | sed \"s/.html//\" | sed \"s/.bz2//\" | sed \"s/.gz//\"\`.bz2 ] ; then sed -i \"s/^/bzip2 -d /\" /tmp/mantmp/.manpages ; sed -i \"s/.bz2//\" /tmp/mantmp/..manpages ; elif [ -f \`cat /tmp/mantmp/.manpages | sed \"s/.html//\" | sed \"s/.bz2//\" | sed \"s/.gz//\"\`.gz ] ; then sed -i \"s/^/gunzip -d /\" /tmp/mantmp/.manpages ; sed -i \"s/.gz//\" /tmp/mantmp/..manpages ; fi ; if [ -f /tmp/mantmp/.manpages ] ; then sed -i \"s/^/\/tmp\/mantmp\//\" /tmp/mantmp/..manpages ; cp /tmp/mantmp/..manpages /tmp/mantmp/...manpages ; sed -i \"s/\/tmp\/mantmp\//\/tmp\/mantmp\/manpages\//\" /tmp/mantmp/...manpages ; sed -i \"s/$/.html/\" /tmp/mantmp/...manpages ; sed -i \"s/$/ ;/\" /tmp/mantmp/.manpages ; bash -c \"\`cat /tmp/mantmp/.manpages\`\" ; if [ -f \`cat /tmp/mantmp/..manpages\` ] ; then man2html -r \`cat /tmp/mantmp/..manpages\` > \`cat /tmp/mantmp/...manpages\` ; rm \`cat /tmp/mantmp/..manpages\` ; surfer \`cat /tmp/mantmp/...manpages\` ; rm /tmp/mantmp/...???????? /tmp/mantmp/..???????? /tmp/mantmp/.???????? ; fi ; fi ; sleep 0.05s"
grep '0.05s' /mnt/sr0/_Files/Man_Pages_Reader/Install_MPR--sr0.sh | grep -v "Install_MPR--sr0.sh" | sed 's/#//' | cat >> /usr/share/applications/ManPagesReader1.desktop ;
#
echo 'Icon=/usr/local/lib/X11/themes/Smooth-Color/clipboard48.png' >> /usr/share/applications/ManPagesReader1.desktop ;
echo 'Terminal=false' >> /usr/share/applications/ManPagesReader1.desktop ;
echo 'Type=Application' >> /usr/share/applications/ManPagesReader1.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/ManPagesReader1.desktop ;
echo 'Categories=No' >> /usr/share/applications/ManPagesReader1.desktop ;
# < #
#
# > #
echo '[Desktop Entry]' > /usr/share/applications/ManPagesReader2.desktop ;
echo 'Name=Man Pages Reader - Already shown pages' >> /usr/share/applications/ManPagesReader2.desktop ;
echo 'Comment=The way to view Man Pages' >> /usr/share/applications/ManPagesReader2.desktop ;
#Don't touch >>>
#Exec=bash -c "mkdir -p /tmp/mantmp/manpages ; echo \"\`Xdialog --stdout --fselect /tmp/mantmp/manpages/ 40 70\`\" >/tmp/mantmp/.manpages ; cd /tmp/mantmp/ ; curl -C - -O file://\"\`cat /tmp/mantmp/.manpages\`\" ; stat -c %n \"\`cat /tmp/mantmp/.manpages\`\" ; cut -f \`cat /tmp/mantmp/.manpages | grep -o / | grep -c /\`- -d \"/\" /tmp/mantmp/.manpages | cut -f 2 -d \"/\" | cat >/tmp/mantmp/..manpages ; sleep 0.5s ; echo \"/tmp/mantmp/\`cat /tmp/mantmp/..manpages\`\" | cat > /tmp/mantmp/.manpages ; if [ -f /tmp/mantmp/manpages/\`cat /tmp/mantmp/..manpages | sed \"s/.bz2//\" | sed \"s/.gz//\"\`.html ] ; then surfer /tmp/mantmp/manpages/\`cat /tmp/mantmp/..manpages | sed \"s/.bz2//\" | sed \"s/.gz//\"\`.html ; rm \`cat /tmp/mantmp/.manpages\` ; rm /tmp/mantmp/.manpages ; rm /tmp/mantmp/..manpages ; elif [ -f /tmp/mantmp/manpages/\`cat /tmp/mantmp/..manpages\` ] ; then surfer \`cat /tmp/mantmp/.manpages\` ; rm /tmp/mantmp/\`cat /tmp/mantmp/..manpages\` ; rm /tmp/mantmp/.manpages ; rm /tmp/mantmp/..manpages ; elif [ -f \`cat /tmp/mantmp/.manpages | sed \"s/.html//\" | sed \"s/.bz2//\" | sed \"s/.gz//\"\`.bz2 ] ; then sed -i \"s/^/bzip2 -d /\" /tmp/mantmp/.manpages ; sed -i \"s/.bz2//\" /tmp/mantmp/..manpages ; elif [ -f \`cat /tmp/mantmp/.manpages | sed \"s/.html//\" | sed \"s/.bz2//\" | sed \"s/.gz//\"\`.gz ] ; then sed -i \"s/^/gunzip -d /\" /tmp/mantmp/.manpages ; sed -i \"s/.gz//\" /tmp/mantmp/..manpages ; fi ; if [ -f /tmp/mantmp/.manpages ] ; then sed -i \"s/^/\/tmp\/mantmp\//\" /tmp/mantmp/..manpages ; cp /tmp/mantmp/..manpages /tmp/mantmp/...manpages ; sed -i \"s/\/tmp\/mantmp\//\/tmp\/mantmp\/manpages\//\" /tmp/mantmp/...manpages ; sed -i \"s/$/.html/\" /tmp/mantmp/...manpages ; sed -i \"s/$/ ;/\" /tmp/mantmp/.manpages ; bash -c \"\`cat /tmp/mantmp/.manpages\`\" ; if [ -f \`cat /tmp/mantmp/..manpages\` ] ; then man2html -r \`cat /tmp/mantmp/..manpages\` > \`cat /tmp/mantmp/...manpages\` ; rm \`cat /tmp/mantmp/..manpages\` ; surfer \`cat /tmp/mantmp/...manpages\` ; rm /tmp/mantmp/...???????? /tmp/mantmp/..???????? /tmp/mantmp/.???????? ; fi ; fi ; sleep 0.06s"
grep '0.06s' /mnt/sr0/_Files/Man_Pages_Reader/Install_MPR--sr0.sh | grep -v "Install_MPR--sr0.sh" | sed 's/#//' | cat >> /usr/share/applications/ManPagesReader2.desktop ;
#
echo 'Icon=/usr/local/lib/X11/themes/Smooth-Color/clipboard48.png' >> /usr/share/applications/ManPagesReader2.desktop ;
echo 'Terminal=false' >> /usr/share/applications/ManPagesReader2.desktop ;
echo 'Type=Application' >> /usr/share/applications/ManPagesReader2.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/ManPagesReader2.desktop ;
echo 'Categories=No' >> /usr/share/applications/ManPagesReader2.desktop ;
# < #
#
# # # The first and the second .desktop files are the reason of functional problem of JWM window manager.
#
# > #
echo '[Desktop Entry]' > /usr/share/applications/MnPsRr1.desktop ;
echo 'Name=Man Pages Reader - First use' >> /usr/share/applications/MnPsRr1.desktop ;
echo 'Comment=The way to view Man Pages' >> /usr/share/applications/MnPsRr1.desktop ;
#Not good for TOO LONG line >>>
#echo 'Exec=exec `cat /usr/share/applications/ManPagesReader.desktop | grep 'Exec=' | cut -f2 -d=`' >> /usr/share/applications/DpPe.desktop ;
#
echo 'Exec=rox /usr/share/applications/ManPagesReader1.desktop' >> /usr/share/applications/MnPsRr1.desktop ;
echo 'Icon=/usr/local/lib/X11/themes/Smooth-Color/clipboard48.png' >> /usr/share/applications/MnPsRr1.desktop ;
echo 'Terminal=false' >> /usr/share/applications/MnPsRr1.desktop ;
echo 'Type=Application' >> /usr/share/applications/MnPsRr1.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/MnPsRr1.desktop ;
echo 'Categories=X-Calculate;' >> /usr/share/applications/MnPsRr1.desktop ;
# < #
#
# > #
echo '[Desktop Entry]' > /usr/share/applications/MnPsRr2.desktop ;
echo 'Name=Man Pages Reader - Already shown pages' >> /usr/share/applications/MnPsRr2.desktop ;
echo 'Comment=The way to view Man Pages' >> /usr/share/applications/MnPsRr2.desktop ;
#Not good for TOO LONG line >>>
#echo 'Exec=exec `cat /usr/share/applications/ManPagesReader.desktop | grep 'Exec=' | cut -f2 -d=`' >> /usr/share/applications/DpPe.desktop ;
#
echo 'Exec=rox /usr/share/applications/ManPagesReader2.desktop' >> /usr/share/applications/MnPsRr2.desktop ;
echo 'Icon=/usr/local/lib/X11/themes/Smooth-Color/clipboard48.png' >> /usr/share/applications/MnPsRr2.desktop ;
echo 'Terminal=false' >> /usr/share/applications/MnPsRr2.desktop ;
echo 'Type=Application' >> /usr/share/applications/MnPsRr2.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/MnPsRr2.desktop ;
echo 'Categories=X-Calculate;' >> /usr/share/applications/MnPsRr2.desktop ;
# < #
#
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
xmessage "-=Man Pages Reader=- has been installed." `jwm -restart`


Edit: 2011, nov 28.


A script's content can be copied into text editor by means of <Quote> mode.

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.


Edited_times_total
Back to top
View user's profile Send_private_message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Sun 20 Nov 2011, 09:08    Post_subject: pman  

do you know pman in recent puppy can read man pages?
http://www.murga-linux.com/puppy/viewtopic.php?t=56887
Code:
# man --help
man for puppy linux - 22 Dec 2009
usage: man [section] name

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send_private_message Visit_website 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Mon 21 Nov 2011, 23:07    Post_subject:  

Product from me is better: i guess there are much more lines with letters in my work, than in an alternatives. Laughing

But seriously, it's good to know about holes in the operating system, and it's good to get a fresh news also.

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Educational
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0671s ][ Queries: 11 (0.0032s) ][ GZIP on ]