How to Fix "Failed to Execute Child Process Source (No Such File or Directory)"
I Am Trying to Run a Script in Order to Source My Catkin Workspace Prior to Running a Driver. This Is the Bash I Am Trying to Run: #! /Bin/Bash Gnome-Terminal...
I am trying to run a script in order to source my catkin workspace prior to running a driver.
This is the bash I am trying to run:
#!/bin/bash
gnome-terminal -e sudo systemctl start firmwared.service
sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/bebop2.drone &
gnome-terminal -e source ~/bebop_ws/devel/setup.bash
roslaunch bebop_driver bebop_node.launch ip:=10.202.0.1
I get failed to execute child process source (no such file or directory) when running my bash
3 Answers
Seems like the problem was the quoting, it should look like this
gnome-terminal -e "bash -c 'source ~/bebop_ws/devel/setup.bash;roslaunch bebop_driver bebop_node.launch ip:=10.202.0.1'"
source is built into the shell, so you would have to do something like
gnome-terminal -e 'bash -c "source ~/bebop_ws/devel/setup.bash"'
IF you want to use GUI on windows and failed then just use next command:
sudo apt-get install dbus-x11