Search Results

Search: Posts Made By: jakefish
8,419
Posted By Don Cragun
On UNIX and UNIX-like systems, you can think of a...
On UNIX and UNIX-like systems, you can think of a foreground job as one that is connected to a keyboard and a background job is one that is not connected to a keyboard at that time. In a given...
8,419
Posted By Chubler_XL
Have you considered multiple instances of this...
Have you considered multiple instances of this script running at once? pgrep allows matching only to processes from the current session with --session 0 this may stop you subshell hanging around...
8,419
Posted By RudiC
I guess that all the chromes you see "several...
I guess that all the chromes you see "several times during actual browsing" are child processes created / spawned by the parent chrome. When killing that, all child processes will disappear as well....
8,419
Posted By bakunin
Yes, exactly. The command kill sends a signal to...
Yes, exactly. The command kill sends a signal to a (exactly one) process, identified by the given process ID. Issue a

kill -l

to see a list of signals your system is able to send. killall, on...
8,419
Posted By bakunin
It is time to correct a few of my not-so-precise...
It is time to correct a few of my not-so-precise statements above. Suffice it to say i learned something new myself yesterday. Many thanks to RudiC who pointed out my misconception to me.



A...
8,419
Posted By bakunin
What RudiC is trying to show you is the...
What RudiC is trying to show you is the following: you have one script:



And in another script you call it and put it in the background:



In fact you need to take out your comments or at...
8,419
Posted By RudiC
Not sure the killall will work satisfyingly ......
Not sure the killall will work satisfyingly ... kill $PID will.

Just append the kill command - whichever you use - to the chrome.sh script so it will execute when chrome terminates.
8,419
Posted By bakunin
In addition to what my colleague RudiC already...
In addition to what my colleague RudiC already said: please always state your OS, its version, your shell, its version and perhaps other relevant properties of your environment depending on your...
8,419
Posted By RudiC
Welcome to the forum. One option would be...
Welcome to the forum.


One option would be to create a wrapper script that, when launched / clicked,

- puts above loop into background, keeping its PID
- runs chrome in foreground until...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 02:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy