vectorspace
|
2010-11-05
, 11:56
|
Posts: 25 |
Thanked: 10 times |
Joined on May 2010
|
#1
|
|
2010-11-05
, 12:16
|
Posts: 842 |
Thanked: 1,197 times |
Joined on May 2010
|
#3
|
|
2010-11-05
, 12:27
|
|
Posts: 3,159 |
Thanked: 2,023 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: | ||
|
2010-11-05
, 12:34
|
|
Posts: 1,411 |
Thanked: 1,330 times |
Joined on Jan 2010
@ Tatooine
|
#5
|
|
2010-11-05
, 13:42
|
|
Posts: 2,121 |
Thanked: 1,540 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: | ||
|
2010-11-05
, 14:06
|
Posts: 1,096 |
Thanked: 760 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
The Following 3 Users Say Thank You to lma For This Useful Post: | ||