Advertisement
kamil2321

Sprawdzanie czy jest uruchomiony kompilator

Dec 13th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. #!/bin/sh
  2. PROCESS="compile_source"
  3.  
  4.     PIDS=`ps cax | grep $PROCESS`
  5.     if [ -z "$PIDS" ]
  6.     then
  7.     echo -e "Mozesz skompilowac source."
  8.     else
  9.     echo -e "Nie mozesz skompilowac source, gdyz one teraz jest kompilowane"
  10.     fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement