View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#13
Originally Posted by Bartcore3 View Post
what does this mean?
Code:
#!/bin/sh
i'm planning to learn all this when i finish my exams ^^
From your avatar, I cannot tell if you are trollin' or not...

The line essentially tells the computer which interpreter to run the script in.

In the above example you are telling the computer to use the interpreter which is called 'sh'. sh is the 'shell'.

you could say:

Code:
#!/bin/bash
That would mean run this script IN bash. You could say:

Code:
#!/bin/python
That would mean run this script IN python.


Kingoddball:

My signature is a hilarious joke that apparently makes you a total bastard when you tell it.

My signature is a script that randomly chooses a number between 6 and 0, if you get a 0 it runs another script called a 'fork bomb' that crashes your computer. If you get between 1-6 it prints 'you live' and does nothing. It is computer russian roulette.

It used to delete everything on your computer if you got 0 but a bunch of people started crying about how mean that is so I changed it at Jedi's suggestion.


PS, dont run my signature
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.

Last edited by vi_; 2011-05-29 at 11:01.