Jan 6, 2007, 11:21 PM
Post #1 of 1
System command passing wrong parameters
I'm not entirely new at perl, but this problem is embarrasingly simple...
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?