Re: Spoiler RE: strace and easter eggs (was Re: TIP: What files does this command try to open (was ...))

2005-01-11 Thread Volker Kuhlmann
Wow, almost an hour for my last msg to appear... > > (where 26320 was likely to be the next pid) > > Heh, good luck guessing that on a hardened/security concious operating > system. Or just a busy one... ;) Btw Matthew when your email travers towards + through orcon, time seems to warp backwar

Re: Spoiler RE: strace and easter eggs (was Re: TIP: What files does this command try to open (was ...))

2005-01-11 Thread Matthew Gregan
At 2005-01-12T17:01:50+1300, C. Falconer wrote: > (where 26320 was likely to be the next pid) Heh, good luck guessing that on a hardened/security concious operating system. Cheers, -mjg -- Matthew Gregan |/ /|[EMAIL PROTECTED

Spoiler RE: strace and easter eggs (was Re: TIP: What files does this command try to open (was ...))

2005-01-11 Thread C. Falconer
Alright - for those who can't figure it out... socks:~# strace -p 26320 strace: I'm sorry, I can't let you do that, Dave. (where 26320 was likely to be the next pid) -Original Message- From: Carl Cerecke [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 January 2005 4:53 p.m. To: linux-us

Re: strace and easter eggs (was Re: TIP: What files does this command try to open (was ...))

2005-01-11 Thread Carl Cerecke
Michael wrote: I don't think this works in a vty or something. "strace strace" just reveals the usual strace garbage. Should I look harder at this? Well, straceing another strace is OK. straceing yourself is not. HINT: checkout the -p option. Cheers, Carl.

Re: Websites/Content Management Systems

2005-01-11 Thread Steve Holdoway
Volker Kuhlmann wrote: How much php-programming is required in etomite to make is usable, I mean configure it? Is there any usable CMS programmed in python? Volker Hi Volker, None whatsoever. It uses templates, which may contain snippets and chunks as well as the native html in which they are w

RE: strace and easter eggs (was Re: TIP: What files does this command try to open (was ...))

2005-01-11 Thread Michael JasonSmith
On Wed, 2005-01-12 at 16:24 +1300, Michael wrote: > I don't think this works in a vty or something. "strace strace" just reveals > the usual strace garbage. Should I look harder at this? I got strace to trace itself (rather than another strace process) by 1. Do a "ps ax" and incrementing th

Re: strace and easter eggs (was Re: TIP: What files does this command try to open (was ...))

2005-01-11 Thread Volker Kuhlmann
> I don't think this works in a vty or something. "strace strace" just reveals > the usual strace garbage. Should I look harder at this? Depends on whether you want to find the easter egg... ;) strace strace traces a different strace process. You need to trace the *same* strace process. I used

RE: strace and easter eggs (was Re: TIP: What files does this command try to open (was ...))

2005-01-11 Thread Michael
I don't think this works in a vty or something. "strace strace" just reveals the usual strace garbage. Should I look harder at this? Michael. >= Original Message From linux-users@it.canterbury.ac.nz = >> There's an easter egg >> when you try to get an strace process to strace itself. >

Re: linux on the desktop making inroads...

2005-01-11 Thread Martin Bähr
On Wed, Jan 12, 2005 at 03:50:43PM +1300, yuri wrote: > Bah. Linux is not ready for the desktop because the general purpose > computer is not ready for the desktop. The only device ready for the > desktop is the set top box (which may or may not be based on embedded > linux). i didn't read the art

Re: linux on the desktop making inroads...

2005-01-11 Thread yuri
Bah. Linux is not ready for the desktop because the general purpose computer is not ready for the desktop. The only device ready for the desktop is the set top box (which may or may not be based on embedded linux). Perhaps I should say: The general purpose computer is not ready for the unassisted

Re: OT: Python book "Python Programming for the Absolute Beginner"

2005-01-11 Thread Matthew Gregan
At 2005-01-11T07:39:24+1300, Carl Cerecke wrote: > yes and no. Syntax is the biggest hurdle to learning programming. You > can postpone exposure to the complexities in python for longer than > you can do so in Java. I'm not sure I entirely agree. Syntax can be a big hurdle, especially for languag

Re: Websites/Content Management Systems

2005-01-11 Thread Volker Kuhlmann
How much php-programming is required in etomite to make is usable, I mean configure it? Is there any usable CMS programmed in python? Volker -- Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings t

Re: Websites/Content Management Systems

2005-01-11 Thread David Kirk
Jamie, > I'm having a bit of a play around with Mambo as a CMS on my website > (http://drgnfire.no-ip.com - please don't hit it too hard as its on my > ADSL connection) and it appears to be pretty good as a CMS. > What are some other good options for Content Management, preferably with > support f

