linux - suspend a shell command without pid -


i need $command & stop should execute command , suspend it. application later resumes command complete results.

i understand job can suspended stop signal corresponding pid.

$kill -sigstop 12753 

when execute command, barely know pid. there command involved take pid , required. want avoid command , time interval.

basically application measure of network performance. trigger commands put them in halt mode. halted commands resumed per kind of traffic needed.

the process id of started background command available in shell parameter $!:

$ command & kill -sigstop $! 

(check documentation shell's implementation of kill correct format.)


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -