I have a remote server and I use it for process keywords as:
- Start Process
- Terminate Process
- Get Process Result
It works fine if I only use with command and arguments, but when I try to configure something as stdout, or cwd, it doesn't apply it to the process, and pass it as command argument.
In local (with no remote server), it works fine, in remote it doesn't. This is what I have:
Local:
${id}= | Start Process | echo | hello | world
Terminate Process | ${id}
${stdout}= | Get Process Result | ${id} | stdout=true
Log | ${stdout}
hello world <- Its OK
Remote:
${id}= | KEYWORD FOR REMOTE SERVER | IP | Start Process | echo | hello | world
KEYWORD FOR REMOTE SERVER | IP | Terminate Process | ${id}
${stdout}= | KEYWORD FOR REMOTE SERVER | IP | Get Process Result | ${id} | stdout=true
Log | ${stdout}
hello world <---- It was executed correctly in remote server
Local:
${id}= | Start Process | echo | hello | world | stdout=tmp.txt
Terminate Process | ${id}
${stdout}= | Get Process Result | ${id} | stdout=true
Log | ${stdout}
hello world <- Its OK inside the tmp.txt file and the log
Remote:
${id}= | KEYWORD FOR REMOTE SERVER | IP | Start Process | echo | hello | world | stdout=tmp.txt
KEYWORD FOR REMOTE SERVER | IP | Terminate Process | ${id}
${stdout}= | KEYWORD FOR REMOTE SERVER | IP | Get Process Result | ${id} | stdout=true
Log | ${stdout}
hello world stdout=tmp.txt <---- Passes the configuration argument as argument to the command and doesn't create the tmp.txt file
Any ideas? Thank you so much