seek inputfile after exec