|
|
11-05-2010
, 07:56 AM
|
|
Posts: 25 |
Thanked: 10 times |
Joined on May 2010
|
#1
|
|
|
11-05-2010
, 08:16 AM
|
|
Posts: 828 |
Thanked: 1,131 times |
Joined on May 2010
|
#3
|
|
|
11-05-2010
, 08:27 AM
|
|
|
Posts: 3,159 |
Thanked: 2,017 times |
Joined on Feb 2008
@ Finland
|
#4
|
echo "#!/bin/sh" > ./nameofyourscript.sh echo "first command" >> ./nameofyourscript.sh echo "second command" >> ./nameofyourscript.sh echo "third command >> ./nameofyourscript.sh echo "you probably get the point by now" >> ./nameofyourscript.sh
mkdir /home/user/scripts/
mv ./nameofyourscript.sh /home/user/scripts chmod +x /home/user/scripts/nameofyourscript.sh ln -s /home/user/scripts/nameofyourscript.sh
./nameofyourscript.sh
| The Following 2 Users Say Thank You to ossipena For This Useful Post: | ||
|
|
11-05-2010
, 08:34 AM
|
|
|
Posts: 1,410 |
Thanked: 1,309 times |
Joined on Jan 2010
@ Tatooine
|
#5
|
|
|
11-05-2010
, 09:42 AM
|
|
|
Posts: 2,112 |
Thanked: 1,480 times |
Joined on Mar 2008
@ Oxford, UK
|
#6
|
open terminal and type following:
Code:echo "#!/bin/sh" > ./nameofyourscript.sh echo "first command" >> ./nameofyourscript.sh echo "second command" >> ./nameofyourscript.sh echo "third command >> ./nameofyourscript.sh echo "you probably get the point by now" >> ./nameofyourscript.sh
| The Following User Says Thank You to pelago For This Useful Post: | ||
|
|
11-05-2010
, 10:06 AM
|
|
Posts: 1,096 |
Thanked: 744 times |
Joined on Dec 2008
|
#7
|
Although that will work that's a pretty odd way to write a script. I would recommend installing leafpad then doing "leafpad nameofyourscript.sh" for this bit.

vi sux, nano rulez
|
|
11-05-2010
, 11:23 AM
|
|
Posts: 2,799 |
Thanked: 4,437 times |
Joined on Nov 2007
|
#8
|
| The Following 3 Users Say Thank You to lma For This Useful Post: | ||
![]() |
| Thread Tools | Search this Thread |
|