-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarprun doesn't run command when stdio is specified #2966
Comments
Hi, I managed to reproduce this behaviour in 3.8.0 as well. I also noticed that if you specify a name for the yarprun server
the application runs accordingly to Can you confirm that? I am not sure if this is intended behaviour or not but indeed there are checks done on the portname in the code (e.g. see https://github.com/robotology/yarp/blob/master/src/libYARP_run/src/yarp/run/Run.cpp#L1051) |
Hi, I tested with a small application that reads an integer from stdin using |
Hi @IboKhaled, I reproduced the scenario and indeed it behaves like you described. However, I have tried by reading a string instead of an integer and it seems to be working, can you try that as well? I am pasting you my sample c++ code: #include int main(int argc, char *argv[]) yarp::os::Network yarp; yarp::os::BufferedPortyarp::os::Bottle port; while (true)
} return 0; Is it an acceptable workaround for you? If you only write an integer then I assume you can cast it after reading the string |
As soon as
--stdio /<server>
is specified, yarprun fails to launch the command.To Reproduce
yarpserver
yarprun --server
yarprun --on /<yarprun-ip:port> --as testing --cmd <app> --stdio /<yarprun-ip:port>
Expected behavior
The application starts and stdio is redirected to a terminal window.
Actual behavior
yarprun --on /<yarprun-ip:port> --ps
:Configuration:
Notes
--stdio
-option, the application launches as expected. In the output of yarprun server and clientcmd
is<app>
instead ofxterm
.Am I missing something?
The text was updated successfully, but these errors were encountered: