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:
lsof /usr/bin/eexxee
ps fxau | grep eexxee
Comments
Post a Comment