gpt4 book ai didi

bash - 如何修复 "Failed to execute child process source (no such file or directory)"

转载 作者:行者123 更新时间:2023-12-02 03:14:28 30 4
gpt4 key购买 nike

我正在尝试运行一个脚本,以便在运行驱动程序之前获取我的catkin工作区。

这是我正在尝试运行的 bash:

#!/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

运行 bash 时无法执行子进程源(没有此类文件或目录)

最佳答案

似乎问题出在引用上,它应该看起来像这样

gnome-terminal -e "bash -c 'source ~/bebop_ws/devel/setup.bash;roslaunch bebop_driver bebop_node.launch ip:=10.202.0.1'"

关于bash - 如何修复 "Failed to execute child process source (no such file or directory)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56589734/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com