added exec(cmd,output,input,error,avpenv) function for exec
Merge pull request #375 from ionutrazvanionita/master

added exec(cmd,output,input,error,avpenv) function for exec