linux on the desktop making inroads...

2005-01-11 Thread Volker Kuhlmann
Wow, dictionaries and an encyclopedia now available for Linux too. That's not bad for a company which in the past has been brainwashed firmly in the billy-way. http://www.bifab.de/katalog/brockhaus.html Enter "linux" in the search box. The search is per cetagory, selecting "Dudenverlag" under "Ma

Re: Websites/Content Management Systems

2005-01-11 Thread Steve Holdoway
On Wed, January 12, 2005 2:55 pm, Jamie Dobbs said: > I'm having a bit of a play around with Mambo as a CMS on my website > (http://drgnfire.no-ip.com - please don't hit it too hard as its on my > ADSL connection) and it appears to be pretty good as a CMS. > What are some other good options for Co

RE: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread C. Falconer
From: Matthew Gregan [mailto:[EMAIL PROTECTED] > > Process A would is then forced to prepare the file descriptors before > Oops; s/would // Theres that damn sed syntax coming back again...

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Matthew Gregan
At 2005-01-12T14:44:59+1300, Matthew Gregan wrote: > Process A: > close(STDERR_FILENO); > execl("/path/to/other/processb", "processb", (const char *)0); > Which then becomes Process B, and does: > open("/path/to/desired/stderr.log", O_WRONLY); I forgot to mention that I'm aware t

Websites/Content Management Systems

2005-01-11 Thread Jamie Dobbs
I'm having a bit of a play around with Mambo as a CMS on my website (http://drgnfire.no-ip.com - please don't hit it too hard as its on my ADSL connection) and it appears to be pretty good as a CMS. What are some other good options for Content Management, preferably with support for adding other mo

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Matthew Gregan
At 2005-01-12T14:27:22+1300, Carl Cerecke wrote: > closing is not the problem, only opening is. Well, my not particularly imaginative example involves co-operating processes wanting to do the following: Process A: close(STDERR_FILENO); execl("/path/to/other/processb", "processb",

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Matthew Gregan
At 2005-01-12T13:59:06+1300, Volker Kuhlmann wrote: > That creates a copy of an existing file descriptor, but doesn't modify > an existing one. Copying one which has already been closed isn't > likely to do anything useful. Right, because to be effective Carl's proposed changes should also require

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Carl Cerecke
Matthew Gregan wrote: At 2005-01-12T13:51:54+1300, Carl Cerecke wrote: Isn't that what dup2 is for? For most cases, yes. Without being able to close and reopen descriptor 0/1/2 there are still things you couldn't do using only dup2(), but the only example I can think of right now isn't that great

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Matthew Gregan
At 2005-01-12T11:33:32+1300, Volker Kuhlmann wrote: > Thanks Matthew, I was wondering whether it had to do with descriptor > inheritance. One could call it a bug in the process though, to call > programs with insane descriptors. Nevertheless, what would be the > correct way for testing in "program"

Re: strace and easter eggs (was Re: TIP: What files does this command try to open (was ...))

2005-01-11 Thread Volker Kuhlmann
> There's an easter egg > when you try to get an strace process to strace itself. Tihi... Ok, took me a few attempts, but tell me how the *@&# knows that my name is Dave? Volker -- Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Matthew Gregan
At 2005-01-12T13:51:54+1300, Carl Cerecke wrote: > Isn't that what dup2 is for? For most cases, yes. Without being able to close and reopen descriptor 0/1/2 there are still things you couldn't do using only dup2(), but the only example I can think of right now isn't that great... Cheers, -mjg --

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Volker Kuhlmann
> Isn't that what dup2 is for? That creates a copy of an existing file descriptor, but doesn't modify an existing one. Copying one which has already been closed isn't likely to do anything useful. Volker -- Volker Kuhlmann is possibly list0570 with the domain in header http://vo

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Carl Cerecke
Matthew Gregan wrote: At 2005-01-12T13:00:18+1300, Carl Cerecke wrote: This could be partly solved by the OS by never reusing file descriptors lower than 3. It could be, but that's probably not the right solution. It's extremely useful to be able to reopen stdin/stdout/stderr however you please,

strace and easter eggs (was Re: TIP: What files does this command try to open (was ...))

2005-01-11 Thread Carl Cerecke
Volker Kuhlmann wrote: If you want to know exactly which files a command opens (or tries to open) as it is executing, prepend "strace -eopen" before the command. This is especially useful when you want to know what configuration files a command is looking for, and in what order. Good tip. And wi

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Carl Cerecke
Matthew Gregan wrote: At 2005-01-12T10:09:47+1300, Carl Cerecke wrote: Do you mean the programs in question had no error handling for descriptors 0,1,2 because they expected them to be open and set up correctly? An explanation by example: 1. Process closes stderr. 2. Process exec()s program with

Re: OT: DSL Modem and Router question - New Jetstream connection .

2005-01-11 Thread yuri
On Wed, 12 Jan 2005 11:29:52 +1300, Bryce Stenberg wrote: > I think I'll go ahead and unwrap it all and see what happens. And report back to us so others can benefit from your experience :-) Yuri -- ** WARNING to mailing list repliers ** Gmail over-rides "Reply-To:" field. Check your "To:" addr

RE: OT: DSL Modem and Router question - New Jetstream connection .

2005-01-11 Thread Bryce Stenberg
Thanks Andy, I checked out the specs on the router and it does do NAT. No DHCP however, but it's only a couple of machines - I'll just set there IP addresses manually. I think I'll go ahead and unwrap it all and see what happens. Thanks again, Bryce. -Original Message- From: Andy Geor

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Volker Kuhlmann
> An explanation by example: Thanks Matthew, I was wondering whether it had to do with descriptor inheritance. One could call it a bug in the process though, to call programs with insane descriptors. Nevertheless, what would be the correct way for testing in "program" whether the standard descript

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Matthew Gregan
At 2005-01-12T10:09:47+1300, Carl Cerecke wrote: > Do you mean the programs in question had no error handling for > descriptors 0,1,2 because they expected them to be open and set up > correctly? An explanation by example: 1. Process closes stderr. 2. Process exec()s program with previously men

Re: remind me how to run top as a one-shot?

2005-01-11 Thread Nick Rout
On Wed, 2005-01-12 at 10:53 +1300, Volker Kuhlmann wrote: > > trying to capture the output of top, and recall someone posting how to > > run top as a one-off? can't find it in the archive - who can help? > > > > top --help > top: procps version 3.2.3 > usage: top -hv | -bcisS -d delay -n

Re: remind me how to run top as a one-shot?

2005-01-11 Thread Volker Kuhlmann
> trying to capture the output of top, and recall someone posting how to > run top as a one-off? can't find it in the archive - who can help? > top --help top: procps version 3.2.3 usage: top -hv | -bcisS -d delay -n iterations [-u user | -U user] -p pid [,pid ...] Uhhm, surely your gu

Re: remind me how to run top as a one-shot?

2005-01-11 Thread Roy Britten
On 12/01/05 10:45, Nick Rout wrote: > trying to capture the output of top, and recall someone posting how to > run top as a one-off? can't find it in the archive - who can help? top -n1 might be what you're after. Roy. -- Roy Britten, Lead Software Developer, Information Systems Team National I

remind me how to run top as a one-shot?

2005-01-11 Thread Nick Rout
trying to capture the output of top, and recall someone posting how to run top as a one-off? can't find it in the archive - who can help? -- Nick Rout <[EMAIL PROTECTED]>

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Nick Rout
excellent carl, i was able to find out exactly what files an errant process was opening as a result of that. (I knew about strace but have never before looked at any of the options) thanks On Wed, 2005-01-12 at 08:00 +1300, Carl Cerecke wrote: > If you want to know exactly which files a command

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Carl Cerecke
Matthew Gregan wrote: At 2005-01-12T09:01:51+1300, Steve Holdoway wrote: It might be an idea at this time to point out that by default every process opens 3 descriptors on startup... 0 = stdin 1 = stdout 2 = stderr It depends how the process was started, and (depending on what you're doing), it's

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Matthew Gregan
At 2005-01-12T09:01:51+1300, Steve Holdoway wrote: > It might be an idea at this time to point out that by default every > process opens 3 descriptors on startup... > 0 = stdin > 1 = stdout > 2 = stderr It depends how the process was started, and (depending on what you're doing), it's unsafe to as

Re: TIP: What files does this command try to open

2005-01-11 Thread Michael JasonSmith
On Wed, 2005-01-12 at 09:01 +1300, Steve Holdoway wrote: > It might be an idea at this time to point out that by default every > process ( or it it just those written in C - I forget - but most of the > kernel is anyway... ) opens 3 descriptors on startup... > > 0 = stdin > 1 = stdout > 2 = stderr

Re: IPCops good but...

2005-01-11 Thread Andrew Errington
On Wed, 12 Jan 2005 09:28, you wrote: > From: Wayne Rooney [mailto:[EMAIL PROTECTED] > > >On Tue, 11 Jan 2005 11:30, C. Falconer wrote: > >> They could have chosen a less Controversial name for it ;) > > > >Freesco has been around longer than the SCO controversy. The name > > Freesco > > is >

Re: Word Count Help

2005-01-11 Thread John Rye
On Wed, 12 Jan 2005 07:41:32 +1300 Carl Cerecke <[EMAIL PROTECTED]> wrote: > Steve Holdoway wrote: > > John Rye wrote: > > >> Could someone show me how to count the total number of words in a > >> group of > >> files which are located in the same directory? > > > cat * | wc -w > > better: > >

RE: IPCops good but...

2005-01-11 Thread C. Falconer
From: Wayne Rooney [mailto:[EMAIL PROTECTED] >On Tue, 11 Jan 2005 11:30, C. Falconer wrote: >> They could have chosen a less Controversial name for it ;) >Freesco has been around longer than the SCO controversy. The name Freesco is >a contraction of "Free Cisco (router)." If it was mine -

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Volker Kuhlmann
> If you want to know exactly which files a command opens (or tries to > open) as it is executing, prepend "strace -eopen" before the command. > This is especially useful when you want to know what configuration files > a command is looking for, and in what order. Good tip. And with -p NNN it ev

Re: Word Count Help

2005-01-11 Thread Volker Kuhlmann
Quiz: > Interestingly, the directory I tried it on here (full of Java code) > gives 173918 for "cat * | wc -w" and 173920 for "wc -w *". My take: 2 files don't have a newline at the end, therefore with the cat version 2 words (last word of one file and first of the next) run together. Volker -

Re: TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Steve Holdoway
On Wed, January 12, 2005 8:00 am, Carl Cerecke said: > Volker Kuhlmann wrote: > >> I've always tried to avoid loading app resources into the global data >> base as it's all crud other apps aren't interested in. Putting the >> resources into a separate file should work (also it doesn't with some >>

TIP: What files does this command try to open (was Re: Changing UI fonts of commercial X11 apps)

2005-01-11 Thread Carl Cerecke
Volker Kuhlmann wrote: I've always tried to avoid loading app resources into the global data base as it's all crud other apps aren't interested in. Putting the resources into a separate file should work (also it doesn't with some apps). The name of the file is predefined by the app (casing is signi

Re: Word Count Help

2005-01-11 Thread Carl Cerecke
Steve Holdoway wrote: John Rye wrote: Could someone show me how to count the total number of words in a group of files which are located in the same directory? cat * | wc -w better: wc -w * Interestingly, the directory I tried it on here (full of Java code) gives 173918 for "cat * | wc -w" and

Re: IPCops good but...

2005-01-11 Thread Wayne Rooney
On Tue, 11 Jan 2005 11:30, C. Falconer wrote: > They could have chosen a less Controversial name for it ;) Freesco has been around longer than the SCO controversy. The name Freesco is a contraction of "Free Cisco (router)." Wayne

Re: Changing UI fonts of commercial X11 apps

2005-01-11 Thread Volker Kuhlmann
Some while ago the Eagle owner told me he was planning to shift to qt and main development on Linux. As the company provides support also for the free version one could always try a question. usenet: news.cadsoft.de > These resources need to be loaded > into the X server's resource database before

Re: IPCops good but...

2005-01-11 Thread Alasdair Tennant
On Tue, 11 Jan 2005 11:30:58 +1300 "C. Falconer" <[EMAIL PROTECTED]> wrote: > They could have chosen a less Controversial name for it ;) Shouldn't that be lesSCOntroversial? :) -- Alasdair Tennant Dunedin New Zealand

Re: Word Count Help

2005-01-11 Thread John Rye
On Tue, 11 Jan 2005 20:13:30 +1300 Steve Holdoway <[EMAIL PROTECTED]> wrote: > John Rye wrote: > > >Mental blockage!! > > > >Lots of googling hasn't helped much. > > > >Could someone show me how to count the total number of words in a group > >of files which are located in the same directory? > >

Re: Changing UI fonts of commercial X11 apps

2005-01-11 Thread Matthew Gregan
At 2005-01-11T21:29:24+1300, Hugo Vincent wrote: > Is it possible to change the default UI fonts of commercial > proprietary applications It depends, and it's usually application or toolkit specific. If the application is using a modern configurable X toolkit, you can often affect its font decisi

Changing UI fonts of commercial X11 apps

2005-01-11 Thread Hugo Vincent
Hi everyone, Is it possible to change the default UI fonts of commercial proprietary applications like Acroread, VMware or Eagle PCB-CAD? The defaults in these apps are HUGE (especially Eagle), as in twice the size of the Gnome fonts. My distro is Ubuntu Warty. Cheers, Hugo.