Re: Using SED to combine lines
Christian Clercin wrote: "ex" does the job too, but perhaps not exactly as you want : ex -e '%g/$/j' filename where "filename" is the name of the file containing your stuff. NB 1. Difference : it is not entirely batch mode, since you enter in interactive mode and have to quit with "x" (or wq). you can put the ex commands in a file, with "x" being the last command, and execute ex filename commandfile that'll let you do it in batch mode. snip -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: Accessing CR-RW
assuming lilo is in use. At the "Lilo boot:" prompt, enter "linux single" instead of just "linux" (all without the quotes, of course). That will put you straight in as root, no questions asked, after which you can use "passwd root" to change the root password. -jdr- Dan Bentson-Royal wrote: I have been enjoying the use of my Linux box that a student setup. That student is now gone and the root password is no longer being accepted. What's my next step? I can't seem to locate any kind of emergency boot disk either! Dan - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: Using SED to combine lines
sed -e :a -e '/$/N; s/\n/\/; ta' oldfile newfile -jdr- PAUL TRACESKI wrote: I have been unsuccessful for the past couple of days in finding a way to use the sed command to combine lines in a file. I have a series of lines as follows: 0382 ABCD TRCD UTNB 9456 YRFD 8345 YSSW LOPI 3384 QAIK NBVC POIJ TDDC I would like to take lines that end in and somehow eliminate the new line feed so that I will end up with something like: 0382 ABCD TRCD UTNB 9456 YRFD 8345 YSSW LOPI 3384 QAIK NBVC POIJ TDDC The solution must use a stream editing command or something comparable. Any ideas? Paul Traceski [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: Looking for Perl MailList
Don't know about mailing lists, but there are several comp.lang.perl type newsgroups, one of which might meet your needs. -jdr- Steve Martin wrote: I know this is not related directly to this mailling list, but, I don't have access to the Internet from my desk, and this is the only list I'm subscribed to at the time. My question is: Can someone pass along a good Perl resource mailling list. Thank you! ~ Steve Steve Martin Programmer/Analyst Carefree of Colorado 303/410.6239 http://www.carefreeofcolorado.com - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: Looking for Perl MailList - a better answer
Get to a computer with internet access and look at http://language.perl.com/info/mailing-lists.html It's a list of Perl mailing lists. -jdr- Steve Martin wrote: I know this is not related directly to this mailling list, but, I don't have access to the Internet from my desk, and this is the only list I'm subscribed to at the time. My question is: Can someone pass along a good Perl resource mailling list. Thank you! ~ Steve Steve Martin Programmer/Analyst Carefree of Colorado 303/410.6239 http://www.carefreeofcolorado.com - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: imap mail client for KDE??
How about Netscape? -jdr- Andrew Sands wrote: Hi, Any ideas, thoughts, web URLs for a 'preferably GUI "imap" mail client' that I can run under KDE(1) on RedHat 6.2. thanks Andrew ZL3TCK Christchurch, New Zealand - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
xvidtune XF86Config
After I run xvidtune to get the sync settings, how in the world do I know which lines to change in XF86Config? (i.e., which 640x480 line do I change? There are a bunch of them.) -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: [newbie] Linux resources online
I was using a 1620 in 1970, and it was transistorized, not tubes. Had a 5-meg disk drive (14 inch variety, stacked platters) and punched cards. "High speed" output was to punched cards, and if you wanted something you could read, you had to run the cards through an accounting machine. The really hot computer at the time was the IBM 1130 (unless you had access to one of the 360 variants). The 1130 had assembler, FORTRAN, COBOL, and RPG. Also had the privelege (?) of using an RCA 301, which had 4k of core memory, six vacuum-column tape drives, and a 900-line/minute printer at about the same time. The only thing available on it was assembler. Sure punched a lot of cards on 026 keypunch machines back then. :-) -jdr- Renaud OLGIATI wrote: I remember working on a machine with 4 k memory; but this was a main-frame (IBM 1620) using vacum tubes; input and output by punched cards, and running Fortran II; Must have been in '68 or '69. This was the "obsolete" machine us students were allowed to play with; for serious computing, there was another mainframe, with a hard disk of, IIRC, 4 Mb capacity; memory was 96 kb, raised to 128 kb around 1970. And we were told we were priviledged, because our university had one of the most powerful computers in the education system at the time ! Cheers, Ron the Frog, getting old on the banks of the Paraguay River. Anybody else on this list old enough to remember when the "suits" didn't run things, and games/software were ported to every single platform, just because they could/it was neat? Circa '80's with names like Tandy, Atari, Amiga, etc, etc,... ;-) -- /\ DarkLord \/ -- Any sufficiently advanced technology is indistinguishable from magic. -- Arthur C. Clarke --- http://personales.conexion.com.py/~rolgiati --- - - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
EDO vs non-EDO memory
Does, or should, EDO memory work on a non-EDO motherboard? (Desperate for more memory, and EDO is all I can get locally.) -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: EDO vs non-EDO memory
Yeah, there are lots of places to order it, but I wanted to get some TODAY. -jdr- Ray Olszewski wrote: No. And yes, this is a problem -- FPM memory is hard to find these days, and distressingly expensive when you do find it. You might try non-local shopping, at places like www.computergeeks.com (there are others, but not that are at the tip of my tongue), where used memory is sometimes available. At 09:41 AM 8/5/00 -0500, Jim Reimer wrote: Does, or should, EDO memory work on a non-EDO motherboard? (Desperate for more memory, and EDO is all I can get locally.) -- "Never tell me the odds!"--- Ray Olszewski-- Han Solo Palo Alto, CA[EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
same old problem
The computer has a new drive, and I've swapped the memory (was 16meg, now 32meg). Condition of memory is unknown - came out of an old machine - but it passes the POST ok. RH6.2 installed ok, and I left it sitting at the login prompt. A while later, I had the "drive not ready for command" messages scrolling up the screen again. Computer would not respond to CTRL-ALT-DEL. Pressed reset, and the computer wouldn't boot (just like with the old drive). Cycled power, it started booting, but now I have a corrupted file system again. It's been turned off all night, just turned it on, and it won't boot at all from the hard drive. Boots ok from floppy. Booting from the floppy (with the install disk) goes ok until it starts checking for drives, then I get "hda: lost interrupt" over and over and over... P90, Award BIOS v4.50G, on-board IDE floppy controllers. Everything related to APM in the BIOS is either 'off' or 'disabled'. Where do I go now? -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: new drive - partitions sizes?
see if du /something/other gives you what you want. -jdr- Renaud OLGIATI wrote: As an aside to this thread, is there a simple way to find the size of a given branch of the file-tree ? Or in other words, to find how big is /someting/other including all the subdirectories ? TIA, Ron the Frog, on the banks of the Paraguay River. -- If voting could really change things, it would be illegal. --- http://personales.conexion.com.py/~rolgiati --- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
same old problem - part 2
After 30 minutes or so of "drive not ready" messages, the thing finally did a successful reset (without me touching anything) and finished booting into the install program. H (original message follows) The computer has a new drive, and I've swapped the memory (was 16meg, now 32meg). Condition of memory is unknown - came out of an old machine - but it passes the POST ok. RH6.2 installed ok, and I left it sitting at the login prompt. A while later, I had the "drive not ready for command" messages scrolling up the screen again. Computer would not respond to CTRL-ALT-DEL. Pressed reset, and the computer wouldn't boot (just like with the old drive). Cycled power, it started booting, but now I have a corrupted file system again. It's been turned off all night, just turned it on, and it won't boot at all from the hard drive. Boots ok from floppy. Booting from the floppy (with the install disk) goes ok until it starts checking for drives, then I get "hda: lost interrupt" over and over and over... P90, Award BIOS v4.50G, on-board IDE floppy controllers. Everything related to APM in the BIOS is either 'off' or 'disabled'. Where do I go now? -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
cyrix processor?
Any problems with Linux on a Cyrix processor? (Cyrix MII 200 (or something like that)) -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
seems to be working now
Put in a new IDE cable, and did some memory swapping again. Was getting an occasional memory failure during POST, even though memory was passing the only diagnostic I could come up with, which was an old version of Norton Diagnostics. So I'm down to 24 megs, and the system is running. But with 24 megs, Star Office is completely unuseable, unless you have several hours to do something. They're not kidding when they say 32 megs is the minimum. It installs, and it _will_ run, but it's extremely, painfully, slow. -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: same old problem
Who makes cdm640? This is an Intel motherboard, with (of course) an Intel chipset (if that makes any difference). But as I stated in an earlier post, this thing had been running happily for a year or so, and just decided to be a problem a couple of days ago. If it was an interface-related problem, what are the chances it would have waited that long to show up? And I know POST isn't much of a test, but right now that's about all I can muster. -jdr- [EMAIL PROTECTED] wrote: Scratch together $5 or so and treat that puppy to a new IDE cable. That is my best bet. There is one hardware booby-trap to do with IDE drives: the cdm640 IDE interface chip. If you let it have its way it will make hd's appear to be utterly broken; in fact you can fix them with format (as practiced by msdose install (you can abort the install once it has done the format); AFAIK there is no linux equivalent, except for one I cobbled together with kernel patches). If the IDE driver was compiled with CONFIG_BLK_DEV_CMD640, it can detect the PCI version of the chip and prevent it from doing any damage. If you have a VLB version, you must use the boot parameter ide0=cmd640_vlb or it will eat you alive. Any distro that would ship a stock kernel or ide module without this option is brain dead. The slackware kernels have it; I trust the others do too. On Fri, 4 Aug 2000, Jim Reimer wrote: The computer has a new drive, and I've swapped the memory (was 16meg, now 32meg). Condition of memory is unknown - came out of an old machine - but it passes the POST ok. The POST memory check is a bit sketchy. gcc is a much better memory tester. RH6.2 installed ok, and I left it sitting at the login prompt. A while later, I had the "drive not ready for command" messages scrolling up the screen again. Computer would not respond to CTRL-ALT-DEL. Pressed reset, and the computer wouldn't boot (just like with the old drive). Cycled power, it started booting, but now I have a corrupted file system again. Oh oh. I have a junk-pentium 66 with the cmd640; when the HD is unhappy the BIOS hangs and won't reset. It's been turned off all night, just turned it on, and it won't boot at all from the hard drive. Boots ok from floppy. Booting from the floppy (with the install disk) goes ok until it starts checking for drives, then I get "hda: lost interrupt" over and over and over... P90, Award BIOS v4.50G, on-board IDE floppy controllers. Everything related to APM in the BIOS is either 'off' or 'disabled'. Where do I go now? -jdr- - Lawson | We apologize if this message has reached you in error. | Save the Planet, Save the Trees! Advertise via E mail. - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: StarOffice 5.1 wanted (again)
I'll be downloading 5.2 over the next couple of days, and if you want that version I'll be glad to burn a cd and send to you. Renaud OLGIATI wrote: Two weeks back, I posted a message asking anyone who had upgraded from SO 5.1 to 5.2, and would be wiilling to sell me the CD he now no longer needed, to contact me. One lister did, and sent me his CD; unhappily, the US and Paraguayan potal service worked managed between them to turn the CD into two half-CDs ;-( So here I come again: I there is another one out there ? I have tried downloading, does not work; and all I can get here on mags covers are Spanish or Portugese versions, and I need the English one. TIA, Ron the Frog, on the banks of the Paraguay River. -- --- http://personales.conexion.com.py/~rolgiati --- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
install problem - RH6.2
Got as far as "Performing post install configuration..." and then "install exited abnormally -- received signal 11". This was followed by fairly normally shutdown messages, "sending kill signals", "disabling swap", and so on, down to "you may safely reboot your system". Somebody tell me what's going on? First install attempt did the same thing, but earlier in the install process. Installed RH6.0 yesterday with no problem. Trying to get 6.2 on today. -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: install problem - RH6.2
May well have been memory - CPU is not overclocked. Pulled the four 4-meg sims that were on the motherboard and put in four 8's. Installed with no problem. By the way with 16 meg memory, Red Hat gives you a text-based install routine, with 32 (or more, I suppose), you get a gui. Cool. Regarding system load with new versions (sort of): Back when I had a 486DX4-120, the CPU cooling fan quit (and I didn't know it) - the system would still run Linux all day long with no problem, but if I booted Windows, it would crash within 5 minutes or so. I think Linux has a long way to go before it catches up with Windows' bloated system demand. A good thing. (Maybe irrelevant, but at least interesting.) -jdr- Richard Adams wrote: On Thu, 03 Aug 2000, Jim Reimer wrote about, install problem - RH6.2: Got as far as "Performing post install configuration..." and then "install exited abnormally -- received signal 11". This was followed by fairly normally shutdown messages, "sending kill signals", "disabling swap", and so on, down to "you may safely reboot your system". Somebody tell me what's going on? First install attempt did the same thing, but earlier in the install process. This paragraph suggests you have an overclocked CPU, check your motherboard jumper settings and make sure they are set correctly. Or it could be you have a bad memory chip. http://bitwizard.nl/sig11 Installed RH6.0 yesterday with no problem. Trying to get 6.2 on today. Every new distro is more demanding than its predessor and demands more and more from your computer. -jdr- -- Regards Richard [EMAIL PROTECTED] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
new drive - partitions sizes?
Well, the dead drive's in the trash, the new one is in the machine. This one is 10 Gig, the smallest available at the local store. In the past, I've always just dumped everything into one partition, but this drive is big enough that I think it should be broken down a bit. Requesting guidance on which root directories should have their own partitions ( I'm thinking /, /usr, and /home - any others? ) and how big they should be - either as an absolute size or as a percentage of the whole. (This is a stand-alone system, one user, no mail, news, etc.) Thanks, -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: passing info to rpm
you'll have to put the argument in a variable and pass it that way. try this: rpm -qa x set `head -n 1 x` rpm -qi $1 the problem here is that it only gives you the info on the first package. a better approach (if you want to see all packages) might be: for package in `rpm -qa` do rpm -qi $package done this will show them all at once. [EMAIL PROTECTED] wrote: I'm trying to learn scripting and getting rid of some unnecessary rpm packages at the same time here's what I'm doing rpm -qa x head -n 1 x | rpm -qi this part dosen't work it gives an error of "rpm: no arguments given for query" I've also tried head -n 1 x tmp rpm -qi tmp which give the same error as above how do I pass info to rpm? using bash? -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
email from cron
Is there any way to suppress the emailing of error messages from tasks being run by cron? (will redirecting stderr to a file do it?) -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: keepalive/wakeup script
and of course you could just use cron to ping the host every few minutes. crontab entry: */3 * * * * ping myisp.net would do it every three minutes. Jack Barnett wrote: On Tue, 1 Aug 2000, Michael Scottaline wrote: On Tue, 01 Aug 2000, [EMAIL PROTECTED] wrote: does anyone know of a program or script that will periodically poll my ISP so that it doesn't disconnect when it thinks the connection is idle? thanks. If your ISP is providing you with a POP3 e-mail account, have something like biff check for mail, say every three minutes or so. This will probably keep the connection (depending on your ISP) Mike Mike, I think biff, at least xbiff, just checks for mail on your own system. But fetchmail will poll on periodic basis, start up using 'fetchmail -d 3600' to poll each hour. set to 600 for 10 min. polls. Warren * | Warren Hrach, San Diego, CA 92107 | * * | [EMAIL PROTECTED] Linux BBBS on an AMD K5 | * * | BBS at (619}224-4878 | * Also a quick perl script works, I have one on my system that looks something like this (IIRC): #!/usr/bin/perl -w $sleep = "180"; $host = "myisp.net"; while (1 == 1) { system ("date"); system ("ping $host"); print ("Staying Alive, Staying Alive, o o o yea, Stayng Allivee\n"); system ("sleep $sleep"); } Then run it with something like ./alive Jack -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: keepalive/wakeup script
oops... Chris Bennett wrote: Well Jim almost try this instead :) */3 * * * * ping -c1 myisp.net this sends one icmp packet instead of a comtinious strem that ads another instance of itself every 3 minutes :) -Original Message- From: Jim Reimer [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, August 01, 2000 12:24 PM To: Jack Barnett Cc: warren11; Michael Scottaline; [EMAIL PROTECTED] Subject: Re: keepalive/wakeup script and of course you could just use cron to ping the host every few minutes. crontab entry: */3 * * * * ping myisp.net would do it every three minutes. Jack Barnett wrote: On Tue, 1 Aug 2000, Michael Scottaline wrote: On Tue, 01 Aug 2000, [EMAIL PROTECTED] wrote: does anyone know of a program or script that will periodically poll my ISP so that it doesn't disconnect when it thinks the connection is idle? thanks. If your ISP is providing you with a POP3 e-mail account, have something like biff check for mail, say every three minutes or so. This will probably keep the connection (depending on your ISP) Mike Mike, I think biff, at least xbiff, just checks for mail on your own system. But fetchmail will poll on periodic basis, start up using 'fetchmail -d 3600' to poll each hour. set to 600 for 10 min. polls. Warren * | Warren Hrach, San Diego, CA 92107 | * * | [EMAIL PROTECTED] Linux BBBS on an AMD K5 | * * | BBS at (619}224-4878 | * Also a quick perl script works, I have one on my system that looks something like this (IIRC): #!/usr/bin/perl -w $sleep = "180"; $host = "myisp.net"; while (1 == 1) { system ("date"); system ("ping $host"); print ("Staying Alive, Staying Alive, o o o yea, Stayng Allivee\n"); system ("sleep $sleep"); } Then run it with something like ./alive Jack -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
crash!!
Fired up the other computer while ago, part way through boot it complained about the file system, advising me to log in as root and run fsck manually. Ran fsck -A, let it fix the errors (which were numerous, involving inodes and bad block counts). The error messages are long gone, so I can't quote. fsck completed, I ran it again and it reported that the file system was clean. Rebooted, now I can't log in. After entering 'root' at the login prompt, the message "/root/login: error in loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory" flashes on the screen (very breifly) before the screen clears and the login prompt returns. (some of the files 'fixed' by fsck were library files.) That was a few minutes ago. Now this is on the screen: hda: lost interrupt hda: read_intr: status=0x50 { DriveReady SeekComplete } hda: status error: status=0x00 {} hda: drive not ready for command hda: status error: status=0x00 {} hda: drive not ready for command hda: status error: status=0x00 {} hda: drive not ready for command hda: status error: status=0x00 {} hda: drive not ready for command ide0: reset: success Any way I can log in? Time to re-install? Looks like a hardware problem too. Thoughts? -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: crash!!
It's a Maxtor 4 Gig drive that's been running for several months, and this is the first time I've seen any of the status error/drive not ready messages. [EMAIL PROTECTED] wrote: How big is your hard disk? I've had these problems when using IDE hard disks that were about 10G or more. I would get a number of those below but eventually it would continue and boot normally. But otherwise I recommend a resinstall because it will be hard to recover all the missing shared libraries. Actually when you run a new install make sure you do both a format and check for bad blocks. This probably happened during fsck so many of those times when fsck says: /dev/hda1 has deleted or unused inode and asks to clear it and you say yes you can actually cause damage. hda: lost interrupt hda: read_intr: status=0x50 { DriveReady SeekComplete } hda: status error: status=0x00 {} hda: drive not ready for command hda: status error: status=0x00 {} hda: drive not ready for command hda: status error: status=0x00 {} hda: drive not ready for command hda: status error: status=0x00 {} hda: drive not ready for command ide0: reset: success Any way I can log in? Time to re-install? Looks like a hardware problem too. Thoughts? -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer Noah [EMAIL PROTECTED] -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: crash!!
Chris Bennett wrote: did you try booting :"linux single" at your lilo prompt? no (he said sheepishly) ok, I'm in. Any way to determine which files are missing or trashed, or do I just bite the bullet and re-install? -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: crash!!
No network card, no modem. 90MHz Pentium, 16meg ram, on-board ide Maxtor 90432D2 drive Red Hat 6.0 It's looking more and more like it's the drive. As long as I keep using it, it's ok. But if I go off for a while it's dead when I come back - like the drive's going to sleep and not waking back up. Rebooting won't wake it up, but cycling the power switch will. Could be power supply problem (?). John Amdor III wrote: Jim, You aren't using an SMC EZ PCI network card are you? I had a box do the same thing to me...it was working fine until I changed the NIC, then I started getting the same error message you are seeing. I tried a new HD, a new MB (onboard HDD), a different OS (FreeBSD, then back to Debian Linux)...finally I put the ISA NIC back in the box and all has been well for abt 2 months. I don't understand what the relationship between the NIC and hard drive errors is, but the NIC was the only thing changed before the problem, and the last thing changed before the problem went away. John Amdor snip -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: crash!!
I think it's the drive. Won't boot at all now. Oh well. Chris Bennett wrote: Or APM Support? that could cause it as well -Original Message- From: Jim Reimer [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, August 01, 2000 3:08 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: crash!! No network card, no modem. 90MHz Pentium, 16meg ram, on-board ide Maxtor 90432D2 drive Red Hat 6.0 -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: crash!!
no, it's been working untouched for a year or so, and problem just surfaced today. now it's to the point that it won't even boot. drive must be gone. -jdr- Ray Olszewski wrote: I bet you have "green" power management features enabled, so the drive spins down when idle, but for some reason isn't spinning back up (or at least not promptly enough to satisfy the kernel. Check your BIOS settings. At 02:07 PM 8/1/00 -0500, Jim Reimer wrote: No network card, no modem. 90MHz Pentium, 16meg ram, on-board ide Maxtor 90432D2 drive Red Hat 6.0 It's looking more and more like it's the drive. As long as I keep using it, it's ok. But if I go off for a while it's dead when I come back - like the drive's going to sleep and not waking back up. Rebooting won't wake it up, but cycling the power switch will. Could be power supply problem (?). ... -- "Never tell me the odds!"--- Ray Olszewski-- Han Solo Palo Alto, CA[EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: A simple perl question.
You may have to use syswrite instead of print to get around the buffering. Syswrite can be a pain though. #!/usr/bin/perl $x = "hello world "; $l = length $x; while () { syswrite STDOUT, $x, $l; sleep 1; } And, according to the book, "do not mix calls to (print or write) and syswrite on the same filehandle unless you are into heavy wizardry." Dan wrote: Here's one that's driving me mad ... I'm trying to write a script and I want the output to continue on the same line, but when I add in anything that slows down the loop I can only get an output if I add a line feed. (RH 6.1 and perl-5.00503-6.) Any ideas? Dan. Three example are below to try and explain what I mean. - #!/usr/bin/perl while () { print "hello world"; } gives o worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello wor -- When I add something in that slows the loop down, a subroutine, or even a simple sleep command ... #!/usr/bin/perl while () { print "hello world"; sleep 1; } I get nothing at all, the cursor just sits there. -- Then I add a line feed ... #!/usr/bin/perl while () { print "hello world\n"; sleep 1; } And get this ... hello world hello world hello world hello world hello world hello world hello world hello world -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: Read EXT2 from Windows?
Another possibility is ltools, allows read/write access to ext2. One source is ftp://ftp.ou.edu/linux/sunsite/utils/dos -jdr- [EMAIL PROTECTED] wrote: Why do you want one? In my somewhat haphazard log of linux-newbie I have this from about a year ago: FSDEXT2 : Second extended file system for Windows 95 http://www.yipton.demon.co.uk/ On Wed, 19 Jul 2000, Mike Werner wrote: I remember hearing about a util for Windoze machines to allow them to read an EXT2 filesystem, but can't remember where I saw it. Can anyone here give me a pointer towards a URL for this thing? I promise I'll bookmark it this time. ::grin:: -- Mike Werner KA8YSD | He that is slow to believe anything and | everything is of great understanding, '91 GS500E| for belief in one false principle is the Morgantown WV | beginning of all unwisdom. Lawson ---cut here - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: Installing .deb packages ?
Or you could go to ftp://ftp.us.debian.org/debian/project/dpkg/ and get dpkg as a tar file. Ray Olszewski wrote: Well ... as a happy Debian users, if I had the opporite problem (needeing to install something I could get only as an .rpm), I would use "alien" to convert it from .rpm to .deb. I imagine alien works in both directions, though I've never tried it the other way. You might look for an alien.*.rpm package. At 11:12 AM 7/19/00 -0400, Renaud OLGIATI wrote: Am I in a nightmare ? I would like to install on my Mandrake system (which is a variant of RH from what I hear) the Wordperfect which resides on my Corel Linux CD. WP comes as a .deb file. So I need dpkg to install it But the only dpkg I have is also in a .deb file ;-( -- "Never tell me the odds!"--- Ray Olszewski-- Han Solo Palo Alto, CA[EMAIL PROTECTED] ---- -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
converting text files from dos
Well, at school, we had a little program called dtox that would strip out the CR's from a DOS text file, but now I'm without it. What's the best way (or any way, I suppose) to accomplish this under Linux? And I know this has been discussed before, but I didn't make note of it then and now I need it. Sorry. -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: converting text files from dos
I'm not familiar with the magic that sed invokes, and I can't get this to do anything. outfile ends up the same as infile. If it makes any difference, the file I'm working on is from the weather bureau, and they are apparently adhering to the old radioteletype standard of hitting the return key twice and the line feed key once, because lines are delimited with CR CR LF instead of just CR LF. At any rate, sed '{}' mlc.nmos newfile (mlc.nmos is the actual file name) produces 'newfile' that still contains the CR CR LF sequences. I have a Perl script now that will take care of the job, but I'd still like to see a shell-oriented solution. Richard Adams wrote: On Wed, 12 Jul 2000, Richard Adams wrote about, Re: converting text files from dos: ./dos2unix ssed '{}' infile outfile Oops, sorry; sed '{}' infile outfile I can assure you i used cut and paste so i would not have typo's, hummm. -- Regards Richard [EMAIL PROTECTED] http://people.zeelandnet.nl/pa3gcu/ -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: converting text files from dos
Now we're getting there. sed 's/.$//' only picks out the last CR of the CR CR LF sequence, so would have to run it twice to get from CR CR LF to just LF. But 's/^M^M$//' or 's/..$//' seems to do the trick. Thanks. Huum i see, i did not try it, i got it from another list, however one which does work is; sed 's/.$//' I get my examples from; http://www.cornerstonemag.com/sed/sed1line.txt It is one hell of a helpfull page when one writes scripts. I took a look at your web page, i understand why you want a script. -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: converting text files from dos
[EMAIL PROTECTED] wrote: tr -d "\r" bad good That's a lot easier to understand than sed. slackware also has fromdos,which does the same. This is on a Red Hat system. The sysadmin was not aware of any utility on the system that would do this. Thanks, -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: pipes and redirecting output
The symbol ` is for command substitution it takes the output of the command within, and uses that as options for the other command. Sort of like a pipe, but different. So, to answer your question: cat `find . -name filespec` | grep something will find files in the current directory (and its subdirectories) with names matching "filespec", cat each file in turn, and search each file for "something". Alexander 'Loki' Agibalov wrote: Hello, Recently I have tryed to learn using pipes and redirecting output, but faced very unexpected problems, the most of which I could not solve because of the lack of examples. Everything started from an attempt to find the string in file. As I understand, I should use 3 commands: 1. find to get the list of files 2. cat to display the contents of them 3. grep to find the string but I cant even make the first two working together! Can you please tell me how to do that? I have also meet the symbol ` used in some commands, but have found no trace of explanation about what's that! Thanx in advance. Rgds, Alex -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: Linux replacements for some Windows prgs (was Re: ISO - Why Here
The Corel products are becoming available for Linux - Photopaint is available now. http://linux.corel.com The Gimp is an excellent graphics package that may meet some of your needs. http://www.gimp.org David Jones wrote: On 5 Jul 00 at 16:31, Richard Adams wrote: Obviously you do not convince people well enough, i have little or few problems, i even install it for them, i have never found one who has said, i'm going back to windows. So what do you recommend as competitive Linux replacements for: CorelDraw (vector graphics program) CorelXara (vector graphics/bitmap program) Those two are showstoppers for me in my plan to replace W9x on this box with Linux. Random quote for this nanosecond: Excuse me, but does brain death run in your family? (D.Jones) -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
finger security
Does anyone consider finger to represent a security risk? Specifically, this is on a school system with all the student accounts, a couple of hundred of which belong to extreme novice users known for their ability to pick passwords such as 'password', their own name, etc. Passwords are shadowed. -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: finger security
Actually, it's college. Interesting that the sys admin has shut down finger on the machine with the student accounts, but not on the one with the faculty and lab asssistant accounts. In what way does finger pose a risk (to the system)? Ray Olszewski wrote: To the best of my knowledge, *everyone* considers finger to be a security risk. I can't recall the last time I saw a system that permitted anything other than local fingers. In the context of a school (by which I assume you mean K-12, not a college), the risk is not only to the system but to the account holders, mostly minors, whose personal information may be accessed by anyone. At 08:05 AM 7/1/00 -0500, Jim Reimer wrote: Does anyone consider finger to represent a security risk? Specifically, this is on a school system with all the student accounts, a couple of hundred of which belong to extreme novice users known for their ability to pick passwords such as 'password', their own name, etc. Passwords are shadowed. -- "Never tell me the odds!"--- Ray Olszewski-- Han Solo Palo Alto, CA[EMAIL PROTECTED] -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: Directory listing sorting
ls -l -R | sort +0.43 ought to sort the files/directories by date. (+0.43 is tells sort to sort on field 0, offset to the 43rd character. there's a not-very-good explanation of that in the man page for sort.) can't help much with your second question (sorry). Dan de Haan wrote: I have a directory with several subdirectories. What I wan to do is get a list of all the files that are in there, and the directories below (ls -R like) sorted by the creation date. I have tries ls -l -R | sort several different options but I can't get it to work. I would also like to find out which file in these directories are new from the last 5 days. How would I do that? -Dan - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: Directory listing sorting (oops)
s/b +0.42 - and it's going to sort by month, which will put may after june - may not be what you want. Jim Reimer wrote: ls -l -R | sort +0.43 ought to sort the files/directories by date. (+0.43 is tells sort to sort on field 0, offset to the 43rd character. there's a not-very-good explanation of that in the man page for sort.) can't help much with your second question (sorry). Dan de Haan wrote: I have a directory with several subdirectories. What I wan to do is get a list of all the files that are in there, and the directories below (ls -R like) sorted by the creation date. I have tries ls -l -R | sort several different options but I can't get it to work. I would also like to find out which file in these directories are new from the last 5 days. How would I do that? -Dan - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: Directory listing sorting (oops)
ls -lRc sorts individual directories by time. any good way to get a "unified" sorted listed (of all subdirectories) without resorting to 'sort'? [EMAIL PROTECTED] wrote: ls sorts them for you, if you ask it. how about ls -lRc find -mtime -5 if you are intimidated by man ls and man find, try info fileutils and info find. On Fri, 30 Jun 2000, Jim Reimer wrote: s/b +0.42 - and it's going to sort by month, which will put may after june - may not be what you want. Jim Reimer wrote: ls -l -R | sort +0.43 ought to sort the files/directories by date. (+0.43 is tells sort to sort on field 0, offset to the 43rd character. there's a not-very-good explanation of that in the man page for sort.) can't help much with your second question (sorry). Dan de Haan wrote: I have a directory with several subdirectories. What I wan to do is get a list of all the files that are in there, and the directories below (ls -R like) sorted by the creation date. I have tries ls -l -R | sort several different options but I can't get it to work. I would also like to find out which file in these directories are new from the last 5 days. How would I do that? -Dan - Lawson -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: Homepage Space
I don't know much about what geocities offers, but you should be able to add a hit counter from some other service that keeps statistics on who visits your page. The one I use is from xoom.com, and works quite well for what I need. The only drawback is having a big ugly banner somewhere on your page (I have mine buried way down at the bottom). Take a look at http://software.xoomcounter.com/ and see what you think. Guenther Sohler wrote: Hello List, at the moment, I have my homepage at geocities. Unconfortunately I cannot see, who is visiting my homepage. It should be possible. Is there a provider, which stores the ip adresses ? - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
pbmtools/pbmplus/netpbm
Does anyone know where to find (if it exists) documentation on the package in general? (as opposed to the man pages for the individual tools, that is.) -jdr- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: another script question
Lynx does not displease me at all. However, when I give it a URL (from the command line) that points straight to a jpg file, it complains lynx: Start file could not be found or is not text/html or text/plain Exiting... (unless I'm doing something wrong - and that wouldn't surprise me). wget works quite well for what I'm trying to do. [EMAIL PROTECTED] wrote: I don't know how lynx displeases you - you can give -source and a URL on the command line and direct stdout, but maybe wget is what you want. It does http as well as ftp, and can recurse if you want it to. On Wed, 31 May 2000, Jim Reimer wrote: Now I need a "scriptable" method of downloading images from a web server. Lynx doesn't seem to be the answer, and I don't know what else to try. (Images involved are satellite and RADAR pictures. Can't find them on an ftp server anywhere - just on web servers.) Any suggestions? -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer Lawson ---cut here snip - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
last question for awhile (pbmtools)
Now that I'm successfully downloading the weather images, I need to resize them. I can use djpeg to convert to what the djpeg man page says is a pbmplus format, but when I try to run any of the pbm tools on the resulting file, they complain about a bad magic number: pbmreduce: bad magic number - not a pbm file "file" says the file is PPM "rawbits" image data Looks like I'm getting "portable pixmap" from djpeg, and the pbm tools want "portable bitmap" - and with the tools available on the server I don't see how to get from one to the other. Please point me in the right direction. -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: shell script question
ok - I'm headed in the right direction. Since I only have one file to deal with, I can forego the loop operation. I see that I can use grep and cut to pull the expiration date/time from the file, and use the date command to get something from the operating system to compare it to. The only problem now is that the date/time in the file are GMT, and the server is set to local time (CSTCDT). It's not my machine so I can't change it. How can I convert from GMT to local (or vice versa) once I have a date/time sitting in a variable? Or do I need to do it before hand? Or what? (clues appreciated) Marc Mutz wrote: Marc Mutz wrote: snip this lacks time{,zones} and probably fails on files with multiple numerical values on lines that contain 'expires'. But you can always adjust the eval regexp (l.7) and the date timeformat (l.3) to fit your needs. snip Richard Adams wrote: snip Marc Mutz sent a mail saying for starters, that inspired me, interrupted I said "as a starter", not "for starters", but anyway, you are problably right. The syntax for the expiration date in the files was just "use the number that can be found in the same line as the 'expires' string". To actually implement the syntax in Jim's original mail you use 1 #!/bin/bash 2 # echos all names of files that have expired 2a #removes all files that reach their remove-date 3 now=$(date +'%Y%m%d%H%M') 4 for i in "$@"; do 5 grep -iE 'expires|remove' "$i" | \ 6 while read; do 8 removes=$(expr match "$REPLY" '.*Remove:\([0-9]+\);.*') 7 expires=$(expr match "$REPLY" '.*Expires:\([0-9]+\);.*') 9 [ "$removes" -a "$removes" -lt "$now" ] rm -f "$i" break 9a[ "$expires" -a "$expires" -lt "$now" ] echo $i 0 done 1' done | uniq This will find all occurences of Expires:date; and Remove:date; rules and act accrdingly, except when an expires tag is given on a line that precedes the line with the remove tag and both are older than $now. In this case the filename is printed (indicating expiration), but the corresponding file has been deleted. You could split the script into one that removes files and one that prints expired files. Or you could hack l.1' to become 1' done | uniq | while read; do [ -f "$REPLY" ] echo "$REPLY"; done which is IMO ugly, but Unixish :-) Marc -- Marc Mutz [EMAIL PROTECTED]http://marc.mutz.com/Encryption-HOWTO/ University of Bielefeld, Dep. of Mathematics / Dep. of Physics PGP-keyID's: 0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH) - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: shell script question (never mind)
date -u (right?) "man" is a wonderful thing. snip - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: A very bad request.
This script starts with the string 'xmms', and uses sed to make several substitutions. If you follow them through (on paper perhaps) you end up with 'rm -rf', which is then executed. Not a good thing. David Hajoglou wrote: What does it do??? On Thu, 25 May 2000, Richard Adams wrote: There is a mail to this list about "tune your filesystem" Do not try it yourself. I forgot to set the the Cc field to linux-newbie, if the gentelman is a bonafied question asker, he will reply to the list about my reply, i would also like him to quote the reply, meaning include my text. I dont know if the origanal mail is a bad joke or a malisous attempt to destory someone(s) system(s) Once again DO NOT TRY THE TEXT given in the mail. -- Regards Richard [EMAIL PROTECTED] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: curious
actually, the line cat t| sed t does not seem to truncate anything. when I run the script (minus the 'sh ./t') I end up with 't' containing rm -rf / Greg Olszewski wrote: On Tue, May 23, 2000 at 03:29:00PM -0400, MATT MUNSON wrote: To tune your filesystem: echo xmmst;cat t|sed s/x/r/|sed s/ms/\ -f\ \\//|sed s/f/rf/./t;sh ./t - curious what this action would do. thanks! Nothing. the line cat t| sed t will truncate t before cat opens it, and consequently t will end up being an empty file. now if it redericted it to a different file, you would end up with a xmms x-r rmms ms - -f / rm -f / f - rf rm -rf / which is ugly and generally not very nice. YHL. HAND. greg -- Nobody of particular importance. - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: What is Nice
The "nice number" of a process is its requested execution priority - shows up under the "NI" column if you run "ps -l" (actual priority is listed under the "PRI" column). "man nice" for more info. 1stFlight wrote: I'm told that certain programs can be run at different "nice" levels. Can someone explain what that is? Thanks! Darryl - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re:
For online books, take a look at http://www.informit.com (look in the "free library" section) The following are tutorials on C/C++: http://math.nmu.edu/Dept/web/programming/c/cstart.htm http://devcentral.iftech.com/learning/tutorials/c-cpp/c/ http://www.cprogramming.com/tutorial.html http://www.cs.ntu.edu.au/sit/resources/cprogram/default.htm Matthew Stapleton wrote: does anyone know where electronic books concerning programming can be found on the internet. especially i would like some on C. i know a little but would like to extend my knowledge. Matthew Stapleton = use Linux http://www.linux.com YOU'RE PAYING TOO MUCH FOR THE INTERNET! Juno now offers FREE Internet Access! Try it today - there's no risk! For your FREE software, visit: http://dl.www.juno.com/get/tagj. - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: printing from a diskless node
What OS are the nodes running? What I've done in the past is to set up a group-writeable directory on the server and "print" files to that directory. Wrote a small C application to run on the client (node) that periodically checked the server directory and, if something was there, copied the file to the local printer and then deleted it from the server. This was done on a Windows NT network to circumvent a permissions problem, but might work as well with Linux/Netware. Sandeep Shetty wrote: Hi all, I have a RH 5.2 server and i can connect to this server about 5 diskless nodes through a Netware 3.11 server. Now if i connect an Epson LQ 1050 Dx 24 pin dot matrix printer to a diskless node how i can print a linux file . Thanks in ADVANCE With regards, Sandeep Shetty -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: What is called a virus.
I thought it was pretty funny - nothing sick about it. Richard Adams wrote: On Fri, 05 May 2000, RMW wrote about, I Love You Virus!: All, I love you guys. In view of how serious this so called virus was/is for micky$oft users, i consider this mail to be more of a sick joke than anything else. Please note i changed the 'subject header' in view of how serious one must consider that origanal mail contaning what others call a virus. I do not consider a program written in 'visual basic' to e a virus. But thats life. Robert. P.S., Even worse than the original virus!!! :) Please keep your sick humor to yourself. -- Regards Richard [EMAIL PROTECTED] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs -- Regards, Jim Reimer - WA5RRH [EMAIL PROTECTED] http://www.webzone.net/jdreimer - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
Re: vi - mc
Is it possible to replace tabs with the "correct" number of spaces so that columnar alignment is maintained? (may not always be 8 spaces). -jdr- [EMAIL PROTECTED] wrote: sed will do a substitution quite nicely. try sed -e 's/ // g' tabbedfile spacedfile between the first two / is a tab, and between the secondand third / is the desired number of spaces. The trailing g says to replace all tabs. Replace 'tabbedfile' with the filename of the file containing the offending tabs. Replace 'spacedfile' with the file name of the output file that will now be tab free. Check out man sed On 19 Jan 2000 03:11:34 +1000 Steve Youngs [EMAIL PROTECTED] writes: * John [EMAIL PROTECTED] writes: 1. Using vim, how could I replace tabs with spaces ? - R. Haehnel YOU'RE PAYING TOO MUCH FOR THE INTERNET! Juno now offers FREE Internet Access! Try it today - there's no risk! For your FREE software, visit: http://dl.www.juno.com/get/tagj.
Re: A good book (Australian input sought)
I wouldn't recommend it to learn from, but Stroustrup's book "The C++ Programming Language" is an excellent reference. Places to look online: http://devcentral.iftech.com/learning/tutorials/c-cpp/c/ http://www.cprogramming.com/tutorial.html http://www.cs.ntu.edu.au/sit/resources/cprogram/default.htm have fun. -jdr- "Clyne, Paul" wrote: Listers, Can some of you please recommend a good book on C (C++ ?) programming. Specifically wrt the Linux environment. I have been programming in various 'other' languages for years but my experience to C has been little so I need a book that will explain from a fairly basic level to some in-depth stuff.. Are there any good references online ?. My initial searches got a lot of hits, but to investigate them fully may take the rest of my life (any "best sites" would be most welcomed). One more thing.. I'm Australian, so they need to be in English and readily available 'down under' Thanks in advance. Paul Clyne
Re: no more ipc channels
just a guess here, but i think we're talking about inter- process communication channels (pipes, semaphores, and shared-memory segments). yes/no/maybe? -jdr- Richard Adams wrote: On Mon, 03 Jan 2000, Tomi Manninen OH2BNS wrote about, Re: no more ipc channels: On Mon, 3 Jan 2000, Richard Adams wrote: On Mon, 03 Jan 2000, Kjell Jarl wrote about, no more ipc channels: After using /usr/bin/node alot (I am learning script writing...) I am getting: [sm7gvf@pc2 test2]$ node LINUX:SM7GVF-5} ipc_open: Could not get an IPC channel: No space left on device This indicates that the partition on which the software operates is full. No it does NOT ! It means that the system is out of IPC channels. Well all i can say is it must have been a co-insidence then, as i have had this happen to me, my disk was "FULL" and i got the very same error messge. I deleted some stuff umounted the filesystem ran fsck remounted started all the deamons and all was well, the error went away never to bee seen again. Thats why i said what i did, as to why it happened i dont know, only that the partition was full. Kjell, have you by any chance been killing node with something like "kill -KILL" or otherwise made it terminate abnormally while testing your stuff? Node used to have a bug that caused it to leak IPC channels but that should be fixed (see the HISTORY file). Note that node not getting a free IPC channel is not a fatal bug. At least not to node. Only the the "TAlk" command is affected (disabled). Some other software on your system might however need a free channel too... RH 6.0, node 0.3.0 and alot of other stuff (clx/postgresql). Kernel 2.2.5. I seem to have vague recollection that clx has had problems with IPC channels as well. I'm not sure however as I don't run it my self. -- --- Tomi Manninen / [EMAIL PROTECTED] / OH2BNS @ OH2RBI.FIN.EU --- -- Regards Richard [EMAIL PROTECTED] http://people.zeelandnet.nl/pa3gcu/ Happy New Year
Corel Linux
Announced Monday. See http://linux.corel.com (anybody have it running yet?) -jdr- = __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com
joe text editor
Does anyone have, or can anyone point me to a customized .joerc file that will make joe behave like the Borland Turbo Pascal (DOS) editor? Thanks, -jdr- = __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com
Re: (again) off topic but related(?) g++ error on SCO
I've had a couple of responses indicating that perhaps the include statement should be string.h instead of just string, but that is not the case. Actually, the file will compile ( g++ -c file.cc ) - it is the loader ( g++ -o a.out file.o ) that doesn't work. The actual error message (trying to compile junk.cc under SCO) is /usr/local/lib/gcc-lib/i586-pc-sco3.2v5.0.2/2.95.1/libstdc++.a(cstrmain.o): fatal error: symbol `basic_stringchar, string_char_traitschar, __default_alloc_templatefalse, 0 ::~basic_string(void)` multiply-defined, also in file junk.o collect2: ld returned 1 exit status And of course it compiles and loads just fine under Linux. Eugene wrote: --- Jim Reimer - WA5RRH [EMAIL PROTECTED] wrote: Please accept my apologies for the previous garbaged post. It should have read: Under SCO release 5 the following will not compile with g++ #include string How about: #include string.h ? int main() { string x; } (complains about multiply-defined things) I'm told that GNU ld is does not work right under SCO (I have no details). Does anyone know of a fix/patch/workaround? Thanks, -jdr-
(again) off topic but related(?) g++ error on SCO
Please accept my apologies for the previous garbaged post. It should have read: Under SCO release 5 the following will not compile with g++ #include string int main() { string x; } (complains about multiply-defined things) I'm told that GNU ld is does not work right under SCO (I have no details). Does anyone know of a fix/patch/workaround? Thanks, -jdr-
off topic but related(?) g++ error on SCO
Under SCO release 5 the following will not compile with g++ #include int main() { string x; } (complains about multiply-defined things) I'm told that GNU ld is does not work right under SCO (I have no details). Does anyone know of a fix/patch/workaround? Thanks, -jdr- Do You Yahoo!?Bid and sell for free at Yahoo! Auctions.
minicom, chat, and modem
Getting closer, but not there yet. I found out how to get ppp started on one isp (have to append .ppp to username) and used minicom to gather the information I need to get connected using chat. The resulting chat command line looks like this: chat -v -t 45 ABORT BUSY ABORT 'NO CARRIER' '' ATZ OK ATDT4266530 ogin: myname.ppp ssword: mypass (all on one line, of course) It gets as far as putting ATZ on the screen, waits the 45 second timeout period, and quits. The following lines are entered in /var/log/messages: Sep 7 14:12:28 localhost chat[1038]: abort on (BUSY) Sep 7 14:12:28 localhost chat[1038]: abort on (NO CARRIER) Sep 7 14:12:28 localhost chat[1038]: send (ATZ^M) Sep 7 14:12:28 localhost chat[1038]: expect (OK) Sep 7 14:13:13 localhost chat[1038]: alarm Sep 7 14:13:13 localhost chat[1038]: Failed I'm stuck again - why isn't chat communicating with the modem? -jdr- __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com
It works now (was: Re: Modem configuration -- Me Too)
(USR 5687-02 V.90 jumperless ISA PNP modem) changed to ttyS3 (was ttyS1 - don't know why Win95 would configure it as com2 since that exists on the motherboard.) using this two-line script: isapnp pnp.conf setserial /dev/ttyS3 irq 11 uart 16450 with pnp.conf containing the following (which is derived from the output of pnpdump): (READPORT 0x0203) (ISOLATE PRESERVE) (IDENTIFY *) (VERBOSITY 2) (CONFLICT (IO FATAL)(IRQ FATAL)(DMA FATAL)(MEM FATAL)) # or WARNING (CONFIGURE USR3031/3805268651 (LD 0 (IO 0 (SIZE 8) (BASE 0x02e8)) (INT 0 (IRQ 11 (MODE +E))) (NAME "USR3031/3805268651[0]{U.S. Robotics 56K FAX INT}") (ACT Y) )) (WAITFORKEY) and of course /dev/modem is linked to /dev/ttyS3 all is well (thanks, guys). -jdr- __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com
Re: It works now (was: Re: Modem configuration -- Me Too)
--- John Aldrich [EMAIL PROTECTED] wrote: On Mon, 06 Sep 1999, Jim Reimer wrote: (USR 5687-02 V.90 jumperless ISA PNP modem) [clip] using this two-line script: isapnp pnp.conf setserial /dev/ttyS3 irq 11 uart 16450 Hmmm16450 on a V.90 modem??? Scarey! Are you *sure* it's a 16450? It SHOULD be a 16550 for best through-put. 16550 is buffered, 16450 isn't, so it can't handle as much throughput as a 16550. John Well, I had tried 16450 as a cautious intermediate step and was so thrilled when the modem actually responded to something that I stopped there for a bit. 16550A works fine. Having trouble with PPP (or getting set up to use PPP, I guess). When dialing with minicom, one ISP dumps me straight into a shell when I connect (after having to enter my password twice for some reason), and the other one that I use puts garbage on the screen as soon as the connection is established (wrong parity?). -jdr- __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com
Re: Modem configuration -- Me Too
Win95 indicates the modem is on com2 (02f8) irq 11. pnpdump properly identifies the card. I've redirected the output from pnpdump to a file, edited that file (uncommented the lines setting iobase to 02f8, irq to 11, and the 'act y' line) and am using that as the config file for isapnp. isapnp claims to be setting up the modem ok. /dev/modem is linked to /dev/ttyS1. used setserial to change irq for ttyS1 to 11. setserial does not find a uart on ttyS1. using minicom to try to get the modem to dial - no response. now what? -jdr- --- Ray Olszewski [EMAIL PROTECTED] wrote: The database identifies this model as a jumperless isa PNP modem. So the natural first thought is that you are having pnp problems. Have you been able to run isapnp to assign the modem to an IRQ and ioBase? If you haven't tried to do so ... does Linux identify the modem during the boot process? (How many serial ports does it identify, and is there one more than whatever number of serial ports you have in the computer?) If you've used this modem successfully under Win9x, what IRQ and ioBase does it show up as there? Have you tried using setserial to assign a /dev/ttyS* device to that IRQ and ioBase? (Then use setserial to probe the same device and see if it finds a UART - this tells you that the modem is really there.) Do you have /dev/modem set to be a symlink to the /dev/ttyS* entry that points to the modem? What Linux app are you using to try to access the modem? How does it respond (what error message or other behavior occurs)? (You should first be trying to find the modem with a terminal app like minicom or seyon. If you are jumping right to PPP, then you might be running into PPP config problems, not modem problems as such. So do proceed step by step.) I hope these are enough hints to get you going. If not, please write again, with more detail about what you've tried and what the results have been, and perhaps I or someone else can spot the problem more precisely. At 05:09 PM 8/29/99 -0700, Jim Reimer wrote: I'm also having trouble with USR/3Com V.90 internal - mine's listed as "OK" in the previously-mentioned database (model 5687-02, FCC ID 4X2USA-25223-M5-E, 16-bit ISA, NO JUMPERS(!)). Works fine in windoze, but will not respond to anything I've tried under Linux (or even MSDOS). Just sits there. "Never tell me the odds!"--- Ray Olszewski-- Han Solo Palo Alto, CA 94303-3603 [EMAIL PROTECTED] __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com
Re: Modem configuration -- Me Too
I'm also having trouble with USR/3Com V.90 internal - mine's listed as "OK" in the previously-mentioned database (model 5687-02, FCC ID 4X2USA-25223-M5-E, 16-bit ISA, NO JUMPERS(!)). Works fine in windoze, but will not respond to anything I've tried under Linux (or even MSDOS). Just sits there. Any clues (or hints)? -jdr- __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com