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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
System command passing wrong parameters

 



turquoise_auk
New User

Jan 6, 2007, 11:21 PM

Post #1 of 1 (374 views)
System command passing wrong parameters Can't Post

Hey,

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?

Thanks,
Ben

 
 


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

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