The eee PC is a cool little machine. It boots up in 20 seconds, weights about a kilo and it runs Linux. What else do you want in a netbook ?
A chess program would be a nice addition. Here I’ll show you how to install GNU chess and xboard.
First download the following packages :
the [...]
Also filed in
|
|
Sometimes you have to check if a variable is set and exit if it’s not. The following code does it in a nice and simple way :
error_mess="This environment variable should be set"
: ${ORACLE_HOME:?$error_mess}
The output looks like this :
./script.sh[3]: ORACLE_HOME: This environment variable should be set
The script exits after checking [...]
Also filed in
|
|
Here’s how you automate FTP :
ftp -v -n hostname << EOF
user usuario password
bin
put filename
bye
EOF
With thanks to this post.
Also filed in
|
|
This is useful on HP Unix machines. It just prints out a few pieces of data of the machine.
echo "HP Unix version : " `uname -a`
echo "Model : " `/usr/bin/model`
[...]
Also filed in
|
|