faqts : Computers : Programming : Languages : Tse : Operating system : Linux

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

TSE: File: Filter: Get: Linux: Man: How to automate getting 'man' output?

Sep 19th, 2003 08:32
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 18 September 2003 - 10:14 pm ------------------

TSE: File: Filter: Get: Linux: Man: How to automate getting 'man' 
output?

Here a typically sequence of transferring information
from Linux to my Microsoft Windows XP, then
converting this man information to readable
text using a TSE macro.

---

Steps: Overview:

 1. -In Linux, type the command

      man <your command> ><your filename>

     e.g.

      man fstab >/home/ddd

 2. -In Linux I have defined an almost
     automatic to run text file with
     the ftp commands necessary to
     send a file via ftp from Linux
     to Windows

      this file, '/home/myftp',
      contains the following text:

       open 192.168.0.3

       anonymous

       lcd /home

       bin

       send ddd

       quit

 3. -To do less typing, in Linux define or use the alias:

      alias s='ftp </home/myftp'

http://www.faqts.com/knowledge_base/view.phtml/aid/24510

 4. -Then type on the Linux command line:

       s

 5. -This will send the file

       ddd

     to my Windows ftp shared directory

 6. -In TSE, I get that file by typing:

      <CTRL K><CTRL R>

     to load a file as a block in your
     current file

 7. -I then run the TSE convert macro to
     convert this man file (full with
     difficult to read ASCII characters
     smaller than 32)

http://www.faqts.com/knowledge_base/view.phtml/aid/24463/fid/1220

 8. -That converts it to a readable ASCII
     file
     (e.g. for further use in my current
      Question & Answer file)

----------------------------------------------------------------------