Need Help Related with flag

Hello,

My golang web application is running but i need rune the some task by using command line with flag then shutdow that related task without disturb main application, please tell me,

ex: ./binaryName --version like that i will try to rune ./binaryName --someflag for running some task

Show us the relevant part of your code.

many number of lines have ,if i provide flag i can able get some dynamically result or not without disturb runnning main application,

Thank you

I do assume, that your running server and whatever you call with command line switches are separate processes from your operating systems point of view?

If so, I do not understand how you think they could affect each other without using some form of IPC explicitly.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.