Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged


The following command will terminate all inactive screens: perl -e 'while (map { kill 9, [split /\./]->[0] } grep { /Detached/ } split /\n/, qx{screen -ls}) { sleep 1 } exec qw(screen -wipe)'


Improving @Gilles' answer by providing a "find and replace" approach for existing scripts: Add this snippet at the beginning of your code: declare -a timeout_pids exec 21>&1; exec 22>&2 # backup file descriptors, see my_timeout(){ local args tp ret args="$@" timeout $args & tp=$! ...


run yum remove httpd yum erase httpd httpd-tools apr apr-util

Top 50 recent answers are included