[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#36824: exit of pre-command (German-version of kmail: "Vo
From:       Bjoern Kahl <Bjoern.Kahl () kiel ! netsurf ! de>
Date:       2002-01-05 10:01:27
[Download RAW message or body]


 Hallo Michael!

 [ quotings reformated]

On 05-Jan-02 Michael Häckel wrote:
>  On Friday 04 January 2002 23:48, bjoern.kahl@kiel.netsurf.de wrote:
> >
> > While KMail is waiting, the script does *not* show up in
> > pstree (or ksysguard). This may be because of a fast
> > termination of the script (just a two-liner).

>  Then I'm actually 99.8% sure, that the script simply doesn't
>  finish. You probably see only the commands the script executes
>  in ksysguard and not the script itself.

 There is nothing in the script that could block forever.
 If I run the script in bash, it terminates after xx seconds.

> > Please feel free to ask, if you need more information. (Or
> > some of my sentence are unreadable).

>  Well, how does your script look like?

 The script follows:
 - - - - 8< - - - - 8< - - - - 8< - - - -
#! /bin/bash

# mailtransfer (am Gateway) in zwei Minuten anstossen
# (der sleep-Befehl dient nur zum Testen)

/usr/bin/at now + 2 minutes <<EOT
/usr/local/bin/execonline sleep 30 &
/usr/local/bin/runjob -r 11
EOT

# Ende
 - - - - >8 - - - - >8 - - - - >8 - - - -

 Startingt the script from bash results in:

 - - - - 8< - - - - 8< - - - - 8< - - - -
bj-k6:~ # time /usr/local/bin/queuemail.sh
warning: commands will be executed using /bin/sh
job 14 at 2002-01-05 10:57

real    0m0.039s
user    0m0.030s
sys     0m0.010s
 - - - - >8 - - - - >8 - - - - >8 - - - -

Well, obviously to short to show up in pstree.


 Hope that helps

  Bjoern

-- 
+-----------------------------------------------------------------------+
|      Björn Kahl ++ Im Kuckucksschlag 14 ++ 67663 Kaiserslautern       |
|   Tel.: (ISDN) 0631 3618532 ++ E-Mail: Bjoern.Kahl@kiel.netsurf.de    |
+-----------------------------------------------------------------------+
 Weitergabe und/oder gewerbliche Nutzung meiner Adresse/TeleNr untersagt.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic