Re: New line in bash variables pain

2006-11-14 Thread Amos Shapira
On 14/11/06, Maxim Vexler <[EMAIL PROTECTED]> wrote: Hi list, any bash gurus in the house ?I'm having the most annoying issue with bash, one related to spacedelimited variables.I'd like to get a list in the form of :<<>>Instead I'm getting:<<

New line in bash variables pain

2006-11-14 Thread Maxim Vexler
Hi list, any bash gurus in the house ? I'm having the most annoying issue with bash, one related to space delimited variables. I'd like to get a list in the form of : <<< user1 password1 user2 password2 Instead I'm getting: <<< user1 password1 user2 password2 Here's an example: san-svn:/

Re: New line in bash variables pain

2006-11-14 Thread Ehud Karni
On Tue, 14 Nov 2006 11:56:18 Maxim Vexler wrote: > > I'm having the most annoying issue with bash, one related to space > delimited variables. [snip] > > Here's an example: > > san-svn:/var/lib/svn# cat passwd.fake > [users] > user1 = password1 > user2 = password2 > [snip] > > I'd like to automat

And in unrelated news - Sun releases JDK under the GPL

2006-11-14 Thread Oded Arbel
--=-ZsO0KUhEhfDGBnOEuBju Content-Type: text/plain Content-Transfer-Encoding: 7bit https://openjdk.dev.java.net/ Which possibly means I should be able to download the sources and compile them, but in the instructions for downloading and building the Hotspot VM, I can't seem to be able to checkout

Re: New line in bash variables pain

2006-11-14 Thread Maxim Vexler
On 11/14/06, Maxim Vexler <[EMAIL PROTECTED]> wrote: [snip] san-svn:/var/lib/svn# for pair in `awk '/^[^[].+[^\n]$/ {print $1, $3}' passwd.fake`; do xargs "$pair" | echo; done san-svn:/var/lib/svn# for pair in `awk '/^[^[].+[^\n]$/ {print $1, $3}' passwd.fake`; do xargs "$pair" | echo -; done -

Re: New line in bash variables pain

2006-11-14 Thread Valery Reznic
What about something like following: while read line; do case "x$line" in x) # empty line, do nothing ;; x[ | x]) # you don't like brackets, do nothing too ;; *) # Everything else set -- $line # Now $1

Re: Shared Library entry point

2006-11-14 Thread Gilad Ben-Yossef
Ami Chayun wrote: Hi all, I have a shared library, and I want a specific function to be called once the library is loaded. Dlls has the notorious DllMain function. Is there a method of achieving the same in an .so file? 5.2. Library constructor and destructor functions Libraries should e

Re: Shared Library entry point

2006-11-14 Thread Baruch Even
* Ami Chayun <[EMAIL PROTECTED]> [061114 16:48]: > Hi all, > I have a shared library, and I want a specific function to be called once the > library is loaded. > > Dlls has the notorious DllMain function. Is there a method of achieving the > same in an .so file? Check the document at http://peo

Re: New line in bash variables pain

2006-11-14 Thread Ariel Biener
On Tuesday 14 November 2006 12:34, Ehud Karni wrote: I don't understand why all this voodoo is needed. If you have a list of spaced delimited values and want to use a for or while loop to read them, just fix $IFS locally (the default of IFS is tab or space or newline). You can make $IFS only be ne

Re: Novell and Microsoft

2006-11-14 Thread Ariel Biener
On Tuesday 14 November 2006 02:45, Amit Aronovitch wrote: > > I'll be happier if you convince me that this is all completely wrong... How can one convince you that your prophecy of something that has not happened yet is wrong ? It may be true, and then again, it may be not true. No one knows. I

OT: SparcStation monitor needed

2006-11-14 Thread Yehoshua (Shay) O'Hayon Suchar
Hello, does someone has an unused SparcStation Monitor to sell/giveaway? please contact me off-list to this address. TIA -- Regards, shay = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message

Re: OT: SparcStation monitor needed

2006-11-14 Thread Jonathan Ben Avraham
We used a regular VGA monitor. Maybe you need an adapter cable. - yba On Tue, 14 Nov 2006, Yehoshua (Shay) O'Hayon Suchar wrote: Date: Tue, 14 Nov 2006 14:45:41 +0200 (IST) From: "Yehoshua (Shay) O'Hayon Suchar" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: OT: SparcStation monitor nee

Shared Library entry point

2006-11-14 Thread Ami Chayun
Hi all, I have a shared library, and I want a specific function to be called once the library is loaded. Dlls has the notorious DllMain function. Is there a method of achieving the same in an .so file? Ami = To unsubscribe, send m

Re: Shared Library entry point

2006-11-14 Thread Ilya Konstantinov
Yes, see this: http://tldp.org/HOWTO/Program-Library-HOWTO/miscellaneous.html#INIT-AND-CLEANUP Ami Chayun wrote: Hi all, I have a shared library, and I want a specific function to be called once the library is loaded. Dlls has the notorious DllMain function. Is there a method of achieving th

Re: New line in bash variables pain

