Running Bitcoin on command-line-only system
To run it as a daemon type:

$ bitcoind -daemon
bitcoin server starting
$


You can then use the API calls to do whatever you want:

$ bitcoind getblockcount
153407
$ bitcoind getconnectioncount
20