tmux roslaunch (bash or sh?) [closed]

asked 2018-02-20 02:48:49 -0500

Dben gravatar image

I was trying to use gdb, tmux and roslaunch together and followed the explanation here: http://wiki.ros.org/action/login/rosl...

I couldn't make it work using this :

launch-prefix="/path/to/run_tmux": run your node in a new tmux window; you'll need to create /path/to/run_tmux with the contents:

#!/bin/sh
tmux new-window "gdb --args $*"

I had to replace #!/bin/sh by #!/bin/bash. My .bahrc is empty, I use zsh by default. I was about to edit the wiki, but could does it work for anyone with sh? If so, why?

Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Dben
close date 2018-04-30 04:33:30.189053

Comments

I tried with both sh and bash, and for me the node crashes with a message [my_node] process has died ... Is it working for you now ?

Cyril Jourdan gravatar image Cyril Jourdan  ( 2018-04-20 10:18:12 -0500 )edit

using bash works for me

Dben gravatar image Dben  ( 2018-04-20 10:34:22 -0500 )edit

Sorry my bad, it works with sh, I wasn't launching from a tmux session, just from a terminal, I thought it would create it for me, but it just create a new window.

Cyril Jourdan gravatar image Cyril Jourdan  ( 2018-04-20 10:41:08 -0500 )edit

mmh okay, maybe some environment issue. gonna close it

Dben gravatar image Dben  ( 2018-04-30 04:32:52 -0500 )edit