Results 1 to 1 of 1
Need help coding a redirect Page which also passes dynamic parameters Forum: HTML ForumReplies: 0
How to open Windows command window from php? Forum: PHP ForumReplies: 4
unknown error code using system() command from web server Forum: CGI Perl ForumReplies: 1
Unix command output displayed 0 in browser Forum: CGI Perl ForumReplies: 0
Hover command on a td Forum: CSS ForumReplies: 3
01-07-2007, 01:37 PM #1
Using system, su, and a command with parameters...
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?