Tagged Questions
2
votes
1answer
70 views
Quick and dirty way to run a process more than once
I am looking for very simple bash script that would allow me to launch a process a few times. What's essential to me is that after the processes terminate, everything will clean up automatically.
...
2
votes
2answers
109 views
add “check if fetchmail is running” to this script
while ! postqueue -p | grep -q empty; do
sleep 1
done
killall wvdial
this script checks if my mail queue is empty, then disconnects my modem. now i would like to add also a checking to fetchmail ...
2
votes
1answer
34 views
Start and stop multiple executable for easy debugging
I'm debugging a networking project, which involves interacting of 3 programs, ie a server, two different clients. However I find it difficult to start and stop them for debugging. Some methods I have ...
2
votes
3answers
109 views
How can I test if a program is running from within a script
Let's assume that another user started a bunzip process, and I have a script that I'd like to start running after that bunzip finishes. What's the best way to check from inside my script that the ...
3
votes
2answers
243 views
retrieving names of all open pdf files (in evince or otherwise)
I constantly have many PDF files open. These are usually downloaded using chrome and immediately opened using evince.
I sometimes want to persist the state of all my open PDF files, so I could ...