2006-11-14 Thread Oded Arbel
On Tue, 2006-11-14 at 12:05 +0200, Maxim Vexler wrote: > On 11/14/06, Maxim Vexler <[EMAIL PROTECTED]> wrote: > san-svn:/var/lib/svn# for pair in `awk '/^[^[].+[^\n]$/ {print $1,$3}' > passwd.fake`; do echo "$pair" | xargs echo ; done > user1 > password1 > user2 > password2 I think you are approac

Re: OT: SparcStation monitor needed

2006-11-14 Thread Gil Freund
I have an adapter (was used on an SGI, but I THINK it's the same). You are welcome to it. e-mail of-list if interested. On 11/14/06, Jonathan Ben Avraham <[EMAIL PROTECTED]> wrote: We used a regular VGA monitor. Maybe you need an adapter cable. - yba On Tue, 14 Nov 2006, Yehoshua (Shay) O

"Living in a Community" Presentation on 19-November-2006 in Telux (W2L)

2006-11-14 Thread Shlomi Fish
Hi all! On Sunday, 19-November-2006 , the Tel Aviv Linux club will hold its "Living in the Community" presentation as part of the "Welcome to Linux" presentation series. The presentation will take place at 18:30 in room Shenkar 222 (Physics & Astronomy Building) of Tel Aviv University. The pre

Re: And in unrelated news - Sun releases JDK under the GPL

2006-11-14 Thread Meir Kriheli
Oded Arbel wrote: > --=-ZsO0KUhEhfDGBnOEuBju > Content-Type: text/plain > Content-Transfer-Encoding: 7bit > > https://openjdk.dev.java.net/ > > Which possibly means I should be able to download the sources and > compile them, but in the instructions for downloading and building the > Hotspot VM,

Re: New line in bash variables pain

2006-11-14 Thread Maxim Vexler
On 11/14/06, Oded Arbel <[EMAIL PROTECTED]> wrote: [snip] (IFS="$(echo)"; \ for pair in `awk '/^[^[].+[^\n]$/ {print $1,$3}' passwd.fake`; do echo "$pair"; done) In the second example, I force the record separator to be only the new line character (the output from 'echo'. I can probably use \n,

Re: New line in bash variables pain

2006-11-14 Thread michael
This was a very educational thread. Thanks for posing the question and the summary, and thanks everyone for the useful answers. I don't have a need for this just yet, but I have saved the thread as I am sure the answers will be useful sooner or later. I eagerly await the next educational thread.

Re: New line in bash variables pain

2006-11-14 Thread Oron Peled
On Tuesday, 14 בNovember 2006 22:31, Maxim Vexler wrote: > Thanks to everyone for the help, all solution worked. > To sum up the tips: Hey, what's the rush? I didn't have my take yet ;-) Let's do it in simple one liner: sed -e N -e 's/\n/ = /' passwd.fake Cheers, -- Oron Peled

Re: And in unrelated news - Sun releases JDK under the GPL

2006-11-14 Thread Oron Peled
On Tuesday, 14 בNovember 2006 21:26, Meir Kriheli wrote: > Oded Arbel wrote: > > > > https://openjdk.dev.java.net/ Excellent news, but let's have some fun as well. Browsing the svn I stumbled by mistake on: https://openjdk.dev.java.net/source/browse/openjdk/compiler/trunk/LICENSE?view=markup Hmm

Re: And in unrelated news - Sun releases JDK under the GPL

2006-11-14 Thread Diego Iastrubni
ביום שלישי 14 נובמבר 2006, 23:35, כתבת: > On Tuesday, 14 בNovember 2006 21:26, Meir Kriheli wrote: > > Oded Arbel wrote: > > > https://openjdk.dev.java.net/ > > Excellent news, but let's have some fun as well. > Browsing the svn I stumbled by mistake on: > https://openjdk.dev.java.net/source/browse

Re: Novell and Microsoft

2006-11-14 Thread Amos Shapira
On 15/11/06, Ariel Biener <[EMAIL PROTECTED]> wrote: The VMware/XEN/whatever bundle is not good for servers. It's good forengineering/software companies that want to create and dismantleAnd for hosting companies, which probably host the majority of the domains in the world... Back in 1999 when Sun

Re: OT: SparcStation monitor needed

2006-11-14 Thread Marc Volovic
On Tuesday 14 November 2006 16:01, Jonathan Ben Avraham quoth: > We used a regular VGA monitor. Maybe you need an adapter cable. > I can probably give or lend you an adapter. you need a fairly capable (Hz/KHz/MHz-wise) monitor I'd use a serial cable M -- ---MAV Marc A. Volovic Linguists do it c

Re: And in unrelated news - Sun releases JDK under the GPL

2006-11-14 Thread Amos Shapira
On 15/11/06, Meir Kriheli <[EMAIL PROTECTED]> wrote: Haven't used dev.java.net in a while. IIRC you can use the username "guest" and an empty password to checkout from svn. Yup. Confirmed. User "guest" and an empty password and browsing it beautifully through kdesvn. Thanks for the tip, I d