File sending and execution of commands works separately, however not yet if done one after each other.