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 Tue 02 Sep 2014, 20:04
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 [3 Posts]  
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
Subject description: 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.


Last edited by postfs1 on Mon 28 Nov 2011, 10:20; edited 2 times in total
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2618
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 poster's 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 from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Educational
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0813s ][ Queries: 12 (0.0162s) ][ GZIP on ]