Tag Info

New answers tagged


I created a script that does this, using cgmanager which is used in Ubuntu. One advantage is that this does not require root access. Note that cgroup management is a bit distro specific, so I don't know if this works on distros that use systemd cgroup management. #!/bin/sh set -eu if [ "$#" -lt 2 ] then echo Usage: `basename $0` "<limit> ...


The following script should do the job. LOG_SIZE=500000 NUM_SEGM=2 while getopts "s:n:" opt; do case "$opt" in s) LOG_SIZE=$OPTARG ;; n) NUM_SEGM=$OPTARG ;; esac done shift $((OPTIND-1)) if [ $# == 0 -o -z "$1" ]; then echo "missing output file argument" exit 1 fi OUT_FILE=$1 shift NUM=1 while :; do dd bs=10 ...

Top 50 recent answers are included