1. Dynamic loading of functions
a. Your main program and interpret function should be compiled separately. In the file ~/.bash_profile export the environment variable LD_LIBRARY_PATH export LD_LIBRARY_PATH=.
This will take effect the next time you log in. To make this effective in your current session you would have to export the variable manually.
i. replace the default config file with your 2nd config file and send a SIGHUP signal to your program. Verify that your program is now running the implemented functions.
ii. Include code that loads the functions (see example pluginShell.c) and modify it so that it also loads help.
nsenter --target $PID --mount --uts --ipc --net --pid kill -SIGINT <PID of your program inside your container>
Comments
Leave a comment