Having the Gnus Agent fetch articles (and post whatever messages you've written) is quite easy once you've gotten things set up properly. The following shell script will do everything that is necessary:
#!/bin/sh emacs -batch -l ~/.emacs -f gnus-agent-batch >/dev/null