Re: echo inside Makefile
Yep, The thing is that make uses /bin/sh and /bin/sh -> dash. Changing the link /bin/sh to point to bash solved the problem. Thanks all for your help. Kfir On Nov 22, 2007 9:54 AM, Dotan Shavit <[EMAIL PROTECTED]> wrote: > On Thursday 22 November 2007, Kfir Lavi wrote: > > make SHELL=/bin/bash > > works. > > But, my shell seems to be bash. > > echo $SHELL > > /bin/bash > > > > So what is the problem? Do I really run dash instead of bash, but it > shows > > bash? > Try: > all: >echo $(SHELL) > > # > > Thanks, > > Kfir > > > > On Nov 21, 2007 8:26 PM, Valery Reznic <[EMAIL PROTECTED]> wrote: > > > --- Dotan Shavit <[EMAIL PROTECTED]> wrote: > > > > On Tuesday 20 November 2007, you wrote: > > > > > Hi, > > > > > I have a problem running echo inside Makefile. > > > > > Here is the Makefile: > > > > > all: > > > > > @echo "string" > > > > > @echo -e -n "string" > > > > > > > > > > The output is: > > > > > string > > > > > -e -n string > > > > > > > > > > The problem is the second @echo command. It prints > > > > > > > > '-e -n' instead of > > > > > > > > > interpreting those options. > > > > > I have tested it on other comps and it works fine, > > > > > > > > so its an environment > > > > > > > > > problem in my comp. > > > > > What var or file determine this behavior? > > > > > > > > The difference is your /bin/sh > > > > In Ubuntu it's linked to /bin/dash which echo > > > > (builtin command) accepts > > > > only -n > > > > > > > > linking /bin/sh to /bin/bash will bypass this > > > > behavior in *your* environment. > > > > > > make SHELL=/bin/bash > > > > > > should do the trick too. > > > > > > Valery. > > > > > > > A better solution will be to force make calling the > > > > echo you want: > > > > > > > > ECHO=/bin/echo > > > > > > > > all: > > > > @$(ECHO) -n -e "aaa" > > > > > > > > > > > > # > > > > > > > > > Thanks, > > > > > Kfir > > > > > > = > > > > > > > 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] > > > > > > > > > > _ > > >___ Get easy, one-click access to your favorites. > > > Make Yahoo! your homepage. > > > http://www.yahoo.com/r/hs > > >
[Job offer] Senior Kernel Engineer
FilesX is re-writing the rules of Continuous Data Protection for the enterprise. We have ground breaking technology, a solid customer base and are looking for an experienced, creative Software Engineer to join our winning team. This position is for a developer with experience in complex systems with multi threading and processing. We offer an attractive compensation plan and company paid benefits. We are looking for: A Senior Kernel Engineer Qualifications: BSc in Computer Science. Minimum of 3 years experience writing kernel modules / device drivers on Windows or Unix Minimum of 5 years experience in C, C++ development on Windows and/or Unix Strong experience with Windows or Unix operating systems Ability to work in a multi-tasking and dynamic environment Problem-solving abilities Strong Hebrew and English Send C.V. to: [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: echo inside Makefile
On Thursday 22 November 2007, Kfir Lavi wrote: > make SHELL=/bin/bash > works. > But, my shell seems to be bash. > echo $SHELL > /bin/bash > > So what is the problem? Do I really run dash instead of bash, but it shows > bash? Try: all: echo $(SHELL) # > Thanks, > Kfir > > On Nov 21, 2007 8:26 PM, Valery Reznic <[EMAIL PROTECTED]> wrote: > > --- Dotan Shavit <[EMAIL PROTECTED]> wrote: > > > On Tuesday 20 November 2007, you wrote: > > > > Hi, > > > > I have a problem running echo inside Makefile. > > > > Here is the Makefile: > > > > all: > > > > @echo "string" > > > > @echo -e -n "string" > > > > > > > > The output is: > > > > string > > > > -e -n string > > > > > > > > The problem is the second @echo command. It prints > > > > > > '-e -n' instead of > > > > > > > interpreting those options. > > > > I have tested it on other comps and it works fine, > > > > > > so its an environment > > > > > > > problem in my comp. > > > > What var or file determine this behavior? > > > > > > The difference is your /bin/sh > > > In Ubuntu it's linked to /bin/dash which echo > > > (builtin command) accepts > > > only -n > > > > > > linking /bin/sh to /bin/bash will bypass this > > > behavior in *your* environment. > > > > make SHELL=/bin/bash > > > > should do the trick too. > > > > Valery. > > > > > A better solution will be to force make calling the > > > echo you want: > > > > > > ECHO=/bin/echo > > > > > > all: > > > @$(ECHO) -n -e "aaa" > > > > > > > > > # > > > > > > > Thanks, > > > > Kfir > > > > = > > > > > 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] > > > > > > _ > >___ Get easy, one-click access to your favorites. > > Make Yahoo! your homepage. > > http://www.yahoo.com/r/hs = 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: echo inside Makefile
make SHELL=/bin/bash works. But, my shell seems to be bash. echo $SHELL /bin/bash So what is the problem? Do I really run dash instead of bash, but it shows bash? Thanks, Kfir On Nov 21, 2007 8:26 PM, Valery Reznic <[EMAIL PROTECTED]> wrote: > > --- Dotan Shavit <[EMAIL PROTECTED]> wrote: > > > On Tuesday 20 November 2007, you wrote: > > > Hi, > > > I have a problem running echo inside Makefile. > > > Here is the Makefile: > > > all: > > > @echo "string" > > > @echo -e -n "string" > > > > > > The output is: > > > string > > > -e -n string > > > > > > The problem is the second @echo command. It prints > > '-e -n' instead of > > > interpreting those options. > > > I have tested it on other comps and it works fine, > > so its an environment > > > problem in my comp. > > > What var or file determine this behavior? > > The difference is your /bin/sh > > In Ubuntu it's linked to /bin/dash which echo > > (builtin command) accepts > > only -n > > > > linking /bin/sh to /bin/bash will bypass this > > behavior in *your* environment. > make SHELL=/bin/bash > > should do the trick too. > > Valery. > > > A better solution will be to force make calling the > > echo you want: > > > > ECHO=/bin/echo > > > > all: > > @$(ECHO) -n -e "aaa" > > > > > > # > > > > > Thanks, > > > Kfir > > > > > > > > > = > > 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] > > > > > > > > > > > Get easy, one-click access to your favorites. > Make Yahoo! your homepage. > http://www.yahoo.com/r/hs >
Re: echo inside Makefile
On Tuesday 20 November 2007, you wrote: > Hi, > I have a problem running echo inside Makefile. > Here is the Makefile: > all: > @echo "string" > @echo -e -n "string" > > The output is: > string > -e -n string > > The problem is the second @echo command. It prints '-e -n' instead of > interpreting those options. > I have tested it on other comps and it works fine, so its an environment > problem in my comp. > What var or file determine this behavior? The difference is your /bin/sh In Ubuntu it's linked to /bin/dash which echo (builtin command) accepts only -n linking /bin/sh to /bin/bash will bypass this behavior in *your* environment. A better solution will be to force make calling the echo you want: ECHO=/bin/echo all: @$(ECHO) -n -e "aaa" # > Thanks, > Kfir = 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: UPS for Linux
Try running 'dpkg -L NUT_package_name' This will show you the files that where installed. Kfir On Nov 21, 2007 4:12 PM, David Suna <[EMAIL PROTECTED]> wrote: > I installed NUT but I can't find how to run it / configure it. I am > running Ubuntu 7.10. > > David Suna > [EMAIL PROTECTED] > > > > Leonid Podolny wrote: > > > I think, these days all (or almost all) the cheap ones are supported > > by NUT. Particularly, I own this one > > (http://www.zap.co.il/fs.asp?PID=273870771&sog=C-UPS), and it just > > works OK. I mean, I'm able to see battery charge and such, which > > probably means that I can configure it to gracefully turn off my > > computer during an outage. > > > > = > 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: UPS for Linux
I installed NUT but I can't find how to run it / configure it. I am running Ubuntu 7.10. David Suna [EMAIL PROTECTED] Leonid Podolny wrote: I think, these days all (or almost all) the cheap ones are supported by NUT. Particularly, I own this one (http://www.zap.co.il/fs.asp?PID=273870771&sog=C-UPS), and it just works OK. I mean, I'm able to see battery charge and such, which probably means that I can configure it to gracefully turn off my computer during an outage. = 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: Terminal logger
Simple solution: history | cut -d ' ' -f 5-20 Kfir On Nov 21, 2007 3:46 PM, Shachar Shemesh <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm looking for a program (I knew it once) that saves to a log file > every command written on a terminal, as well as its results. I need it > so that when I'm instructing a class, I can then give them a log of > everything I did. > > Thanks, > Shachar > > = > 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: Terminal logger
script? On Nov 21, 2007 3:46 PM, Shachar Shemesh <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm looking for a program (I knew it once) that saves to a log file > every command written on a terminal, as well as its results. I need it > so that when I'm instructing a class, I can then give them a log of > everything I did. > > Thanks, > Shachar > > = > 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: Terminal logger
On Wed, Nov 21, 2007 at 03:46:40PM +0200, Shachar Shemesh wrote: > Hi all, > > I'm looking for a program (I knew it once) that saves to a log file > every command written on a terminal, as well as its results. I need it > so that when I'm instructing a class, I can then give them a log of > everything I did. script(1) Cheers, Muli = 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: Terminal logger
or use screen(1) logging. On Nov 21, 2007 3:58 PM, Jacob Broido <[EMAIL PROTECTED]> wrote: > script(1) > > > On Nov 21, 2007 3:46 PM, Shachar Shemesh <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > I'm looking for a program (I knew it once) that saves to a log file > > every command written on a terminal, as well as its results. I need it > > so that when I'm instructing a class, I can then give them a log of > > everything I did. > > > > Thanks, > > Shachar > > > > = > > 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] > > > > > > > -- > Not gonna be king of the world if you're slave to the grind > - Skid Row -- Not gonna be king of the world if you're slave to the grind - Skid Row
Re: Terminal logger
script(1) On Nov 21, 2007 3:46 PM, Shachar Shemesh <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm looking for a program (I knew it once) that saves to a log file > every command written on a terminal, as well as its results. I need it > so that when I'm instructing a class, I can then give them a log of > everything I did. > > Thanks, > Shachar > > = > 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] > > -- Not gonna be king of the world if you're slave to the grind - Skid Row
Terminal logger
Hi all, I'm looking for a program (I knew it once) that saves to a log file every command written on a terminal, as well as its results. I need it so that when I'm instructing a class, I can then give them a log of everything I did. Thanks, Shachar = 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]
Solaris 10, Oracle 10gR2 RAC, NetApp NFS
Hi, Has anyone had any experience setting up Oracle 10gR2 RAC on Solaris 10 using NetApp NFS for the shared storage? We have installed everything but we cannot create the database using dbca. It appears to hang(more than 12 hours without progress) during/after data dictionary creation. The only error we receive is Warning: aiowait timed out x times. All patches have been installed, all parameters are according to documentation. any ideas? thanks yonah
Re: UPS for Linux
Leonid Podolny wrote: I think, these days all (or almost all) the cheap ones are supported by NUT. Particularly, I own this one (http://www.zap.co.il/fs.asp?PID=273870771&sog=C-UPS), and it just works The link to Zap doesn't work for some reason, so I'll give the link to some shop linked from zap: http://www.bigcomputers.co.il/Product.asp?Pid=MUSTEK600 -- Leonid Podolny | [EMAIL PROTECTED] | Software Engineer| +972- 3-7668960 Linux Platform Team | +972-54-5696948 = 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: UPS for Linux
Constantine Shulyupin wrote: Hi, Wow it's raining and lighting! And have no UPS for my homelinux.net! Some time ago here was a dicusson about UPS for Linux. Could somebody give me a link or send conclusions about which and where to buy suitable UPS for home Linux? Thanks Constantine Shulyupin I think, these days all (or almost all) the cheap ones are supported by NUT. Particularly, I own this one (http://www.zap.co.il/fs.asp?PID=273870771&sog=C-UPS), and it just works OK. I mean, I'm able to see battery charge and such, which probably means that I can configure it to gracefully turn off my computer during an outage. -- Leonid Podolny | [EMAIL PROTECTED] | Software Engineer| +972- 3-7668960 Linux Platform Team | +972-54-5696948 = 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]
UPS for Linux
Hi, Wow it's raining and lighting! And have no UPS for my homelinux.net! Some time ago here was a dicusson about UPS for Linux. Could somebody give me a link or send conclusions about which and where to buy suitable UPS for home Linux? Thanks Constantine Shulyupin = 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: echo inside Makefile
On Nov 21, 2007 1:33 AM, Amos Shapira <[EMAIL PROTECTED]> wrote: > On 20/11/2007, Kfir Lavi <[EMAIL PROTECTED]> wrote: > > Ok, > > make -d don't show much. > > I have attached the two files: Makefile and make.log > > That's weird - your make.log says: > > Must remake target `all'. > -e -n aaa > > (i.e. "echo" is missing"). > > But running "make -d -n" on my machine (Debian Etch, make 3.81, bash > 3.1.17, /bin/echo from GNU coreutils 5.97) I get: > > Must remake target `all'. > echo -e -n "aaa" > > (i.e. "echo" is included). > > What was the exact command you executed to get "make.log"? > make -d 2>&1 | tee make.log > Maybe add a space after the "@"? > Nope, this doesn't help. > > I also see in bash's man that "xpg_echo" shell option will tell the > built-in echo to expand backslash-escape sequences by default. It's > off in my bash. > By default this flag is 'off'. I have used 'shopt -s xpg_echo' to set it 'on'. This didn't solve the problem. > Another piece of documentation - the coreutils info page about echo says: > > > If the `POSIXLY_CORRECT' environment variable is set, then when > `echo''s first argument is not `-n' it outputs option-like arguments > instead of treating them as options. For example, `echo -ne hello' > outputs `-ne hello' instead of plain `hello'. > > POSIX does not require support for any options, and says that the > behavior of `echo' is implementation-defined if any STRING contains a > backslash or if the first argument is `-n'. Portable programs can use > the `printf' command if they need to omit trailing newlines or output > control characters or backslashes. *Note printf invocation::. > > > Do you have POSIXLY_CORRECT envariable set? How about trying to switch > the -e and -n in Makefile? > POSIXLY_CORRECT doesn't help too: $ make aaa-e -n aaa $ POSIXLY_CORRECT=1 make -e -n aaa -e -n aaa > Cheers, > > --Amos > > = > 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: echo inside Makefile
$ type -a echo echo is a shell builtin echo is /bin/echo $bash --version GNU bash, version 3.2.25(1)-release (i486-pc-linux-gnu) $/bin/echo --version echo (GNU coreutils) 5.97 On Nov 20, 2007 8:11 PM, Oleg Goldshmidt <[EMAIL PROTECTED]> wrote: > "Kfir Lavi" <[EMAIL PROTECTED]> writes: > > > Hi, > > I have a problem running echo inside Makefile. > > Here is the Makefile: > > all: > > @echo "string" > > @echo -e -n "string" > > The output is: > > string > > -e -n string > > The problem is the second @echo command. It prints '-e -n' instead of > > interpreting those options. > > I have tested it on other comps and it works fine, so its an environment > > problem in my comp. > > What var or file determine this behavior? > > What does "type -a echo" say in the same environment under which you run > make? > > Your makefile works properly for me, FWIW, but I am on Fedora, not Ubuntu. > > -- > Oleg Goldshmidt | [EMAIL PROTECTED] | http://www.goldshmidt.org > > 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] > >