Thread: $ bash myscript
View Single Post
Old 30-10-2006, 12:23   #4
The Jackal
Inactive
 
Join Date: Oct 2006
Posts: 1,604
The Jackal has a bronzed appealThe Jackal has a bronzed appeal
The Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appeal
Re: $ bash myscript

COME ON BOYS stop dissing me ....

wait.sh

------------------------------------------
#!/bin/sh

echo "Hello World"
echo "Going to sleep"
sleep 3;
echo "Wakey wakey"
------------------------------------------

chmod 755 wait.sh

./wait.sh ( to execute)

---------------------
EDIT
Notice the first line of the script ?
#!/bin/sh

?

That tells the OS that this is a shell script...

If I were to change this line to #!/usr/bin/perl
it would become a perl script
The Jackal is offline   Reply With Quote