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

List:       kde-print
Subject:    RE: Me too: "Kprinter has stopped working - Unable
From:       "Goffioul Michael" <goffioul () imec ! be>
Date:       2007-01-30 12:27:34
Message-ID: 38C0C9E3083ADB42BFFFC6C2A8B012CE05FA97D4 () WINEX2 ! imec ! be
[Download RAW message or body]


> Good idea. But trying it only proofs in a different way, that 
> the "dcop kded kdeprintd print" call fails:
> 
> 
>   (a) if "/tmp/debug.txt" does already exist:
> 
>       dcop kded kdeprintd print "touch" '(' "/tmp/debug.txt" ')' false
> 
>       Error message pops up, see below (*) for its content.

Use something like:

dcop kded kdeprintd print "touch /tmp/debug.txt" '(' "/tmp/debug2.txt"
')' false

where /tmp/debug.txt does not exists and /tmp/debug2.txt exists. What's
happening internally is that:
1) kdeprint checks the existence and readability of the files given as
second argument
2) kdeprint builds the command to execute by taking the first argument
and replacing the tag "$out" with the list of files given as second
argument; then it executes the command
3) kdeprint removes the files given as second argument if the 3rd
argument
is true

So, for the command above, step 1 will succeed. And if step 2 also
succeeds
the file /tmp/debug.txt should be created.

Michael.
_______________________________________________
kde-print mailing list
kde-print@kde.org
https://mail.kde.org/mailman/listinfo/kde-print

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

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