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 launch javascript

 



praveenzack
New User

Jan 30, 2009, 4:11 AM

Post #1 of 6 (885 views)
System launch javascript Can't Post

Hey Gurus,



Please help me on this one.

I have a command to launch an application

C:/WINNT/system32/wscript.exe //e:jscript "C:/UWGM/client/bin/uwgm_client.js" -uirunmode 9209

I want to launch it throught the system command. How do i do it? Please help me.


shawnhcorey
Enthusiast


Jan 30, 2009, 4:50 AM

Post #2 of 6 (884 views)
Re: [praveenzack] System launch javascript [In reply to] Can't Post

 

Code
system( q{C:/WINNT/system32/wscript.exe //e:jscript "C:/UWGM/client/bin/uwgm_client.js"} );


__END__

I love Perl; it's the only language where you can bless your thingy.

Perl documentation is available at perldoc.perl.org. The list of standard modules and pragmatics is available in perlmodlib.

Get Markup Help. Please note the markup tag of "code".


praveenzack
New User

Jan 30, 2009, 7:26 AM

Post #3 of 6 (880 views)
Re: [shawnhcorey] System launch javascript [In reply to] Can't Post

Shawn,

Thanks a lot its working. Now I have another problem. I want to add a variable to that command line at the end.

-uitrailmode $trail[$q]

This will look something like this

C:/WINNT/system32/wscript.exe //e:jscript "C:/UWGM/client/bin/uwgm_client.js" -uitrailmode $trail[q].



How do i do this?? Please help me out here.



Thanks

Zack


shawnhcorey
Enthusiast


Jan 30, 2009, 8:18 AM

Post #4 of 6 (875 views)
Re: [praveenzack] System launch javascript [In reply to] Can't Post


Code
system( qq{C:/WINNT/system32/wscript.exe //e:jscript "C:/UWGM/client/bin/uwgm_client.js -uitrailmode $trail[$q]"} );


See `perldoc perlop` and search for /Quote and Quote-like Operators/

__END__

I love Perl; it's the only language where you can bless your thingy.

Perl documentation is available at perldoc.perl.org. The list of standard modules and pragmatics is available in perlmodlib.

Get Markup Help. Please note the markup tag of "code".


praveenzack
New User

Jan 31, 2009, 6:03 AM

Post #5 of 6 (867 views)
Re: [shawnhcorey] System launch javascript [In reply to] Can't Post


In Reply To

Code
system( qq{C:/WINNT/system32/wscript.exe //e:jscript "C:/UWGM/client/bin/uwgm_client.js -uitrailmode $trail[$q]"} );


See `perldoc perlop` and search for /Quote and Quote-like Operators/

Shawn

In the previous lin there is this $trail[$q]. I am calling a file which i have put it in an array. Now if i explicitly mention the file name i can run the command, but when i mention this variable it does not run. I did a search of the Quote and Quote-like Operators and could not get the answer. Your help is much appricated. Thanks

- Zack


praveenzack
New User

Jan 31, 2009, 7:02 AM

Post #6 of 6 (862 views)
Re: [praveenzack] System launch javascript [In reply to] Can't Post

Hey

I Crazy up. Its working Smile. Thanks a lot shawn for the help. Your answer was right.

 
 


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

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