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 -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"'
2

IF you want to use GUI on windows and failed then just use next command:

sudo apt-get install dbus-x11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest