File | Date | Author | Commit |
---|---|---|---|
README.md | 2018-04-18 |
![]() |
[4d01e8] Update README.md |
debug.py | 2018-05-24 |
![]() |
[781c5d] Added small debug engine |
pyshmenu.py | 2019-11-17 |
![]() |
[68ae51] Changes methood names, set dflt option to "value" |
pyshmenu.sh | 2018-06-14 |
![]() |
[a860ce] Correction for not serviced curs_set (in web ssh ) |
Sample menu for shell scripts in python
Examples:
Get all java processes and go to logs subdirectory in current working directory of the process
result=$(ps -ef | grep java | awk '{ print $1, $2, $NF }' | pyshmenu.py --type value ) && result=$(echo $result | awk '{ print $2 }') && cd /proc/$result/cwd/logs