So it works perfectly, but I got one more question :
what can I do if I have a variable inside my system call, like :
 system("latex -interaction=nonstopmode #{@myvar}")
I tried with backticks, but it doesn't seems to work :
`latex -interaction=nonstopmode #{@myvar}`
Any solution ? Thanks again !