0
created a script to run a program automatically, it is correct because in the command line in Ubuntu it runs through the command:
/var/www/html/trabalhoTCC/view/needle.sh /var/www/html/trabalhoTCC/emboss/aaindexextract/alvos.txt /var/www/html/trabalhoTCC/emboss/aaindexextract/modelos.txt
where Needle.sh is my script that takes as parameter the files al.txt and mod.txt.
In the Ubuntu terminal I can run this command and have its output file, but by running this command in php :
shell_exec('/var/www/html/trabalhoTCC/view/needle.sh /var/www/html/trabalhoTCC/emboss/aaindexextract/alvos.txt /var/www/html/trabalhoTCC/emboss/aaindexextract/modelos.txt');
I don’t get the exit, someone knows what can be?
Look at this part that you put it this way in the script ? because at the end of the command has a simple QUOTE, remove it
– NoobSaibot
Another thing, try to put everything in one line
– NoobSaibot
no quotes, I put wrong here. .
– Lucas
Right, now in the script puts everything in one line: shell_exec('/var/www/html/job/view/Needle.sh /var/www/html/job/view/Emboss/Needle/al.txt /var/www/html/job/view/Emboss/Needle/mod.txt');
– NoobSaibot
I tidied here had put wrong too, this way is and I get no way out.
– Lucas
All right, check the permission to run the Needle.sh file
– NoobSaibot