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: Advanced:
command line arguments with the backtick

 



Seshouan
Deleted

Nov 2, 2000, 11:38 AM

Post #1 of 2 (779 views)
command line arguments with the backtick Can't Post

Hello,
I'm having problems with using the backtick(`) for a shell invocation. I'm programming some XSL and have the following in my program:
`xt test.xml test.xsl test.htm`;

This command works fine if I type it directly from the command line, but my perl program dies once it reaches this, saying that there is an error. Do I need to include a special module in order to use the backtick command? Please help.

Session


sleuth
Enthusiast

Nov 2, 2000, 7:56 PM

Post #2 of 2 (779 views)
Re: command line arguments with the backtick [In reply to] Can't Post

 
I think that you will find system(""); works better. Use back ticks when you are doing something like $path = `whereis sendmail`;

To run something on the system, do this,

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>


system("xt test.xml test.xsl test.htm");
</pre><HR></BLOCKQUOTE>

Sleuth

 
 


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

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