Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

gztopic list does not work well via ssh #795

Closed
osrf-migration opened this issue Aug 2, 2013 · 5 comments
Closed

gztopic list does not work well via ssh #795

osrf-migration opened this issue Aug 2, 2013 · 5 comments
Labels
all bug Something isn't working major

Comments

@osrf-migration
Copy link

Original report (archived issue) by Hugo Boyer (Bitbucket: hugomatic, GitHub: hugomatic).


the following bash script fails to execute:

#!bash

#!/bin/bash

ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i /home/ubuntu/cloudsim/key-sim.pem ubuntu@10.0.0.51  ". /usr/share/drcsim/setup.sh; timeout -k 1 5 gztopic list"

The problem is in the parsing of the command line arguments. In the case of this script, the isatty call returns false and the parsing goes into a loop (waiting for an EOF that never comes).

The workaround is to pass -n to ssh (redirect input to /dev/null) but that's neither obvious or intuitive.

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


isatty call at gztopic.cc:84

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


see pull request #674

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


  • changed state from "new" to "resolved"

pull request #674

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set version to "all"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "resolved" to "closed"

@osrf-migration osrf-migration added major bug Something isn't working all labels Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
all bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant