Re: Cool shell tricks (was: Re: file system questions)

2000-10-21 Thread Nadav Har'El

On Fri, Oct 20, 2000, Adi Stav wrote about "Cool shell tricks (was: Re: file system 
questions)":
> On Tue, Oct 17, 2000 at 04:59:48PM +0200, guy keren wrote:
> > there is a dirty method you could use. every once in a while (perhaps even
> > via a cron job), execute the command:
> > 
> > :>/path/to/.xsession-error
> 
> Cool.
> 
> I love these little shell tricks... I'm personally particularly fond
>..
> Does anyone else like these tricks? I'd love to hear about other
> people's.

When you know all the features of your shell (e.g., bash or zsh), it gives
you incredible power - both for interactive use and for programming (zsh
is a very capable programming language!).
To wield this power wisely, you'll need to know what exactly is available
to you, i.e., you should read the manual and/or texinfo documentation, and
see what cool features your shell has :)

6 years ago I switched from using AT&T's (David Korn's) ksh to using zsh
because of a few features I was missing (such as smart completion). The Zsh
executable was then much bigger than ksh (now on Solaris it is about 2.5
bigger) and at first I thought that it was bloatware, adding, besides the
2-3 features I wanted, 20-30 extra useless features. Since then I changed
my mind - I've probably used each and every feature in zsh for something,
and I can't believe I once settled for ksh :)

-- 
Nadav Har'El|Saturday, Oct 21 2000, 22 Tishri 5761
[EMAIL PROTECTED] |-
Phone: +972-53-245868, ICQ 13349191 |How much wood would a woodchuck chuck if
http://nadav.harel.org.il   |a woodchuck would chuck wood?

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: Cool shell tricks (was: Re: file system questions)

2000-10-21 Thread Adi Stav

