System command not working. Anything wrong?

Hi guys,

I’ve a perl script where in i’ve system command used to run a tesseract.exe application. This perl script is run from Red hat linux OS.

System command provided is as below:
system(“$te_dir/tesseract $dir/$file $dir/$fle1”) == 0 or die “Tesseract failed: $!”;

And i get a message as below:
Tesseract failed: No such file or directory at boot.pl line 743.

Can i know what is the problem here?

Thanks,
Ramki

Firstly, you cannot run “.exe” files on any Linux natively.
You will need to call up an emulator (like WINE).

Secondly, that command includes many variable declarations. You cannot simply call that on a command line because none of those variables have any reference in that context.

Is the “tesseract” application located on the Linux machine? Where (exactly) in the filesystem is it? Do you have a Windows emulator to use for this?

Secondly, that command includes many variable declarations. You cannot simply call that on a command line because none of those variables have any reference in that context.

No actually true. The double quotes mean that they variable will be replaced by their value.