This problem is embarrasing... but I can't figure out how to solve it.

I am trying to run the following command:

system("su - '$namee' -c vncserver -httpport '$java_port_num' -rfbport '$rfb_port_num' ")

vncserver is just a command that requires those certain parameters (they are defined previously in the program. The problem is, su instead of vncserver is accepting the parameters... and if I try to move the quotes or add new ones to show that the parameters belong to vncserver, I obviously get syntax errors... any ideas?