shell - How to find the similar command in BASH? -


environment

  • bash in normal linux
  • executable file: /usr/bin/eexxee

requirement

i need run follow command once: bash eexxee -a xxxx -b xxxx , can start command these follow similar command-lines: bash eexxee -b xxxx -a xxxx /usr/bin/eexxee -b xxxx -a xxxx /usr/bin/eexxee -a xxxx -b xxxx want write shell/python script start command checking if similar command-line running.

question

how can judge matching of these similar command-lines?

not sure how differentiation need, these 2 should enough:

  1. lsof /usr/bin/eexxee
  2. ps fxau | grep eexxee

Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -