UNIX/Linux: Suspend and Resume Process in Intervals
AVING spent over an hour searching the Web and asking around the Web for a way of automating suspension and continuation (SIGCONT and SIGINT) of process execution in GNU/Linux, I finally found a script from Q. Boiler, which I have modified a bit to make it simpler to use.
Sometimes the scheduler used in GNU/Linux systems is so resources-greedy that it will let a process take up all the CPU/core cycles and in some cases, as in mine, lead to overheat and system shutdown (my ventilation seems to be flawed or maybe to blame is the unusual summer weather here in the UK because this only ever happens in summer). Anyway, having struggled to find a way to nice a process sufficiently or send the process a universal system signal to help reduce its load on the system, I finally found something which can automate what I have been doing manually (CTRL+Z and fg), especially when rendering some Blender3D clips for my own use. Here is the simple script to be run:
#!/bin/bash # Based on a script from Q. Boiler (q.boiler@quantprinciple.com) var0=0 LIMIT=20 PROCESSID=$1 SLEEP=30 RUN=10 pid=$PROCESSID while [ "$var0" -lt "$LIMIT" ] do kill -SIGSTOP $pid echo "Suspending $pid" sleep $SLEEP kill -SIGCONT $pid echo "continuing execution $pid" sleep $RUN done echo "killing $pid" kill -SIGINT $pid
The way to use this is to save the above as a script, say script.sh, give it running permissions, e.g. chmod 755 script.sh, then call it with the process ID as the argument name, e.g. script.sh 46223. The intervals for running can be set within the script or with slight modifications be passed as arguments to the script (this is not crucial for my needs). In case someone else runs into the same problem I have decided to document this publicly.






Filed under: 
penShot is a fantastic video editor for those — who like myself — are not video editing experts and cannot afford to spend hours just learning how to use a video editing program.
But what about all the valuable news stories? Not too long ago DesktopLinux and LinuxDevices went dark. The domains were left to rot and the articles accumulated there for over a decade became inaccessible, essentially deleted from the Web. It has come to our attention, after some inquiries with relevant individuals, that people who contributed to DesktopLinux and LinuxDevices — including the founders — do wish for the content to return online of for the copyrights or the articles to be changed — explicitly or implicitly — such that all the articles can be brought back to the Web by those to whom DesktopLinux and LinuxDevices were important resources or a matter of personal contribution.


ast year I asked Dr. Stallman to comment on what Ubuntu/Canonical had done with regards to privacy and since then he has expressed his view very clearly, most recently in this video.
ometimes we may wish to allow users, logged in remotely (away from their main workstations) or wishing to connect to another host where essential files are located, to access those files. A convenient way to achieve this without proprietary protocols is SSH in SCP ‘mode’, meaning that OpenSSH is being used to gather information about remote filesystems and pass files across the network upon demand. There is a convenient ways to manage this in UNIXy file managers These are unified by the universal command-line syntax, but the front ends may vary and be based on Qt, GTK, etc. Here is a demonstration of how it is to be achieved in Dolphin (KDE) in order to remotely log in to an SSH-enabled (running 






