I'm trying to use a SWATH (http://www.cs.cmu.edu/~paisarn/software.html) to work on my project. Basically the program will break down the sentence into set of words. I have everything installed and and try to run the command through the command prompt (Terminal on Mac).
I ran a command
swath -u u -m long < in_OdwJYw.txt > test.txt
The program works just fine and came out with the correct output test.txt with break down words
So I implement the code into my PHP file. I use this method
exec("swath -u u -m long < in_OdwJYw.txt > test.txt");
No error shown "test.txt" file was created but nothing inside (0 bytes)
My question is why the command works with running through the prompt and why I not working with exec() system() or shell_exec().
Thanks!