No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[code] #!/bin/bash # Days and Procs declaration DAYS="3" PROCS="dyyno" # 3 days Old date AGO=$(date --date="$DAYS days ago" +"%b %d") # Getting pids PIDS=$(ps eaxo bsdstart,cmd,pid | egrep "^$AGO"' | egrep "$PROCS" | awk '{ print $4}') # killing the processes echo "Killing $PROCS process created $AGO days ago" kill … |
|
Hi, Does anyone know the script or tools needed to constrain the throughput. Actually, I want to setup an environment to allow computer A to transfer data to computer B on a constrained communication channel. Any kind of transfer is fine to verify the setup, e.g. an ftp file transfer … |
|
Hi, I want to read a line in the file and check the content in the line, for example if the line starts with the text "sample test ..." i want to check wether the line starts with sample, but my code always return no result even thou the file … |