[Kc] Executing third party tools using CGI/Perl

user perl user.perl at gmail.com
Tue Jan 17 18:06:29 PST 2006


Thanks for the reply. However I've installed the svm_classify in the same
'cgi-bin' directory. I'm enclosing my code snippet as below. I'd appreciate
if you could suggest me how to modify the line to execute svm_classify.

system "svm_classify input-file model-file output-file";

Thanks,
MP.

On 1/17/06, Frank Wiles <frank at wiles.org> wrote:
>
> On Tue, 17 Jan 2006 19:36:58 -0600
> user perl <user.perl at gmail.com> wrote:
>
> > Hi,
> >
> >    I'm currently writing a CGI script which involves the execution of
> > a tool called "SVM Light" in Linux/Apache. The typical command for
> > executing SVM Light in Linux is svm_classify input-file model-file
> > output-file. I'm using the "system" option of executing commands in
> > CGI but it isn't working because SVM Light is not a system command
> > (IMHO). Has anyone tried executing third party tools within CGI
> > scripts?
>
>   Yeah this shouldn't be a big deal.  Try using backticks instead of
>   system like:
>
>   `/full/path/to/svn_classify $input $model $output`;
>
> ---------------------------------
>    Frank Wiles <frank at wiles.org>
>    http://www.wiles.org
> ---------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/kc/attachments/20060118/5acc0395/attachment.html


More information about the kc mailing list