On Sat, Oct 21, 2000 at 08:23:44AM +0200, Shaul Karl wrote:
> > Also, seems that not many people are aware of "process substitution"
> > in bash: you do something like "diff <(ls dir1) <(ls dir2)", and bash
> > runs two ls's, each writing to a FIFO, and diff gets the names of
> > these two FIFOs as parameters. Output redirection also works. I'm not
> > sure how portable it is, though.
> 
>   1.
> [08:05:37 /tmp]$ diff < (ls ~/setiathome/) <(ls ~/setiathome/amos/)
> bash: syntax error near unexpected token `(l'
> [08:06:04 /tmp]$ 
> 
> Ache, the space there is significant:
> 
> [08:17:12 /tmp]$ diff <(ls ~/setiathome/) <(ls ~/setiathome/amos/)

Yeah... Otherwise it's redirection.


>   2.
> This will only work if the "main" process (diff in this example) does not need 
> to seek the input since it can not do it with a FIFO. Or am I missing 
> something?

True... You can't. It would've been nice if Bash had the option to use
temporary files rather than FIFOs... But I don't know if it's needed
that often.

Just tried: both nvi and vim cope fine, Emacs refuses to read it (at
least with default setup and switches). Less requires you to use -f. 


- Adi Stav

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




samba server.

2000-10-21 Thread Mike Almogy

Hi list.
I installed a Samba server (from Redhat 6.2 disk) and now i'm trying to
access it.

I opened an account for my user and gave it a password.
I configured the /etc/smb.conf to be a master browser,prefer browser and
logon server.
the security schema is user.
I also add my workstation ip address to the hosts file.

It failed to authenticate my user password.

So i tried the encrypted passwrd option , create the smbpasswd file and
tried again.
Still i can't login.
The error msg is : the domain password is not correct, or you have no access
to the logon server.
I did not use any restrictions and i'm 100% positive that my password is
correct. i even changed it to be sure.

Any idea what i'm doing wrong ?
Can someone send me a smb.conf configuration that works as logon server ?

Thanks allot,

Mike



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: Cool shell tricks (was: Re: file system questions)

2000-10-21 Thread Nadav Har'El

On Sat, Oct 21, 2000, Adi Stav wrote about "Re: Cool shell tricks (was: Re: file 
system questions)":
> True... You can't. It would've been nice if Bash had the option to use
> temporary files rather than FIFOs... But I don't know if it's needed
> that often.

Zsh has an additional process substition that looks like =(...), for example
xdvi =(zcat file.dvi.gz)

That creates a temporary file (a regular file, not a pipe) with the output
of the command, and passes that name to another command. I use it very
often - usually in the form of the example above.
I almost never use the <(...) form: while it can be more efficiant, the
difference is barely noticable (on a modern computer) and many programs
(including xdvi) can't handle pipes as input files because they want to be
able to seek (rewind) into the file - so using temporary files instead of
a the pipe is like a "better safe than sorry".

I don't know if bash also has this form - check out its manual.

-- 
Nadav Har'El|Saturday, Oct 21 2000, 22 Tishri 5761
[EMAIL PROTECTED] |-
Phone: +972-53-245868, ICQ 13349191 |If God is watching us, the least we can
http://nadav.harel.org.il   |do is be entertaining.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




An article from freshmeat

2000-10-21 Thread Oren Held

Hello List

Hmm... I didn't really like this article, but maybe it's just me.
It's about localization problems in Linux. 

http://freshmeat.net/news/2000/10/21/972187199.html


Cya,
Oren.


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: An article from freshmeat

2000-10-21 Thread Tzafrir Cohen

On Sat, 21 Oct 2000, Oren Held wrote:

> Hello List
> 
> Hmm... I didn't really like this article, but maybe it's just me.
> It's about localization problems in Linux. 
> 
> http://freshmeat.net/news/2000/10/21/972187199.html

The article raises three problems. I wish to add some comments about those
three.

1. locales settings
Mandrake has done a good job here. Locales are avalalbe for many
languages. Furthermore, setting your locale environment varibles is done
right by the shell login scripts. The locale is easily configurable on a
system-wise and per-user basis. 
Of course the installer makes the whole process quite automatic, but
chaging it is quite easy.

2. Keyboard layout
I wish to elaborate on the local angle.
For some strange reason a bogus Hebrew keyboard layout has been wondering
in most cnfig files (I think it is still present in the current gnome
distibution). The only thing that can be done is to bug maintainers until
this is fixed.
Furthermore, the other problem mentioned, that the allowed input
characters depend on the locale, is indeed a serious limitation of XFree
(or is it X11?).
An ugly workaround is the "8bit" layout I mention in
http://www.iglu.org.il/faq/cache/85.html . But it breaks on many occasions
as well.

3. context in gettext
I must agree here. This is a serious problem. At the moment too many
translations are not recomended, until there is enogh support for Hebrew
in graphics toolkits (try gtk 1.3 everybody ;), because visual-Hebrew
translations are inherently problematic anyway.

But hey, problems are for people to solve. If internationalization would
have been a simple technical thing, who would have bothered doing it? ;)

-- 
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




unsuscription.

2000-10-21 Thread Nimrod S. Carmi

Hey everyone,

How come, that I've unsubscribed from linux-il, and I know I did because I
got a confirmation email about it, and yet I still get messages from that
list?!

=---=
Nimrod Simba Carmi,
School Sucks
http://www.schoolsucks.com
http://www.schoolsucks.co.il
Phone: +972-5123-9910
Fax: +972-6651-5473


"... Isn't this where we came in?"


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: your mail

2000-10-21 Thread Ely Levy

actually it might be in kernel 2.4.0 
if I remmber right at least pctel based win modems works


Ely Levy
System group
Hebrew University 
Jerusalem Israel



On Fri, 20 Oct 2000, Omer Zak wrote:

|  Is it a winmodem?
|  If yes, either you are out of luck, or you need to upgrade to a more
|  recent version (today there is RedHat 7.0), which may be having a driver
|  for the modem.
|  
|  On Fri, 20 Oct 2000, dx3 wrote:
|  
|  > I have a creative Modem Blaster V.90PCI DI5655 modem
|  > Windows sees it fine.
|  > It is working properly on COM4
|  > I can't seem to get Linux to recognize it.
|  > I am using RedHat 5.2
|  > what am I doing wrong?
|  
| --- Omer
|  WARNING TO SPAMMERS:see at http://www.zak.co.il/spamwarning.html
|  
|  
|  =
|  To unsubscribe, send mail to [EMAIL PROTECTED] with
|  the word "unsubscribe" in the message body, e.g., run the command
|  echo unsubscribe | mail [EMAIL PROTECTED]
|  
|  


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




M$ ad

2000-10-21 Thread Oren Held

Hey People


That's a new M$ advertisement in german, first one against Linux.
http://www.koehntopp.de/kris/msad.jpg

There's an article on LinuxToday.com about it, and on slashdot.


Cya,
Oren.


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: M$ ad

2000-10-21 Thread Stanislav Malyshev a.k.a Frodo

OH>> That's a new M$ advertisement in german, first one against Linux.
OH>> http://www.koehntopp.de/kris/msad.jpg

Anybody cares to translate what's actually written there?

-- 
[EMAIL PROTECTED]  \/  There shall be counsels taken
Stanislav Malyshev  /\  Stronger than Morgul-spells
phone +972-3-9316425/\  JRRT LotR.
http://sharat.co.il/frodo/  whois:!SM8333


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: Cool shell tricks (was: Re: file system questions)

2000-10-21 Thread Shaul Karl

> On Sat, Oct 21, 2000 at 08:23:44AM +0200, Shaul Karl wrote:
> > > Also, seems that not many people are aware of "process substitution"
> > > in bash: you do something like "diff <(ls dir1) <(ls dir2)", and bash
> > > runs two ls's, each writing to a FIFO, and diff gets the names of
> > > these two FIFOs as parameters. Output redirection also works. I'm not
> > > sure how portable it is, though.
> > 
> > 1.
> > [08:05:37 /tmp]$ diff < (ls ~/setiathome/) <(ls ~/setiathome/amos/)
> > bash: syntax error near unexpected token `(l'
> > [08:06:04 /tmp]$ 
> > 
> > Ache, the space there is significant:
> > 
> > [08:17:12 /tmp]$ diff <(ls ~/setiathome/) <(ls ~/setiathome/amos/)
> 
> Yeah... Otherwise it's redirection.
> 




I am confused. Without the space it is not a redirection? Is there a 
difference between a FIFO and a redirection?



> 
> > 2.
> > This will only work if the "main" process (diff in this example) does not need 
> > to seek the input since it can not do it with a FIFO. Or am I missing 
> > something?
> 
> True... You can't. It would've been nice if Bash had the option to use
> temporary files rather than FIFOs... But I don't know if it's needed
> that often.
> 
> Just tried: both nvi and vim cope fine, Emacs refuses to read it (at
> least with default setup and switches). Less requires you to use -f. 
> 
> 
>   - Adi Stav
> 
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 

-- 

Shaul Karl <[EMAIL PROTECTED]>



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: M$ ad

2000-10-21 Thread guy keren


On Sun, 22 Oct 2000, Stanislav Malyshev a.k.a Frodo wrote:

> OH>> That's a new M$ advertisement in german, first one against Linux.
> OH>> http://www.koehntopp.de/kris/msad.jpg
> 
> Anybody cares to translate what's actually written there?

the linuxmall.com article contains the add's translation. look at their
web site.

guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: samba server.

2000-10-21 Thread Avishay Aton

comment out : "logon server" directive.
encrypt password=yes

then make sure taht your /etc/smbpasswd is correct

cheers

> -Original Message-
> From: Mike Almogy [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday, October 21, 2000 4:18 PM
> To:   Linux-il
> Subject:  samba server.
> 
> Hi list.
> I installed a Samba server (from Redhat 6.2 disk) and now i'm trying to
> access it.
> 
> I opened an account for my user and gave it a password.
> I configured the /etc/smb.conf to be a master browser,prefer browser and
> logon server.
> the security schema is user.
> I also add my workstation ip address to the hosts file.
> 
> It failed to authenticate my user password.
> 
> So i tried the encrypted passwrd option , create the smbpasswd file and
> tried again.
> Still i can't login.
> The error msg is : the domain password is not correct, or you have no
> access
> to the logon server.
> I did not use any restrictions and i'm 100% positive that my password is
> correct. i even changed it to be sure.
> 
> Any idea what i'm doing wrong ?
> Can someone send me a smb.conf configuration that works as logon server ?
> 
> Thanks allot,
> 
> Mike
> 
> 
> 
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: samba server.

2000-10-21 Thread Mike Almogy

but then the server will not answer to authentication requests, no ?
I do not have any NT on my network and neither want one.

Mike

- Original Message -
From: "Avishay Aton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 22, 2000 6:22 AM
Subject: RE: samba server.


> comment out : "logon server" directive.
> encrypt password=yes
>
> then make sure taht your /etc/smbpasswd is correct
>
> cheers
>
> > -Original Message-
> > From: Mike Almogy [SMTP:[EMAIL PROTECTED]]
> > Sent: Saturday, October 21, 2000 4:18 PM
> > To: Linux-il
> > Subject: samba server.
> >
> > Hi list.
> > I installed a Samba server (from Redhat 6.2 disk) and now i'm trying to
> > access it.
> >
> > I opened an account for my user and gave it a password.
> > I configured the /etc/smb.conf to be a master browser,prefer browser and
> > logon server.
> > the security schema is user.
> > I also add my workstation ip address to the hosts file.
> >
> > It failed to authenticate my user password.
> >
> > So i tried the encrypted passwrd option , create the smbpasswd file and
> > tried again.
> > Still i can't login.
> > The error msg is : the domain password is not correct, or you have no
> > access
> > to the logon server.
> > I did not use any restrictions and i'm 100% positive that my password is
> > correct. i even changed it to be sure.
> >
> > Any idea what i'm doing wrong ?
> > Can someone send me a smb.conf configuration that works as logon server
?
> >
> > Thanks allot,
> >
> > Mike
> >
> >
> >
> > =
> > To unsubscribe, send mail to [EMAIL PROTECTED] with
> > the word "unsubscribe" in the message body, e.g., run the command
> > echo unsubscribe | mail [EMAIL PROTECTED]
>
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>
>


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: reply-to

2000-10-21 Thread Schlomo Schapiro

Hi,

despite not having a habit of "me-too"s, I have to put it here:

I am very thankful for the reply-to header, I was always suffering from
this inconvienince when replying.

So long.



Sincerely,

Schlomo Schapiro

 ---
email: [EMAIL PROTECTED]
WWW:   http://www.schapiro.org

On Thu, 19 Oct 2000, Shachar Shemesh wrote:

> Ahem Ahem
> 
> Actually, I did not ask for the "Reply-To:" field. I asked that people doing
> the actual reply not reply to both me and the list.
> 
> This is a technicality. I was not aware of the very good reasons mentioned
> in Gilad's mail, and so I did have a change of heart on that matter.
> 
> Nadav - sorry, but so far you are the only voice in favour of the "reply-to"
> field.
> Nothing personal.
> 
>   Shachar
> 
> - Original Message -
> From: "Aviram Jenik" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 19, 2000 6:20 PM
> Subject: Re: firewall
> 
> 
> > >
> > > Due to all that hassle, and the extremly "under cover" approach that
> both
> > > Yosi and Eli have taken about the misdirected email, I vote the
> > > "reply-to:" field be removed from the headers.
> > >
> > I second that. Please correct me if I'm wrong, but I believe Shachar was
> the
> > only one that asked for the reply-to feature. If my memory serves me right
> > (and it rarely does), there's no reason not to remove this problematic
> > header now that Shachar is voting for the other side...
> >
> > - Aviram
> >
> >
> > =
> > To unsubscribe, send mail to [EMAIL PROTECTED] with
> > the word "unsubscribe" in the message body, e.g., run the command
> > echo unsubscribe | mail [EMAIL PROTECTED]
> >
> >
> 
> 
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




linux instalation on multi OS system

2000-10-21 Thread Lam, Yochai

hello !
im intended to install linux mandrake 7.1 server on my computer.
the computer has allready windows ME + windows NT station and windows NT
server.
can enyone tell me if im going to have troubles?
should i install it on a FAT,NTFS, or create a new unix native partition?
(got 8 GB raw disk area..)
thanks for a quick reply !
(p.s. if enyone close to afula wants to help,great food is promised on
behalf of the house's madam!!)



Yochai Lam
networking management
dev.dept.kla-tencor israel
hatikshoret 4 st.ramat gavriel
migdal haemek.
israel
972-6-6449482 (+voice)
972-58-531689 (cell.)
 <> 

 Lam, Yochai.vcf