Guest User

Untitled

a guest
May 20th, 2018
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. ." Manpage for myprog.
  2. ." Contact myprog@ya.ru to thanks
  3. .TH man 1 "20 March 2018" "1.0" "myprog man page"
  4. .SH NAME
  5. myprog - Watch for directories, file or url change
  6. .SH SYNOPSIS
  7. myprog [user]
  8. .SH DESCRIPTION
  9. Any watch for file changes into directories , file(s), or url.
  10. myprog is beautiful
  11.  
  12. First parameter can be empty, it will then watch for any changes into the current directory.
  13. First parameter can also be a file, a file path, an url, or a directory.
  14.  
  15. First parameter [empty] Log current directory changes.
  16. [file] Look in file.
  17. [path] Check the specified path.
  18. [url] Watch for changes in web page.
  19.  
  20. Second parameter [change] watch for a directory, non recursive.
  21. [rchange] watch for a directory, recursive.
  22.  
  23. Third parameter [log] Print time change and files differences.
  24. [logtext] Parse html to display text changes only.
  25. [exec] Execute bash command at change event.
  26. [reload] Followed by browser name, reload tab.
  27. [inject] Append javascript to the current browser tab.
  28. [mail] Send mail at event.
  29.  
  30. Example of usage:
  31.  
  32. myprog change exec ls
  33.  
  34. myprog rchange exec ls
  35.  
  36. myprog change exec 'ls&&top -n 1'
  37.  
  38. myprog change exec <<EOF
  39.  
  40. cat myscript.js | myprog change inject firefox
  41.  
  42. myprog change inject firefox <<< 'alert("xss!")'
  43.  
  44.  
  45. .SH OPTIONS
  46. myprog [url|file|(empty=folder)]
  47. [change|rchange]
  48. will [log|logtext|exec|reload|inject]
  49. [browser|command|setup|history]
  50. .SH SEE ALSO
  51. inotify(7) my_otherprog
  52. .SH BUGS
  53. Mail function is off.
  54. .SH AUTHOR
  55. MYPROG myprog@ya.ru
  56.  
  57. 1 User Commands
  58. 2 System Calls
  59. 3 C Library Functions
  60. 4 Devices and Special Files
  61. 5 File Formats and Conventions
  62. 6 Games et. al.
  63. 7 Miscellanea
  64. 8 System Administration tools and Daemons
  65.  
  66. sudo cp myprog.1 /usr/local/share/man/man1/
  67.  
  68. sudo mandb
  69.  
  70. man myprog
Add Comment
Please, Sign In to add comment