This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo | |
| $ yum install devtoolset-2-gcc devtoolset-2-binutils | |
| $ yum install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Uses a PID file to add daemon-like behavior to an arbitrary program. | |
| ################################################################################ | |
| usage() { | |
| echo "Usage: `basename $0` PROGRAM {start|stop|restart|force-stop|force-restart|status} [PIDFILE|PID]" >&2 | |
| echo "Where: PROGRAM is an executable file." >&2 | |
| echo " PIDFILE is the file that contains (or will contain) the PID." >&2 | |
| echo " PID is a process id to use in place of a PIDFILE." >&2 | |
| } |