Thursday 9 July 2009

Scripting

So yesterday I told a little lie in that I have 5 commands I use on login.
I've since experimented just a little more with scripting, and now I have one command:
'sudo sh update.sh'
where update.sh contains all five commands from the previous entry.
I could have left the sudo on the two apt-get commands, but it seems to work this way just as well.

Scripting is useful. You can condense a lot of lines of nonsense into one file, where you never need to remember the command again.
Now if only I could write one for blogging.. er, logging, into the blog to write a new post.

No comments:

Post a Comment