I need to set up a cron job that runs an executable compiled using gcc once every hour.
I logged in as root and typed
0 * * * * /path_to_executable
0 * * * * cd folder_containing_exe && ./exe_name
should work unless there is something else that needs to be setup for the program to run.