Advertisement
Guest User

Untitled

a guest
Jul 30th, 2017
662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. 10:58:49 PM bad_bot2@hotmail.com: quesiton
  2. 10:58:57 PM bad_bot2@hotmail.com: if i give you a command can you make me a linux file that i can run that will run that command?
  3. 10:59:41 PM me@c-monkey.net: it's easy. All you need is something called a she-bang as the first line of the file.
  4. 10:59:42 PM bad_bot2@hotmail.com: should be just 1 line :P
  5. 10:59:51 PM bad_bot2@hotmail.com: SHEBANG!
  6. 10:59:55 PM me@c-monkey.net: #!/usr/bin/bash
  7. ls -l
  8. 10:59:57 PM bad_bot2@hotmail.com: SHE BANG BLACKMAN
  9. 10:59:59 PM me@c-monkey.net: i know!
  10. 11:00:23 PM bad_bot2@hotmail.com: so..
  11. #!/usr/bin/bash
  12. wtf is htis ls shit?
  13. 11:00:36 PM bad_bot2@hotmail.com: lol il just give you it make it easer lol.. i also dont know hte extention.. lol
  14. 11:00:49 PM me@c-monkey.net: /usr/bin/bash is just the shell, the thing that executes commands.
  15. 11:00:58 PM me@c-monkey.net: extensions don't matter in linux.
  16. 11:00:58 PM bad_bot2@hotmail.com: ic
  17. 11:00:59 PM bad_bot2@hotmail.com: i know that much
  18. 11:01:02 PM bad_bot2@hotmail.com: !
  19. 11:01:11 PM bad_bot2@hotmail.com: so i can put it into a file caled
  20.  
  21. runbitch
  22. 11:01:13 PM bad_bot2@hotmail.com: no extention?
  23. 11:01:17 PM me@c-monkey.net: sure
  24. 11:01:27 PM bad_bot2@hotmail.com: oo
  25. 11:01:56 PM me@c-monkey.net: and make sure that you can execute the file.
  26. chmod x runbitch
  27. A message may not have been sent; a timeout occurred. (11:02:57 PM)
  28. 11:03:51 PM me@c-monkey.net: and make sure that you can execute the file.
  29. chmod x runbitch
  30. 11:03:59 PM bad_bot2@hotmail.com: wait.. so say i wanted to run the command
  31.  
  32. ./steam
  33. 11:04:02 PM bad_bot2@hotmail.com: how do i do that exacly
  34. 11:04:03 PM me@c-monkey.net: yeah
  35. 11:04:08 PM me@c-monkey.net: ./runbitch
  36. 11:04:37 PM bad_bot2@hotmail.com: no.. ./steam is the command i want to run
  37. 11:04:46 PM me@c-monkey.net: w/e, you get the idea.
  38. 11:04:47 PM bad_bot2@hotmail.com: how do i put that into the file (theres a shit load of arugments i gota add lol)
  39. 11:04:52 PM bad_bot2@hotmail.com: no?
  40. 11:05:04 PM bad_bot2@hotmail.com: ok.. lets say..
  41. 11:05:18 PM bad_bot2@hotmail.com: ./steam -a -b -c
  42.  
  43. i want to put that into a batch script.. how?>
  44. 11:05:24 PM me@c-monkey.net: well you need to use the entire path
  45. 11:05:34 PM me@c-monkey.net: /some/file/directory/steam -a -b -c
  46. 11:05:35 PM bad_bot2@hotmail.com: just #!/usr/bin/bash
  47.  
  48.  
  49. /home/rwoods/steam
  50. 11:05:45 PM me@c-monkey.net: yeah
  51. 11:06:11 PM bad_bot2@hotmail.com: so.. #!/usr/bin/bash
  52. /home/rwoods/steam -a -b -c
  53.  
  54. works?
  55. 11:06:14 PM bad_bot2@hotmail.com: thats all i need
  56. 11:06:25 PM me@c-monkey.net: yeah
  57. 11:11:55 PM bad_bot2@hotmail.com: is this right
  58. Began receiving run (11:11:59 PM)
  59. Successfully received run (11:12:06 PM)
  60. 11:13:03 PM me@c-monkey.net: sure style reasons there is usually a blank line after the shebang, but that is fine.
  61. 11:13:19 PM bad_bot2@hotmail.com: meh
  62. 11:13:23 PM bad_bot2@hotmail.com: im not a styplistic person
  63. 11:13:37 PM bad_bot2@hotmail.com: if it runs its good kinda
  64. 11:15:49 PM bad_bot2@hotmail.com: /usr/bin/bash bad interperter no such file or directory
  65. 11:15:58 PM me@c-monkey.net: /bin/bash
  66. 11:16:12 PM me@c-monkey.net: just depends on where it is.
  67. 11:16:18 PM me@c-monkey.net: $ whereis bash
  68. 11:16:27 PM me@c-monkey.net: that will show you exactly where.
  69. 11:18:50 PM bad_bot2@hotmail.com: can i give you login shit and you get it workign?
  70. 11:19:17 PM bad_bot2@hotmail.com: its realy angry at me lol
  71. 11:19:33 PM me@c-monkey.net: nothing is difficult about this. Just change the intepreter in the first line.
  72. 11:19:48 PM bad_bot2@hotmail.com: i did..
  73. 11:20:03 PM me@c-monkey.net: does it work?
  74. 11:20:03 PM bad_bot2@hotmail.com: here.. logon to
  75.  
  76. mike.gamebitonline.com
  77. un: rwoods
  78. pw: hampton
  79. 11:20:10 PM bad_bot2@hotmail.com: neg
  80. 11:21:40 PM me@c-monkey.net: fixed
  81. 11:21:57 PM bad_bot2@hotmail.com: zomg
  82. 11:22:00 PM bad_bot2@hotmail.com: thanks ha
  83. 11:22:11 PM me@c-monkey.net: `whereis bash` isn't supposed to be in the file. It just tells you what to put in there.
  84. 11:22:27 PM bad_bot2@hotmail.com: o lol
  85. 11:22:29 PM bad_bot2@hotmail.com: :P
  86. 11:22:54 PM me@c-monkey.net: also, your crappy (windows?) editors is adding the wrong newline into the file.
  87. 11:23:03 PM bad_bot2@hotmail.com: ha ausome
  88. 11:23:14 PM bad_bot2@hotmail.com: and yea.. notepad
  89. 11:23:14 PM bad_bot2@hotmail.com: :P
  90. 11:23:19 PM me@c-monkey.net: use `nano` or something on the server.
  91. 11:23:36 PM me@c-monkey.net: if Lanyon can use `nano`, you can use `nano`.
  92. 11:23:37 PM bad_bot2@hotmail.com: i cant use server shit lol
  93. 11:23:43 PM bad_bot2@hotmail.com: lol
  94. 11:23:45 PM bad_bot2@hotmail.com: i cant get it to save lol
  95. 11:23:50 PM bad_bot2@hotmail.com: need point n click
  96. 11:24:23 PM me@c-monkey.net: it tells you all the commands on the bottom.
  97. 11:24:54 PM bad_bot2@hotmail.com: grr it didnt work
  98. 11:25:13 PM bad_bot2@hotmail.com: how do i do the hat
  99. 11:25:28 PM me@c-monkey.net: do what?
  100. 11:25:35 PM me@c-monkey.net: nm, g2g. cya.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement