Answer to Question #242209 in Computer Networks for hussain

Question #242209

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.


1
Expert's answer
2021-09-30T00:58:22-0400
  1. PID=$(docker inspect --format {{.State.Pid}} <container_name_or_ID>)

nsenter --target $PID --mount --uts --ipc --net --pid kill -SIGINT <PID of your program inside your container>



  1. docker kill --signal="<signal>" <container name or id>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS