Guest User

Untitled

a guest
Dec 16th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. #blantantly simple test to figure out script problems
  2.  
  3. echo "this is working - type something for me to repeat it"
  4. read input
  5. echo $input
  6.  
  7. #!bin/bash
  8.  
  9. #blantantly simple test to figure out script problems
  10.  
  11. echo "this is working - type something for me to repeat it"
  12. read input
  13. echo $input
  14.  
  15. x@computer:~$ echotest
  16. this is working - type something for me to repeat it
  17. test1
  18. test1
  19.  
  20. x@computer:~$ echotest-bin-bash
  21. bash: /home/x/bin/echotest-bin-bash: bin/bash: bad interpreter: No such file or directory
  22. x@computer:~$ echotest-bin-dash
  23. bash: /home/x/bin/echotest-bin-dash: bin/bash: bad interpreter: No such file or directory
  24. x@computer:~$ echotest-bin-sh
  25. bash: /home/x/bin/echotest-bin-sh: bin/sh: bad interpreter: No such file or directory
  26.  
  27. x@computer:~$ ./echotest-bin-bash
  28. bash: ./echotest-bin-bash: No such file or directory
  29.  
  30. x@computer:~$ echotest
  31. bash: /home/x/bin/echotest: No such file or directory
  32.  
  33. x@computer:~$ sudo /usr/local/bin/echotest
  34. this is working - type something for me to repeat it
  35. test
  36. test
  37.  
  38. x@computer:~$ sudo /usr/local/bin/echotest-bin-bash
  39. sudo: unable to execute /usr/local/bin/echotest-bin-bash: No such file or directory
  40. Hangup
  41.  
  42. x@computer:~$ echo $PATH
  43. /home/x/bin:/home/x/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  44.  
  45. ||/ Name Version Architecture Description
  46. +++-==============-============-============-=================================
  47. ii dash 0.5.8-2.1ubu amd64 POSIX-compliant shell
  48.  
  49. ii bash 4.3-14ubuntu amd64 GNU Bourne Again SHell
  50.  
  51. x@computer:~$ file "$(type -P bash)" 2>/dev/null
  52. /bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=[redacted for the forum], stripped
  53.  
  54. x@computer:~$ type -p bash
  55. /bin/bash
Add Comment
Please, Sign In to add comment