ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

What is the purpose of `exec "$@"` in ros_entrypoint.sh ?

asked 2016-08-08 17:17:17 -0500

spmaniato gravatar image

updated 2016-08-08 17:19:15 -0500

Looking at the Dockerfiles here: https://github.com/osrf/docker_images... , what is the purpose of exec "$@", i.e., the last line in ros_entrypoint.sh ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-08-08 19:08:46 -0500

ahendrix gravatar image

exec "$@" causes the shell to exec the arguments that were passed in.

In this case, the ENTRYPOINT script is setting up the ROS environment and then executing the command that you gave it.

The docker documentation for ENTRYPOINT goes into more detail about what ENTRYPOINT files are and how they work.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-08-08 17:17:17 -0500

Seen: 2,670 times

Last updated: Aug 08 '16