Tagged Questions
3
votes
3answers
141 views
“Virtual” shell, ie. jailing an user inside a process
The title might not say much about the issue at hand so let me get straight to the point.
Let's assume I have a casual user who can log in to the system via SSH into a bash shell. I also have a PHP ...
2
votes
2answers
174 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
221 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
60 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
416 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
328 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 ...