Re: 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 of the old "(cd dir1; tar c) | (cd dir2; tar xv)" thing, but it's been discussed here extensively before. 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/) 1,4c1 NOTE README README.xsetiathome amos --- Release_Notes.txt 8a6 result.sah 11c9 setiathome-3.0.i386-pc-linux-gnu-gnulibc2.1.tar --- setiathome_win_3_0.exe 14a13 windows_help.txt 16c15 xsetiathome --- wtemp.sah [08:18:20 /tmp]$ 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? Does anyone else like these tricks? I'd love to hear about other people's. - 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: Cool shell tricks (was: Re: file system questions)
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 ATT'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)
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.
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)
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
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
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.
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
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
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
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)
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
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.
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.
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]