Search Results

Search: Posts Made By: jakefish
6,411
Posted By jakefish
>> On UNIX and UNIX-like systems, you can think...
>> 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. <<

Thank...
6,411
Posted By jakefish
@Chubler_XL--thank you for the idea while...
@Chubler_XL--thank you for the idea

while pgrep --session 0 links

I ran that in both the Chrome and Links2 scripts, but the script does continue to spawn itself, with a maximum of three...
6,411
Posted By jakefish
tail In my searches about this original...
tail

In my searches about this original script, I had read about tail, but had not seen as clear an example as yours. That is, unfortunately, an issue with general googling. Before coming here, I...
6,411
Posted By jakefish
#!/bin/sh ( sleep 1 while pgrep chrome ...
#!/bin/sh
( sleep 1
while pgrep chrome
do xdotool search --name Chrome 2>/dev/null |
while read id
do xdotool set_window --name "Chrome" $id
done
...
6,411
Posted By jakefish
#!/bin/sh ( while sleep 1; do xdotool search...
#!/bin/sh
( while sleep 1; do
xdotool search --name Chrome 2>/dev/null | while read id; do
xdotool set_window --name "Chrome" $id
done
done) &
google-chrome-stable
kill -15 %1

Your...
6,411
Posted By jakefish
I posted here, thinking that would probably be...
I posted here, thinking that would probably be the way. But my scripting skills are not up to inventing such variables.

But I'm relieved that there isn't an obvious way to simply string those...
6,411
Posted By jakefish
Hmm, then I'm still a little lost. First...
Hmm, then I'm still a little lost.

First script:

#!/bin/sh
while sleep 1; do
xdotool search --name Chrome 2>/dev/null | while read id; do
xdotool set_window --name "Chrome" $id
done...
6,411
Posted By jakefish
Hey, that did it. Thank you, thank you. ...
Hey, that did it. Thank you, thank you.

Putting the kill command in the first script alleviates the need for separate kill script. With your help, I'm down to two scripts that successfully close...
6,411
Posted By jakefish
Thank you for the quick replies and the...
Thank you for the quick replies and the suggestions for proper posting.

I'm unfamiliar with wrapper scripts, but in theory, is this what I'm looking for:

#!/bin/bash...
6,411
Posted By jakefish
Script Works But Need It to Exit Upon Closing Program [SOLVED]
Running Xubuntu 16.04 with shell version "GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)," I have a working script that consistently renames a Chrome window:

#!/bin/sh
while sleep 1;...
Showing results 1 to 10 of 10

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