본문 바로가기
3. 개발 관련/정리 :: issue 와 resovle

global variable in bash

by kyuho.choi 2013. 11. 2.
728x90
반응형

Using shared memory

 

#] echo 0 > /dev/shm/foo

 

Increase `foo`'s value

 

#] echo $(($(</dev/shm/foo)+1)) > /dev/shm/foo

 

decrease `foo`'s value

 

#] echo $(($(</dev/shm/foo)-1)) > /dev/shm/foo

728x90
반응형

댓글