Re: [gentoo-user] Emerge - success or error

2003-10-26 Thread Stephan Linkel
Norbert Kamenicky wrote:
It's really trivial ... just write simple wrapper for it, i.e. like this:

#!/bin/bash
/usr/bin/emerge  $*
echo $?  return-code-from-emerge
Except of running emerge directly, you will run wrapper (with the same 
arguments) ...
Yes, this would be one option to do this. But, you know, there's always 
a bigger nerd...I do not want to write something that already exists.

But, thanks for your suggestion. I used something similiar...

Bye
Stephan


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [gentoo-user] Emerge - success or error

2003-10-25 Thread Stephan Linkel
Ciaran McCreesh wrote:
You can use the return code (I'm afraid I don't know Tcl, but in many
other scripting languages the var is $?). If portage exited without
errors, the value will be 0. If something went wrong, it'll be non-zero.
No, I just can not use the return code, because my way to call the 
emerge does not allow this. I'd have to re-structure the whole prog the 
get the return code.
So, there is no way the get the status of the last emerge like 'emerge 
status'?
Or is there any way to redirect the return code?

Bye
Stephan
--
[EMAIL PROTECTED] mailing list


[gentoo-user] Emerge - success or error

2003-10-24 Thread Stephan Linkel
Hi ML!

I've got a problem:
I want to write a little prog that emerges automatically a few packages 
(e.g. a 'emerge -uUD world') but skips failing packages and at the end 
shows me which packages were emerged succesfully and which not.

So, my problem is the following:
I use Tcl as program language and use the following to extract the 
stdout and stderr from the emerge process:

	set stdoutChannel [open | emerge -uUD $package 2@$stderrChannel RDWR]

So I have the stdout in $stdoutChannel and stderr in $stderrChannel, but 
I have no access to the exit code of the emerge. Or I do not know how to 
get the exit code.

Finally, my question:
How can I know if the emerge has finished successfully or if it failed? 
Is there any string that emerge prints out at the very end of a 
successful emerge process or is there a method that gives me the status 
of the last emerge?

Thanks for every suggestion!
Bye
Stephan
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] mozilla mail not working

2003-08-24 Thread Stephan Linkel
Thomas Stoddard wrote:
Ever since I emerged mozilla 1.4 the mail component has stopped working. 
I cannot send or receive messages. I am sending this from my debian sarge.
Are there any errors? I had a problem, that an error message occured 
when I clicked on 'compose' or 'reply' which said, that I should try one 
more time...

The debian mozilla package is version Mozilla Debian Package 
1.0.0-0.woody.1. I have gentoo and debian setup to use a common /home. I 
did this so that whichever OS is active I can see any email received.

Prior to the 1.4 emerge everything worked as planned.
My problem was in fact, that I tried to use my old (1.3) profile.
The solution was just deleting the most files of the profile (everything 
but email-folders, bookmarks and address book). After that, everything 
was fine.

HTH

stephan

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] iptables trouble

2003-07-15 Thread Stephan Linkel
Hi list!

Sebastian Bergmann schrieb:
iptables v1.2.8: can't initialize iptables table `filter': iptables who?
(do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
  Any idea what's wrong?
I had the same problem! When I played around a bit with my 
kernel-settings, suddenly it worked.
So, I say: check your kernel-settings, perhaps switch the one or the 
other option and try try try...

Ciao
Stephan


smime.p7s
Description: S/MIME Cryptographic Signature