title: Neither xclip nor xsel in the following directory
body: <p>I just finished to made some modifications on a  script and I tried to execute it on terminal with Python but the terminal prompts the following:</p>
  <blockquote>
  <p>which: no xclip in (/usr/local/bin: /usr/bin: /bin: /usr/local/sbin: /usr/sbin:/sbin:/home/myUser/bin)</p>
  <p>which: no xsel in (/usr/local/bin: /usr/bin: /bin: /usr/local/sbin: /usr/sbin:/sbin:/home/myUser/bin)</p>
  </blockquote>
  <p>This is the following script that I am trying to execute:</p>
  <pre><code>import random, sys, CipherEncryptionP
  
  def main():
      random.seed(42)
          for i in range(20):
          message       = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'*random.randint(4,40)
          message       = list(message)
          random.shuffle(message)
          print('Test #%s: &quot;%s...&quot;' % (i+1, message[:50]))
          for key in range(1,len(message)):
              encrypted = CipherEncryptionP.encryptMessage(message,key)
              print('Transposition cipher test passed. ')
  
  if __name__=='__main__':
      main()
  </code></pre>
  <p>Finally, this is the CipherEncryptionP script that you need to run the code from above.</p>
  <pre><code>import pyperclip
  
  def main():
      message        = raw_input(&quot;Give me your message: &quot;)
      keyValue       = int(raw_input(&quot;Give a numeric value: &quot;))
      ciphertext     = encryptMessage(message,keyValue)
      print(ciphertext + '|')
      pyperclip.copy(ciphertext)
  
  def encryptMessage(message,keyValue):
      ciphertext=['']*keyValue
      for column in range(keyValue):
          pointer= column
          while pointer &lt; len(message):
              ciphertext[column]+=message[pointer]
              pointer+=keyValue
      return ''.join(ciphertext)
  
  if __name__== '__main_':
      main()  
  </code></pre>
  <p>I am running a Scientific Linux 6.2 with kernel version 2.6.32-431.1.2.el6.x86_64 and the Python version is 2.6.6. You can download the pyperclip from the following page: <a href="http://invpy.com/pyperclip.py" rel="nofollow noreferrer">http://invpy.com/pyperclip.py</a>.</p>
  <p>This first code is used test the second code which is a transposition cipher that I downloaded from <a href="http://inventwithpython.com/hacking/chapter10.html" rel="nofollow noreferrer">http://inventwithpython.com/hacking/chapter10.html</a>.</p>
  <p>All suggestions and modifications are welcome :)</p>