Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 10:58:49 PM bad_bot2@hotmail.com: quesiton
- 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?
- 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.
- 10:59:42 PM bad_bot2@hotmail.com: should be just 1 line :P
- 10:59:51 PM bad_bot2@hotmail.com: SHEBANG!
- 10:59:55 PM me@c-monkey.net: #!/usr/bin/bash
- ls -l
- 10:59:57 PM bad_bot2@hotmail.com: SHE BANG BLACKMAN
- 10:59:59 PM me@c-monkey.net: i know!
- 11:00:23 PM bad_bot2@hotmail.com: so..
- #!/usr/bin/bash
- wtf is htis ls shit?
- 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
- 11:00:49 PM me@c-monkey.net: /usr/bin/bash is just the shell, the thing that executes commands.
- 11:00:58 PM me@c-monkey.net: extensions don't matter in linux.
- 11:00:58 PM bad_bot2@hotmail.com: ic
- 11:00:59 PM bad_bot2@hotmail.com: i know that much
- 11:01:02 PM bad_bot2@hotmail.com: !
- 11:01:11 PM bad_bot2@hotmail.com: so i can put it into a file caled
- runbitch
- 11:01:13 PM bad_bot2@hotmail.com: no extention?
- 11:01:17 PM me@c-monkey.net: sure
- 11:01:27 PM bad_bot2@hotmail.com: oo
- 11:01:56 PM me@c-monkey.net: and make sure that you can execute the file.
- chmod x runbitch
- A message may not have been sent; a timeout occurred. (11:02:57 PM)
- 11:03:51 PM me@c-monkey.net: and make sure that you can execute the file.
- chmod x runbitch
- 11:03:59 PM bad_bot2@hotmail.com: wait.. so say i wanted to run the command
- ./steam
- 11:04:02 PM bad_bot2@hotmail.com: how do i do that exacly
- 11:04:03 PM me@c-monkey.net: yeah
- 11:04:08 PM me@c-monkey.net: ./runbitch
- 11:04:37 PM bad_bot2@hotmail.com: no.. ./steam is the command i want to run
- 11:04:46 PM me@c-monkey.net: w/e, you get the idea.
- 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)
- 11:04:52 PM bad_bot2@hotmail.com: no?
- 11:05:04 PM bad_bot2@hotmail.com: ok.. lets say..
- 11:05:18 PM bad_bot2@hotmail.com: ./steam -a -b -c
- i want to put that into a batch script.. how?>
- 11:05:24 PM me@c-monkey.net: well you need to use the entire path
- 11:05:34 PM me@c-monkey.net: /some/file/directory/steam -a -b -c
- 11:05:35 PM bad_bot2@hotmail.com: just #!/usr/bin/bash
- /home/rwoods/steam
- 11:05:45 PM me@c-monkey.net: yeah
- 11:06:11 PM bad_bot2@hotmail.com: so.. #!/usr/bin/bash
- /home/rwoods/steam -a -b -c
- works?
- 11:06:14 PM bad_bot2@hotmail.com: thats all i need
- 11:06:25 PM me@c-monkey.net: yeah
- 11:11:55 PM bad_bot2@hotmail.com: is this right
- Began receiving run (11:11:59 PM)
- Successfully received run (11:12:06 PM)
- 11:13:03 PM me@c-monkey.net: sure style reasons there is usually a blank line after the shebang, but that is fine.
- 11:13:19 PM bad_bot2@hotmail.com: meh
- 11:13:23 PM bad_bot2@hotmail.com: im not a styplistic person
- 11:13:37 PM bad_bot2@hotmail.com: if it runs its good kinda
- 11:15:49 PM bad_bot2@hotmail.com: /usr/bin/bash bad interperter no such file or directory
- 11:15:58 PM me@c-monkey.net: /bin/bash
- 11:16:12 PM me@c-monkey.net: just depends on where it is.
- 11:16:18 PM me@c-monkey.net: $ whereis bash
- 11:16:27 PM me@c-monkey.net: that will show you exactly where.
- 11:18:50 PM bad_bot2@hotmail.com: can i give you login shit and you get it workign?
- 11:19:17 PM bad_bot2@hotmail.com: its realy angry at me lol
- 11:19:33 PM me@c-monkey.net: nothing is difficult about this. Just change the intepreter in the first line.
- 11:19:48 PM bad_bot2@hotmail.com: i did..
- 11:20:03 PM me@c-monkey.net: does it work?
- 11:20:03 PM bad_bot2@hotmail.com: here.. logon to
- mike.gamebitonline.com
- un: rwoods
- pw: hampton
- 11:20:10 PM bad_bot2@hotmail.com: neg
- 11:21:40 PM me@c-monkey.net: fixed
- 11:21:57 PM bad_bot2@hotmail.com: zomg
- 11:22:00 PM bad_bot2@hotmail.com: thanks ha
- 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.
- 11:22:27 PM bad_bot2@hotmail.com: o lol
- 11:22:29 PM bad_bot2@hotmail.com: :P
- 11:22:54 PM me@c-monkey.net: also, your crappy (windows?) editors is adding the wrong newline into the file.
- 11:23:03 PM bad_bot2@hotmail.com: ha ausome
- 11:23:14 PM bad_bot2@hotmail.com: and yea.. notepad
- 11:23:14 PM bad_bot2@hotmail.com: :P
- 11:23:19 PM me@c-monkey.net: use `nano` or something on the server.
- 11:23:36 PM me@c-monkey.net: if Lanyon can use `nano`, you can use `nano`.
- 11:23:37 PM bad_bot2@hotmail.com: i cant use server shit lol
- 11:23:43 PM bad_bot2@hotmail.com: lol
- 11:23:45 PM bad_bot2@hotmail.com: i cant get it to save lol
- 11:23:50 PM bad_bot2@hotmail.com: need point n click
- 11:24:23 PM me@c-monkey.net: it tells you all the commands on the bottom.
- 11:24:54 PM bad_bot2@hotmail.com: grr it didnt work
- 11:25:13 PM bad_bot2@hotmail.com: how do i do the hat
- 11:25:28 PM me@c-monkey.net: do what?
- 11:25:35 PM me@c-monkey.net: nm, g2g. cya.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement