<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 21.10.2014 10:49, schrieb Mathias
Dufresne:<br>
</div>
<blockquote
cite="mid:CABwLUpsGvdCgkcjobnJyvBhxFbCAkfTZ2yGSMVjr76+Jc7hTSA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Hi all,<br>
</div>
<div><br>
</div>
Why not looking for the process which block your autostart
script?<br>
</div>
To do that you can use "ps" with "f" options to show
processes as tree:<br>
ps axf<br>
</div>
This will show a tree of running processes.<br>
<br>
</div>
<div>Now to be more precise:<br>
</div>
<div>ps axf | grep autostart.sh -B6 -A5<br>
</div>
<div>This will show only lines for your both autostart scripts
with the 6 previous lines and the 5 next.<br>
<br>
</div>
<div>As processes are shown as a tree, you will see what process
is blocking your script. So you will be able to work on that
blocking command for it become a non-blocking command.<br>
<br>
</div>
<div>Now some notes:<br>
</div>
<div>- read the manual.<br>
</div>
<div>- RFTM, really.<br>
</div>
<div>- take in consideration the problem is generally between
the keyboard and the chair. In others words, a
misconfiguration is not a bug : )<br>
</div>
<div>- GNU/Linux system are composed by numerous bricks
(software bricks, but still), each one depending on others and
often with things depending of them. On these systems you can
change by yourself a lot of things, configurations and
behavior, but this freedom has a cost: the time to understand
once you produced a bad configuration ^^<br>
</div>
<div><br>
</div>
<div>Some notes about scripts:<br>
</div>
<div>Scripts are a bunch of commands executed sequentially,
nothing else. This means a command will start only if the
previous one as finished or if the process has been forked
(using ampersand).<br>
</div>
<div>Any script will close itself once it has finished to run
all commands inside it. Finished to run means here each
command has finished its job or has been forked.<br>
<br>
</div>
Cheers and welcome in this wonderful world that is open source
world :)<br>
<div>
<div><br>
</div>
<div>mathias<br>
</div>
</div>
</div>
</blockquote>
Since Mii has come out as a "Slacky", I'm sure, (s)he has read tons
of mans and docs,<br>
and can't be <span class="b5">considered as a beginner.<br>
PEBKAC is common in computing, and you can't eliminate it, but the
main issue is the<br>
huge amount of stuff you have not just to read, but also to
understand and to practise !<br>
Slackware is known as a non-pampering system, and even
Bash-scripting can become<br>
quite complex.<br>
<br>
Putting commands into parentheses in Bash means, opening a
subshell, which has its<br>
own PID.<br>
Adding an ampersand after a command or a subshell is </span><span
class="b5">executing it in the background.<br>
In the Openbox autostart, it must be after a command, which is not
finishing, i.e. is<br>
starting and keeps running.<br>
So, constructs like "( command1 ) & ;</span><span class="b5">
( command2 ) &" are for parallel processing.<br>
If you need commands being executed in a special order, you have
to put a "wait" after<br>
the</span><span class="b5"><span class="b5"> background </span>subshell(s),
or don't use </span><span class="b5">parallel processing.<br>
The "sleep" just gives the former command a little time to get
ready, you have to know<br>
how much time it needs.<br>
<br>
I have never used a system without display manager, feeling comfy
with my pampering<br>
system (#! with Slim), but what about the "</span><span class="b5">dbus-launch"
in your autostart, maybe that is<br>
causing the problem, idk.<br>
<br>
Hope, I have more cleared than messed up,<br>
<br>
Micha<br>
</span><span class="b5"></span><b class="b5"> </b>
<blockquote
cite="mid:CABwLUpsGvdCgkcjobnJyvBhxFbCAkfTZ2yGSMVjr76+Jc7hTSA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2014-10-21 8:36 GMT+02:00 E R <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:ears.box@gmail.com" target="_blank">ears.box@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">TYPO
before;<br>
<span class=""><br>
Also something I forgot to mention, that application in
question, I<br>
</span>don't see them running in htop when using sleep,
instance/INSTEAD I just see<br>
it showing autostart.sh running....<br>
<div class="HOEnZb">
<div class="h5"><br>
On Mon, Oct 20, 2014 at 8:35 PM, E R <<a
moz-do-not-send="true"
href="mailto:ears.box@gmail.com">ears.box@gmail.com</a>>
wrote:<br>
> So I've gone through everything again and all I can
think of.<br>
><br>
> Again, for some reason using the sleep cmd to run
an app causes this<br>
> and this shouldn't happen.<br>
><br>
> Also something I forgot to mention, that
application in question, I<br>
> don't see them running in htop when using sleep,
instance I just see<br>
> it showing autostart.sh running....<br>
><br>
> So here's how I made it look now;<br>
><br>
> # This shell script is run before Openbox launches.<br>
> # Environment variables set here are passed to the
Openbox session.<br>
><br>
> # D-bus<br>
> if which dbus-launch >/dev/null && test
-z "$DBUS_SESSION_BUS_ADDRESS"; then<br>
> eval `dbus-launch --sh-syntax
--exit-with-session`<br>
> fi<br>
><br>
> # Run XDG autostart things. By default don't run
anything desktop-specific<br>
> # See xdg-autostart --help more info<br>
> #DESKTOP_ENV="OPENBOX"<br>
> #if which /usr/libexec/openbox-xdg-autostart
>/dev/null; then<br>
> # /usr/libexec/openbox-xdg-autostart $DESKTOP_ENV<br>
> #fi<br>
><br>
> compton --config ~/.config/compton -b --logpath
/tmp/compton.log &<br>
> tint2 &<br>
> redshift-gtk >/dev/null 2>&1 &<br>
> /usr/lib64/xfce4/notifyd/xfce4-notifyd &<br>
> xbindkeys &<br>
> eval `cat $HOME/.fehbg` &<br>
><br>
> # For use with BFS<br>
> #sudo schedtool -n -20 -I `pidof X`<br>
><br>
> To be honest I don't need anything to sleep and now
I see tint2 and<br>
> redshift appearing in htop...<br>
><br>
> Hopefully Dana, OH DANA! :) What's going on here?<br>
><br>
> I still say --> BUG hehe... :)<br>
><br>
><br>
> On Mon, Oct 20, 2014 at 8:17 PM, E R <<a
moz-do-not-send="true"
href="mailto:ears.box@gmail.com">ears.box@gmail.com</a>>
wrote:<br>
>> Yes I added the brackets back.<br>
>><br>
>><br>
>> For the problem.culprit I'm saying it appears
to be openbox because if<br>
>> I make the autostart command as sleep like
this; ( sleep 1 && tint2 )<br>
>> & then I see an instance of autostart.sh
running in htop, but if just<br>
>> made tint start like this; tint2 & nothing
appears. You understand<br>
>> now?<br>
>><br>
>> I know that sh starts the script, that is not
what I was talking<br>
>> about. Tint2 is an application, autostart.sh is
a script, so I don't<br>
>> really get why it should appear in htop as a
running process is what I<br>
>> meant...<br>
>><br>
>> I've always used it as autostart.sh, but I'll
rename it and try...<br>
>><br>
>> I don't use a display manager, just startx and
I'm running Slack...<br>
>><br>
>> Also my understanding is only something you
want to sleep you put<br>
>> brackets around it, not just anything that ends
in ampersand &...<br>
>><br>
>> So as I mentioned the culprit seems to be
running a command as; (sleep<br>
>> 1 && appname) &<br>
>><br>
>> On Mon, Oct 20, 2014 at 10:03 AM, TT <<a
moz-do-not-send="true"
href="mailto:turkuting@gmail.com">turkuting@gmail.com</a>>
wrote:<br>
>>> E R wrote:<br>
>>>><br>
>>>> tint2 & redshift are both showing
these instances, but if I<br>
>>>> don't make them sleep then I don't even
see one instance of autostart<br>
>>>> running...<br>
>>><br>
>>> on second thought, your bash syntax is
probably off somewhere here:<br>
>>> try putting brackets around everything that
has a "&" in the end - and maybe<br>
>>> something else, don't know, just guessing
here.<br>
>>> try commenting out lines until you find the
CULPRIT.<br>
>>>><br>
>>>> compton --config ~/.config/compton -b
--logpath /tmp/compton.log &<br>
>>>> sleep 1s && tint2 &<br>
>>>> sleep 2s && redshift-gtk
>/dev/null 2>&1 &<br>
>>>> /usr/lib64/xfce4/notifyd/xfce4-notifyd
&<br>
>>>> /usr/bin/xbindkeys &<br>
>>>> eval `cat $HOME/.fehbg`<br>
>>>><br>
>>>><br>
>>><br>
>>>
_______________________________________________<br>
>>> openbox mailing list<br>
>>> <a moz-do-not-send="true"
href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
>>> <a moz-do-not-send="true"
href="http://icculus.org/mailman/listinfo/openbox"
target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
_______________________________________________<br>
openbox mailing list<br>
<a moz-do-not-send="true"
href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a moz-do-not-send="true"
href="http://icculus.org/mailman/listinfo/openbox"
target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
openbox mailing list
<a class="moz-txt-link-abbreviated" href="mailto:openbox@icculus.org">openbox@icculus.org</a>
<a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/openbox">http://icculus.org/mailman/listinfo/openbox</a>
</pre>
</blockquote>
<br>
</body>
</html>