CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Passing command with parameters through system...


New User

Jan 7, 2007, 10:29 AM

Post #1 of 2 (381 views)
Passing command with parameters through system... Can't Post


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?



Jan 7, 2007, 12:29 PM

Post #2 of 2 (379 views)
Re: [turquoise_auk] Passing command with parameters through system... [In reply to] Can't Post

reposting the same question is not going to help. I am not familiar with those system commands so can't offer advice.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives