You'll need to wrap the program name in quotes to use it with arguments like
that. Try instead:
system("\"#{program}\" --user=root --password=password dbtrader >
\"#{destination}\"")
Ideally you would pass each argument to system as a separate argument, like:
system(program,"--user=root","--password=password", etc)
But I don't know how to pipe the output of this to a file... perhaps someone
else on the list can help.