Re: newbie: redhat 9.0 very slow
[Please press enter every 70 chars or so. And please don't top post, and trim the irrelevant quoted material. It makes it easier for everyone else. Thanks.] On 06:39 22 Oct 2003, sam kupar [EMAIL PROTECTED] wrote: | when u are installing redhat9,u have to select swap size;which is | recommended to be double the RAM.have u selected 256MB or more of swap | size.actually i am also having the same configuration as urs and the | things are at a good speed(with background tasks and downloading etc). With anything modern you want RAM+swap == the maximum you're ever likely to run at once (including this that are up but idle). The twice RAM is simply a rule of thumb. In an ideal world you would have more RAM than you need and never swap (well, never page, but let's not be picky). In practice you'll generally have more process memory in use than RAM available and so the overflow is stored in swap until needed. You want enough swap to never run out of overflow area, that's all. At any one time you have a working set - the pages of programs that are in regular use. If that's bigger than RAM your machine will spend some time paging (exchanging the less wanted data in memory for immediately wanted data in swap or from disc files not currently cached) instead of actually running your programs (because the program will be stalled waiting for its data to come back from the swap area). If your working set needs a lot of swap that some time will become a lot of time or even almost all the time, which is called thrashing. You can always add more swap later as a swap file - see man swapon. More swap will not affect your performance at all, neither faster nor slower. It's simply room to have more programs up at a time. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Newtons 4th law: For every action there is an equal and opposite beaureaucratic policy. - Adrian Tritschler, [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: newbie: redhat 9.0 very slow
On 17:26 21 Oct 2003, Ed Wilts [EMAIL PROTECTED] wrote: | On Tue, Oct 21, 2003 at 01:04:47PM -0700, Hawkeye Parker wrote: | i've recently installed redhat 9.0 on an athalon 650 with 128MB ram. | | For starters, you are below the recommended configuration. The absolute | minimum is 128MB, with 192MB recommended for a graphics workstation. | | http://www.redhat.com/software/linux/technical/ | | Your CPU should be enough, but add some memory and you'll be much | happier. An extra 256MB of PC133 (which is what I'm guessing your | system will need) is about $45-50. Damn. I guess I have to go and remove RedHat 9 from my 233MHz laptop with 96MB of RAM. A pity - it _appeared_ to work just fine. Of course, I'm running FVWM instead of KDE or Gnome... -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ A Master is someone who started before you did. - Gary Zukav -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: newbie: redhat 9.0 very slow
On 13:04 21 Oct 2003, Hawkeye Parker [EMAIL PROTECTED] wrote: | the installation went without a hitch: i just held down 'next' and | went with the defaults. when i finally booted, however, X took forever | to load, and once it was up, *everything* ran *very* slowly (10-15 secs | to load mozilla). a quick look at the system monitor shows that my | ram is almost gone (111 out of 128) and the cpu is frequently pinned. | this is with *nothing* open other than startup processes. [Please press enter every 70 chars or so. Thanks.] | is something wrong, or do i need a faster system to run X? in it's current state, it's unusable. Your machine _should_ be fine. Mozilla does take a long time to load initially. Try getting FireBird or Galeon or Konqueror - any of these may be smaller. Once Mozilla (or whichever browser) is up, subsequent new pages should come up close to instantly. CPU usage: Pop up a terminal and run top. That will show you what processes are using most of the CPU at any given time. Then let us know - we can be more helpful then. Having all your RAM in use is normal and desirable. The more that's in RAM, the less that must be fetched from disc, which is a speed win. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ What do _you_ care what other people think? - Arlene Feynman -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Recommend multi port ethernet adapter?
On 08:13 16 Oct 2003, Thierry ITTY [EMAIL PROTECTED] wrote: | A 13:37 15/10/2003 -0400, vous avez ?crit : | I am using Red Hat version 9 to build a multiple network router and | firewall. I'll need a couple of either dual port or four port 100mb | network adapters. | | if your network backbone supports this, you might consider using VLANs | instead multiple physical NICs | so you define for example an inside, a dmz, and an outside virtual | interface, and configure the switch your machine is connected to accordingly. That doesn't really work (with CISCOish VLANs, anyway). A VLAN will basicly prevent you using the other IPs in the networks not matching the vlan of the port. Besides, physical separation is a good thing to have, rather than trusting your switch never to get its VLANs mucked up. Back on the core copic, it's possible to get (at least) dual port Intel EEPro100 cards; we've got one in a firewall I help look after. Seems to work. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Dope will carry you through times of no money better than money will carry you through times of no dope! - Freewheelin' Franklin -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: CPIO - this should be simple - right !
On 18:34 08 Oct 2003, Distribution Lists [EMAIL PROTECTED] wrote: | I'm trying to restore subdirectories with CPIO | I want everything under /cvsroot restored, I'm using | | cpio -iuvdB /cvsroot /dev/nst0 | | but not luck | | I used | cpio -iuvdB /cvsroot/* /dev/nst0 | | but just restored files under /cvsroot | | What's wrong ? I'm guessing /cvsroot wasn't empty when you said that. So /cvsroot/* got expanded and thus cpio saw an explicit list of things to extract. Try quoting the pattern to prevent the shell expanding it so that cpio gets a nice untouched /cvsroot/* string, thus: cpio -iuvdB '/cvsroot/*' /dev/nst0 Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ In the unlikely event of losing Pascal's Wager, I intend to saunter in to Judgement Day with a bookshelf full of grievances, a flaming sword of my own devising, and a serious attitude problem. - Rick Moen -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: X11 window with no frame or title bar
On 15:59 07 Oct 2003, Reuben D. Budiardja [EMAIL PROTECTED] wrote: | On Tuesday 07 October 2003 02:57 pm, Bret Hughes wrote: | I thought I knew how to do this but I am unable to do so currently. How | can I launch an application, say, mplayer so that there is no window | frame title bar etc? I thought I had this information but can't find | it. Googling for hours leads me too far astray. I am not sure what the | x term for all the things are. [...] | I think this would be Window / Desktop manager specific, rather than X11. | Someone correct me if I'm wrong. | What Window manager are you using? | | For example, I use FVWM2, and I can put a style definition in fvwmrc file | for different styles for different apps (eg. no frame, no scroolbar, etc). It is a window manager thing. The default setup for most WMs is to provide decorations (title bar etc) for all windows not marked as transient (which are basicly popups - menus etc). The solution is to configure your window manager to not decorate that particular app. As Reuben remarks, this is easy in FVWM and tractable in most others. Personally, I don't use title bars or borders at all. Makes for a much nicer desktop to my eyes. See: http://www.cskk.ezoshosting.com/cs/fvwm/ Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ A clean desk is the sign of a blank mind. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: NFS Action
Steve, please press Enter every 70 chars or so. Thanks. On 14:50 07 Oct 2003, Rigler, Steve [EMAIL PROTECTED] wrote: | Is NFS started on the server? | Use chkconfig --list to make sure nfs, nfslock and portmap are all turned on . Turn them on and start them (with service) if they aren't already turned on -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Does sleep() system call cause the scheduler to be rerun?
On 19:47 02 Oct 2003, Srini Amble [EMAIL PROTECTED] wrote: | Does sleep() system call cause the process to be put on the wait queue? Yes. | I am hoping sleep() does not cause a spin lock. My objective being to | force the process to give up the CPU for some duration of time. I | appreciate any helpful response to resolve this question in my mind. Sleep is what you want. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ A slipping sear could let your M203 grenade launcher fire when you least expect it. That would make you quite unpopular in what's left of your unit. - page 9 of the August 1993 issue of PS magazine, the US Army's preventive maintenance magazine -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: i hate procmail
On 14:57 26 Sep 2003, christopher j bottaro [EMAIL PROTECTED] wrote: | On Thursday 25 September 2003 06:47 pm, Cameron Simpson wrote: | Again, mutt may be your friend here: | - T. |select all items | - ;|procmail -f $HOME/.procmail/rc.testing |feed every tagged item to procmail for filtering |(check that mutt has pipe_split set to true first) | - ;d |deleted every tagged item | | well that worked...kinda. i made a macro that basically did those steps for | each mailing list i am on: | macro index f T~C [EMAIL PROTECTED];s+redhat-list\n$\nrepeat for | other lists | | well when i do it like that, the commands are typed so fast that it | basically ends up messing up and sending the wrong messages to the wrong | mailboxes. I doubt it was the speed. Computers don't work that way. My first thought is that you haven't cleared your tagged messages. Tags accumulate. So: Tfoo Tbah will tag all messages with foo or bah. So your big macro may have tagged the redhat messages and filed them. Then _added_ the messages for another list, and filed the redhat ones and the new ones. And so on. The delete operation happens to clear the tags on those messages as a side effect, so this isn't, of itself, an issue with my example. I would hope you're not planning to do all your filing with mutt macros; it can probably be made to work but it's not really a very good tool for it. Procmail really is better. You would be better bending your efforts to getting your email system to use procmail for delivery, then tuning your procmail rules. Now, it may be you hate procmail's syntax - it is rather assembler-like. I append for your amusement cats2procmailrc which is what I use for this; it takes simple rules eg redhat-list RedHat-List [EMAIL PROTECTED] and makes procmail clauses to match. There a manual entry in the script, but in short a rule has the form: folder tag pattern and makes a clause to file messages matching pattern in the specified folder with that supplied tag added (I file several lists to one folder, so I find these tags useful). Cheers, Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ #!/usr/bin/perl # # Convert my categories file to procmail recipes. # - Cameron Simpson [EMAIL PROTECTED] 02mar2001 # # Release version: 1.5 # =head1 NAME cats2procmailrc - generate a procmail recipe from my mail categories file =head1 SYNOPSIS cats2procmailrc [B-D] [B-L] [B-a Ialert] [B-m Imaildomains] [B-t Itype] Eltcategories Egtprocmailrc =head1 DESCRIPTION Icats2procmailrc reads a human friendly mail category description file and emits a matching procmail(1) recipe to implement it. The intent is to have an extremely succinct file of easily editable one line rules, generally of the form: folder tag pattern I build my B.procmailrc like this: cats2procmailrc \ -a 'announce-email +%' \ -t mh -L \ -m research.canon.com.au \ categories $HOME/.procmailrc =head1 OPTIONS =over 4 =item B-D Insert a variation on the standard formail(1) recipe for deleting duplicates on a per-folder basis. For MH and Maildir folders, use a B.msgid.cache file within the folder, otherwise use the file BMAILDIR/.msgid.cache-Ifolder. =item B-L Put the tag into the BX-Label header field instead of as a prefix to the subject line. =item B-a Ialert Specify a shell command to run as the alert function (see LFILE FORMAT below), such as mailblink(1). The character percent (B'%') is replaced by the Ifolder name. =item B-m Imaildomains Specify the default mail domain for rule addresses lacking an B@Idomain. The default comes from the environment variable B$MAILDOMAIN. In fact this may be a list of domains if you have some equvalents, separated by commas. =item B-t Itype Specify the default mailbox type. If the mailbox exists the type is deduced automatically, but otherwise uses this default, which may be one of Bunix, Bmaildir or Bmh. The default is Bunix. =back =head1 FILE FORMAT =head2 LINE FORMAT Blank lines and lines beginning with an octothorpe ('#') are ignored. Lines of the form: VARIABLE=value are passed through unchanged. Lines of the form: filename interpolate raw procmailrc files. Lines of the form: filename interpolate category files. Other lines are of the form: [+][!]folder tag pattern [EMAIL PROTECTED] tag pattern [+][!]|progname tag pattern A leading plus sign (B'+') means that this rule should be a continue rule, and not abort processing. A leading exclaimation mark (B'!') means that mail items matching this rule should generate an alert. The alert can be any action you desire, such as the mailblink(1) command; see the B-a option. For me, this means a single line summary of the mail item appears in yellow in a small log window I have at the top
Re: i hate procmail
On 16:59 25 Sep 2003, christopher j bottaro [EMAIL PROTECTED] wrote: | well i guess i simply have to run procmail manually everytime i wanna check my email. i figured i just run it like this: | procmail mailbox | assuming my mail spool is $HOME/mailbox. well that doesn't work, and furthermore, after i did that, and checked my mail via mutt, half my emails were duplicated. | | all i want to be able to do is be able to run procmail manually on my | mail spool ($HOME/mailbox), move mail that has test in the subject | to $HOME/Mail/testbox, and leave everything else in $HOME/mailbox. | why am i have having such a hard time? =( | | [EMAIL PROTECTED] cjb]$ cat .procmailrc | DEFAULT=$HOME/mailbox | PMDIR=$HOME/.procmail | MAILDIR=$HOME/Mail | LOGFILE=$PMDIR/log | INCLUDERC=$PMDIR/rc.testing | LOG= | | VERBOSE=yes | | [EMAIL PROTECTED] cjb]$ cat .procmail/rc.testing | :0: | * ^Subject:.*test | testbox Well your problem is essentially that procmail is a filter and not an editor, and further that it expected exactly one mail item as its input. Firstly, a workaround: fire up mutt, go Ttest to tag all messages with test in them, then: ;s+testbox to save all tagged messages in testbox. This will mark them as deleted in your main mailbox as a side-effect. This is a lot faster for ad hoc filing. Back to procmail. Procmail will not edit your mailbox. Procmail does delivery. Generally what you do is have your mail system deliver via procmail in the first place. If you want to do post delivery filtering you're back to: - select the items to filter (maybe all of them) - feed each to procmail - remove them from your mailbox (because procmail has effectively made new copies in the filing locations) Again, mutt may be your friend here: - T. select all items - ;|procmail -f $HOME/.procmail/rc.testing feed every tagged item to procmail for filtering (check that mutt has pipe_split set to true first) - ;d deleted every tagged item Avoid that last step until you're sure the others are good. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ So this judge in Virginia rules that a lesbian wasn't fit to raise her own daughter because she might grow up to be a lesbian, and gives custody to the lesbian's mother. And I'm thinking, She's already raised one lesbian. - Chris Cannon -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail from Shell Script?
On 20:18 17 Sep 2003, David Hart [EMAIL PROTECTED] wrote: | On Wed, 2003-09-17 at 19:41, Rus Foster wrote: | On Wed, 17 Sep 2003, David Hart wrote: | I seem to recall there's a way to send a file from a shell script but | cannot remember how to do it. | | If its plain text then just | | cat filename | sendmail [EMAIL PROTECTED] | | I new there was an animal in there but couldn't come up with cat. Well you don't need it: sendmail [EMAIL PROTECTED] filename Cat is a tad overused. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ What are politicians going to tell people when the Constitution is gone and we still have a drug problem? - William Simpson, ACLU -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: cpio -i without original path
On 19:24 14 Sep 2003, Herculano de Lima Einloft Neto [EMAIL PROTECTED] wrote: |Is it possible to extract a file from a cpio archive ignoring the | original archiving path, or setting a new path? With GNU cpio you can use the --no-absolute-filenames option on extraction. I found this in the cpio info page (run info cpio - ick!) by searching for the word relative. It was the second hit. Sadly, the GNU manual entry for cpio is the usual we only speak info useless travesty of a manual entry. In general it's best to make archives (both tar and cpio) with relative paths in the first place if you can. Then you won't ever have this issue. For example, instead of saying this: tar cf archive.tar /foo/bah say this: cd /foo/bah tar cf /somewhere/else/archive.tar . or: cd /foo tar cf /somewhere/else/archive.tar bah (Note: _never_ put the archive inside the stuff to archive - it can grow forever because at somepoint tar or cpio will start archiving the archive, into itself!) Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ How in the _hell_ did you manage to get out of a ticket for _anything_ in the Peoples' Republic of Ohio?! I have _never_ driven through Ohio and seen the driver _not_ get a ticket. - John Novak [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: NFS: The wrong tool perhaps?
On 18:23 14 Sep 2003, David Hart [EMAIL PROTECTED] wrote: | Is there anything better to use for network distributions, upgrades, | patches? Depends on context. It's often very nice to have filesystem access to stuff (every operation is just normal open file, read stuff instead of arbitrary and weird API calls). And NFS does that fairly well. Why not tell us a bit more about the problem context? Presumably you have some reason for not wanting NFS or find it cumbersome somehow. What are they? Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ NFS: Not a File System -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Linux on DEC Alpha?
On 22:38 12 Sep 2003, Ed Greshko [EMAIL PROTECTED] wrote: | On Fri, 2003-09-12 at 22:25, Benjamin J. Weiss wrote: | I've got a DEC Alpha that's being freed up by software/hardware upgrades. | I'd like to load RedHat 9 on it. Can I just install from the Shrike CD's, | or will they not work on Alpha? | | No. RH9 is for Intel only | I believe that 7.1 was the last release of Red Hat for the alpha chip. Compaq released RedHat 7.2 for the Alpha. That was the last one. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Judging by my employee ID# my employer thinks I am a small filing cabinet, so I dont think they give a care about my opinions. - Michael Jones [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: SIGPIPE, where is it coming from?
On 10:35 12 Sep 2003, Brown, Tony [EMAIL PROTECTED] wrote: | Well, I would share my script but the way Netbackup works is there are | multiple streams that originate from the W2K server that make connections | to the client (my Linux box). I have the opportunity to run a start | script and a end script per stream which I do. The issue is this, my | scripts are not running when the SIGPIPE occurs. The start script just | sets up file systems etc to prep for the backup. After the start script | exits, the remote backup begins and this is where the SIGPIPE occurs, | during the remote backup, only on a full system. Please press [return] every 70 chars or so. The above was one long line:-( | Still want to see the script? Of course. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ A ridiculous place! Leaping from one bump to another, 187 corners or whatever it was! The number of times I've thanked God when I finished a lap there! It gave you amazing satisfaction, no doubt about it, but anyone who says he loved it is either a liar or wasn't going fast enough! - Jackie Stewart -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Apache sending incorrect mime type for Excel files
On 12:55 10 Sep 2003, Parker Morse [EMAIL PROTECTED] wrote: | On Wednesday, Sep 10, 2003, at 12:32 US/Eastern, Reuben D. Budiardja | wrote: | On Wednesday 10 September 2003 11:46 am, Parker Morse wrote: | Apache is sending the mime type application/x-gzip for them, even | though the mime.types file shows application/vend.ms-excel for files | with an .xls extension. | | In your httpd.conf, find the place for AddType, and then you can your | own | definition like this: | | AddType application/vend.ms-excel .xls | | so it defined files with .xls extension to have that Mime type. Then | restart | apache. | | I tried that, and it didn't appear to have an effect. Did you do a restart after making that change? It's necessary. | While in there, I was reminded that I have mod_deflate installed, and | thought that might have something to do with the files becoming x-gzip. | So I commented the line SetOutputFilter DEFLATE and restarted apache | again, and now Excel files are served with the correct type. | | It would appear that I need to fine-tune my mod_deflate configuration. _If_ you didn't restart APache after the first change I'd be more inclined to blame the restart here. The output filter stuff should only affect the Content-Encoding, not the Content-Type, AFAIK. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered. I am a person. My life is my own. - The Prisoner -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: vim question - comment multiple lines
On 00:17 10 Sep 2003, Herculano de Lima Einloft Neto [EMAIL PROTECTED] wrote: | I guess this is an easy one.. how can I insert / delete something at | the beggining of each line of a block in vi? Still can't figure it, | though there must be at least ten ways. For lines 10 to 20: :10,20s/^/foo / Or you can just mark both lines (go to first line, type ka, go to last line, type kb) and then: :'a,'bs/^/foo / and so forth. Don't forget that vi has an entire line-mode editor (ex) underneath it, accessible via the : key. See man ex and/or man ed for more info on the line mode. It's very handy for stuff like this. Ex is pretty much a complete superset of the ed editor. And of course, once adept at using ed/ex, you're also much of the way to being adept with the sed command... Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Software engineering? That's like military intelligence, isn't it? - Doug Mohney [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Service script not killing process.
On 15:04 08 Sep 2003, Stuart Stephen [EMAIL PROTECTED] wrote: | | Thanks Ben, that worked. | | The script editing was pretty straight forward. I just changed the following | line ps ax --width=1000 | grep [j]ava -server com.stevie.ChatServer.Start | | awk '{ system(kill $1) }' and added the -9 after the kill in awk. Can I suggest that this is a very bad idea? There's a reason -9 is not the default: it's because -15 (TERM, the default) can be caught, which lets the target process do necessary cleanup (if any), such as removing temp files, removing .pid files etc etc. -9 is meant as a _last_ resort, after the process has proven intransigent. You _never_ use it as the _first_ attempt to shut something down. It's on par with pulling the power cord from your PC every night instead of doing a clean shutdown. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Wouldn't it be great if the insurance company would fix your bike to the tune of $3300, then have an adjuster escort you and supervise while you inflict $3300 worth of non-insurable damage to his truck? - Dave Svoboda, [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Uninstall X Windows
Please press Enter every 70 chars of so. Thanks. On 08:52 07 Sep 2003, Devon Harding - GTHLA [EMAIL PROTECTED] wrote: | What is the procedure to uninstall X-Windows/server form a Red Hat | 9 system. I currently have my initab set to 3, and don't need the extra | files used up by X. When I try 'rpm -e gnome' I get alot of dependancy | errors and some time 'Segmented Fault'. What is the easiest way to | remove this? You need to also uninstall the things that depend on Gnome. So add the various items to your rpm -e line until it doesn't complain. However, your Segmentation Fault error message is a worry. It should not happen. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ There's a difference between skepticism and nihilism. - Doug Jones [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: A mailer/attachment question
On 18:17 07 Sep 2003, TK [EMAIL PROTECTED] wrote: | I have an email account dedicated to receiving image files as | attachment. I'm looking for a command line non-interactive mailer | program that would automatically save those attachment into file system. | Mutt works, but only in a interactive way. Any recommendation? I use munpack for this. It's part of the metamail package: http://freshmeat.net/projects/metamail/?topic_id=861 Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Through and through the world is infested with quantity. To talk sense is to talk quantities. It is no use saying the nation is large- how large? It is no use saying that radium is scarce- how scarce? You can not evade quantity. You may fly to poetry and music and quantity and number will face you in your rythmns and your octaves. - Alfred North Whitehead -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Scripting password
On 23:39 03 Sep 2003, Patrick Nelson [EMAIL PROTECTED] wrote: | Writing a script that asks for a pass-phrase to use specific features of | the script. Would like to hid the input of the phrase from the screen | while the user types it in. Whats the best way? Well, the easy way is this: stty -echo echo Enter Password now: read password stty echo Remark: Note that the turning off of echo happens _before_ the prompt. If it happened afterwards then on a (very very) slow or busy machine the user _might_ get to read the prompt and start typing before the echo gets turned off, which would be bad. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Rather than a beep Or a rude error message, These words: File not found. - Haiku Error Messages http://www.salonmagazine.com/21st/chal/1998/02/10chal2.html -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: NFS export read-only is not honored
On 16:15 04 Sep 2003, Reuben D. Budiardja [EMAIL PROTECTED] wrote: | I have a strange problem. On my of the server, I export a directory and | specify it as ro. In /etc/fstab: | | /home/httpd client1.domain.name(ro) | | On client1.domain.name, as root, I created a directory in /mnt/ and write in | /etc/fstab: | | server.phys.utk.edu:/home/httpd /mnt/server nfs | rsize=8192,wsize=8192,timeo=14,intr | | As root, if I open the files in /mnt/server, they are in read only mode. But | if I login as myself, they are readable and writable. How can that be? | | The uid in the server corresponds with my uid in client1, and so in client1 it | says that I owned all the files in /mnt/server. But since I specify it as | read only in the /etc/exports file in server, I think it should be read only | in client1 no matter who's login, or am I missing something? Have you checked that they really are writable? The permissions will look unchanged. However, any actual attempt to write should get met with EROFS Read Only Filesystem. So, in short, have you just looked, or have you tried to write to a file? Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ [...] post-block actions should be allowed everywhere, not just on subroutines. The ALWAYS keyword was agreed upon as a good way of doing this, although POST was also suggested. This lead to the semi-inevitable rehash of the try- catch exception handling debate. According to John Porter, There is no try, there is only do. :-) - from the perl6 development discussion -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: putting a title on the xterm window
On 10:28 03 Sep 2003, Vidiot [EMAIL PROTECTED] wrote: | What string do i use to put a title in the xterm window from the command | line? | Marvin Blackburn | | I have the following configured for zsh: | | if [[ xterm == $TERM || vt102 == $TERM ]] | then chpwd() echo -n ^[]2;${PWD}^G | fi | if [[ xterm == $TERM || vt102 == $TERM ]] | then chpwd | fi | | | The ^[ and ^G are real control characters, not ^ and [ or G. I use this script: http://www.cskk.ezoshosting.com/cs/scripts/ttylabel Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Try not, do. Do not, try not. - Yoda -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: end of line at bash
On 20:22 03 Sep 2003, Lorenzo Prince [EMAIL PROTECTED] wrote: | Try something like | printf first line\nsecond line\n | | According to the manual for the echo command, | echo -e first line\nsecond line | | should do the same thing, but it doesn't work on my system for some strange reason. The output of that command shows | | first linensecond line That's because you forgot to quote it. In the shell, \ is a single char quote, so it is as if you'd written: echo -e first line'n'second line which quotes the n character (unnecessary but permitted). Try this: echo -e 'first line\nsecond line' so that the \ is not treated as a shell punctuation character. Myself, if I want it one one line I tend just to: echo foo; echo bar Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Rearranged the networking in Telsa's room. This lets me get a single address space for the entire house network so that machines can move rooms without having to be reconfigured. More importantly although she has yet to realise it leaves me with sufficient free ports downstairs to later run cabling into the TV room and kitchen. - Alan Cox 12apr2001 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: FW: Problem with MC
On 23:12 02 Sep 2003, Ivo Tijhaar [EMAIL PROTECTED] wrote: | I installed a few servers with red hat 9.0 all with the same packages only | on different hardware. | I have a strange problem some programs (mc) don't convert the line end | (carriege return) in text or binairie files. | mc shows on every line at the end ^M. When i look the files in binair mode | there is no ^M. Until i save a file with mc or some other it will save the | ^M. I downgraded mc to the version from red hat 8.0. This solves the problem | for know. I only think it isn't in mc because some friends installed the | same os with different packages and don't have this issue. Has somebody any | idea? I think you're being bitten but the UTF support in RH8 and 9. By using UTF-8 encoding, RH8/9 can present Unicode output, which lets one present characters for all locales. However, plenty of apps expect the old 8-bit character sets and do not handle the multibyte encodings in UTF-8. The workaround is to request the C locale: export LC_ALL=C That should at least make these apps behave as they did before. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ The Fano Factor, where theory meets reality. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: edit the bootup sequence
On 12:39 22 Aug 2003, Marcos de Souza Trazzini [EMAIL PROTECTED] wrote: | | Well, in order to use chkconfig utility to add the script to bootup, the | | script must have some entries in the header [...] | | There's another way to do this. You must create a symbolic link from the | | /etc/init.d/scriptname to /etc/rcX.d/SNNscriptname, [...] | Or you can do what I've done to my laptop [...] | http://www.cskk.ezoshosting.com/cs/css/index.html#rc.mobile [...] | Afterwards you don't need to fiddle with chkconfig or those | SXXservice/KXXservice symlinks. | Well... interesting your script but you can try sistem | | I don't understand the intention of your phrase: | WARNING: be sure you understand how the current system works _first_. | So do it the chkconfig/symlink way _first_ if you've never dealt with | this before. Merely that you (or anyone) should have a good understanding of how the startup scripts work before abandoning the installed setup in favour of something else. Since you seem to understand it, no worries! | Take a example: | - First, create a script in /etc/init.d. (scriptname in this example). | - Edit the script, then add to the first lines of the script these lines | (With the comment # !!!): | # chkconfig: 2345 11 90 | # Description: A shot description for the script It's this that bothers me. It is annoying to need to edit the startup script - it makes upgrades annoying to, for the edit needs repeating. It is annoying to decide on an abitrary startup/shutdown order (the 11 and 90). It is annoying to have to name the runlevels for which this script will be active. I find the rc.mobile approach - avoids runlevels because you get to give things meaningful names instead of these numbers, and abitrarily many - doesn't require _any_ editing of the startup script, meaning it keeps out of the way of the package - it runs most things in parallel, unlike the stock startup that runs everything in sequence, even though many do not depend upon each other | - Remember: Don't symlink anything by hand, don't need !!! And now, | simple run the command chkconfig --add scriptname to auto-create the | symlinks S11scriptname/K90scriptname under /etc/rc.d tree, according the | runlevels in the chkconfig line. Check the results with the command | find /etc/rc.d/ -name *scriptname* | You see is very simple to menage startup scripts. Sure. | In chkconfig line at the script, the first numeric value points to the | runlevels what the script runs at bootup, the second is the priority | value at bootup, and the third are the priority level when shutdown the | actual runlevel. | | Say me in what I'm wrong Nothing you say is wrong. Chkconfig is fairly straightforward. I just prefer my solution. The particular need that drove me to write it was roaming laptops, of which I have one and we have several at my workplace. We need to be able to set them up with suitable configurations and startup for several different locations eg home, work LAN, work wireless net, an arbitrary foreign DHCP network, completely offline. We've looked at using runlevels for this (eg runlevel 4 for offsite etc) but it doesn't work well at all. Since we needed something more expressive and flexible and because the extremely slowness of the startup scripts, run in series, was very frustrating I wrote rc.mobile. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ I doubt that people abuse themselves with MSDOS to prove their reproductive fitness.- [EMAIL PROTECTED] (Trif) -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Scripting help
I wrote: | start=`perl -e 'print time'` | body of script here ... | end=`perl -e 'print time'` | echo took `expr $end - $start` seconds Whoops - left off the quote around print time in the second perl. On 18:18 21 Aug 2003, Bret Hughes [EMAIL PROTECTED] wrote: | Hmmm. wouldn't start=$(date +%s) be a bit more efficient? Yes, it would be. I keep forgetting about date's +format option. It didn't exist when I starting using UNIX:-) -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ You do get used to it. It still sucks. - Universal Peeve Mantra, 242 lbs before cooking -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Decrypt Passwords
On 15:12 21 Aug 2003, Marcos de Souza Trazzini [EMAIL PROTECTED] wrote: | Hey I've already set the clock yet [...] | And aim't ignoring those requests, when i've warned (Yesterday), solve | the problem on the same instant. Thanks! -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Scripting help
On 16:38 21 Aug 2003, Peram's List [EMAIL PROTECTED] wrote: | I appreciate your quick response. | Is there any way I get the time taken for the execution of a script from | the script itself instead of typing it at the command line. Well, if you're still inside the script then the won't be the time the script took to execute, because the script's still running. But you can do things like: start=`perl -e 'print time'` body of script here ... end=`perl -e 'print time'` echo took `expr $end - $start` seconds Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ People are paid for coming in the morning and leaving at night, and for saying Good morning in the morning and Good afternoon in the afternoon and never confusing the two. - Albert Shanker, president of the American Federation of Teachers -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: man info and info info
On 11:30 21 Aug 2003, Rossi, George [EMAIL PROTECTED] wrote: | I'm curious as to why the info format is now in fashion? I suspect that man | is not politically correct enough, although no one believes this. Because the info people never quite figured out HTML? Yeah, that's flamebait, but info is really horrible. Not to mention their habit of making manual entries saying oh, _we_ keep our doco in info - this manual page may well be a pack of lies!. You can't even use your usual pager on info files:-( I wrote my own man command that presents info like man output - it finds both info and man entries and asks you what you want. It's at least made things tractable for me: http://www.cskk.ezoshosting.com/cs/css/index.html#s-text-info2x Info: just say no. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Draw little boxes with arrows. It helps. - Michael J. Eager -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: edit the bootup sequence
On 17:00 20 Aug 2003, Marcos de Souza Trazzini [EMAIL PROTECTED] wrote: | On Wed, 2003-08-20 at 05:42, Simon Tischer wrote: | one little question: | where can i edit to bootup sequence on a rh 9, i have made an new script in | /etc/rc.d/init.d/ and i whan that it will be execute befor checking for new | hardware. | | Well, in order to use chkconfig utility to add the script to bootup, the | script must have some entries in the header (look at the others scripts | in /etc/init.d directory for a line that contains chkconfig at | headers). | | There's another way to do this. You must create a symbolic link from the | /etc/init.d/scriptname to /etc/rcX.d/SNNscriptname, where the X is the | runlevel to run the script at bootup and the NN is the numerical orcer | to start the scripts (the lowest numbers are started first). Or you can do what I've done to my laptop, and am beginning to do to some other machines: realise that run levels are a crude system that it readily abstracted into something a lot more general. I wrote myself a script rc.mobile: http://www.cskk.ezoshosting.com/cs/css/index.html#rc.mobile for mobile laptops, but it works for nonmobile things too. Afterwards you don't need to fiddle with chkconfig or those SXXservice/KXXservice symlinks. WARNING: be sure you understand how the current system works _first_. So do it the chkconfig/symlink way _first_ if you've never dealt with this before. Consider rc.mobile an interesting exercise for later. BTW, I tend to turn of kudzu (hardware detection) completely if my machine config is stable. It takes a long time and is a complete waste if your machine doesn't change. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ I recently saw a crash where a yokel in a lwb Landrover had pulled out of a junction on a fast road in front of a speeding Volvo (one of teh big estate cars). The volvo had t-boned it amidshipps at about 60mph The landrover was badly dented. Need a couple of hours with a hammer to straighten the panels. The Volvo was urecognisable from the turret forewards. Brakes? Who cares? - Andy Woodward, [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Adding files to log (cat?)
On 09:57 23 Jul 2003, Kent Borg [EMAIL PROTECTED] wrote: | On Tue, Jul 22, 2003 at 06:41:54PM -0400, System Administrator wrote: | I am assumong that you use something on the order of | dumpcommandline /var/log/backup | If so - change to dumpcommandline /var/log/backup | | the appends rather than writing to the file. [...] | No, don't use cat. It will work part of the time, but if two | processes try to log something at the same time things will get | garbled or lost or I'm-not-sure. Garbled, maybe. Lost, no. guarentees all writes append, and thus don't overlap. But probably his backup runs don't overlap, and that logfile looks specific to his backups, so there should be no multiple-writer issues. | Use logger (for shell access) or | syslog(3) (for C access). | | For example, I just did this: | # logger this was written with logger and my term is $TERM Logger is great so single line syslog messages. He's copying a whole command multiline output to a special log. Logger is not the tool. | -kb, the Kent who didn't know about logger until now, but he knew | simple redirection was a bad idea and started looking through a couple | man pages. - cs, who also hadn't looked at logger, but now sees many users for it. Thanks:-) Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ An unbreakable toy is useful for breaking other toys. - Van Roy -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: stddef.h
On 05:04 23 Jul 2003, reza saeidinia [EMAIL PROTECTED] wrote: | Is stddef.h a system file of linux? No, it's not. | if it is true please send this | file for me. | I want to run a program and the error no rule to make | /usr/includs/sys/stddef.h is accured . please help me. We would need to know why your program wants that include header, and on what platform (eg solaris, aix, etc) it was written. It's clearly doing something nonportable, but until we know what that is we can't help further. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Yesterday, someone came up to me and asked What does 'Press any key to Continue' mean? There has got to be a conspiracy out there to drive me crazy. No one could be this stupid and live.- Chris Baldwin -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: sigevent.h
On 05:27 23 Jul 2003, reza saeidinia [EMAIL PROTECTED] wrote: | Is sigevent.h a system file of linux? if it is true please send this file for me. | I want to run a program and the error no rule to make /usr/includs/sys/sigevent.h is accured . please help me. It's not a linux include file. Look, this is the second such item you've posted. Do this: cd /usr/include find . -name sigevent\* -ls Behold, no answers. Ergo: the file isn't there. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ There's no need to worry about death, it will not happen in your lifetime. - Raymond Smullyan -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Procmail (???) error
On 17:22 20 Jul 2003, Mark Neidorff [EMAIL PROTECTED] wrote: | procmail: No match on (^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?).redhat | procmail: Match on (^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?).merri | procmail: Couldn't determine implicit lockfile from /usr/sbin/sendmail | procmail: Locking .lock | procmail: Executing /usr/sbin/sendmail,-oi,merri | procmail: [945] Fri Jul 18 13:13:08 2003 | procmail: Assigning LASTFOLDER=/usr/sbin/sendmail -oi merri | procmail: Unlocking .lock | procmail: Notified comsat: merri@:/usr/sbin/sendmail -oi merri | From mark Fri Jul 18 13:13:07 2003 |Subject: testing 1 2 3 | Folder: /usr/sbin/sendmail -oi merri 3579 | | Strange folder name. What does your ~/.procmailrc look like? | It looks much as if you inserted a bad recipe. | | I agree that that folder is strange. (Never noticed it, but it is in the | log file.) I also don't know how it got there. | I should have specified that the above came from the system | /etc/procmailrc output. All recipes seem to work OK. Here is the | /etc/procmailrc file: | | SHELL=/usr/bin/sh | LOGFILE=/tmp/procmail.log | VERBOSE=yes | LOGABSTRACT=all | | :0: | * ^TO_.chemteach | !chemteach Drop the trailing : with !addr rules. The : says use locking, but there's no locking needed (or reasonable) when piping to programs (the !addr becomes a pipe to sendmail). -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ The first person I met having made their aquaintance on the Net was Mike Holmes. And no, we didn't have sex. - Jeremy That's my story and I'm sticking to it Henderson [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: mozilla's mail - counting msg's
On 08:33 17 Jul 2003, Kelerion [EMAIL PROTECTED] wrote: | I'm trying to find out how many emails I have stored in various | personal folders in mozilla's email.. | is there a way to count them? I've had a look but can't find anything | obvious other than doing a Search Messages and searching for every | email where the sender contains an @ sign.. not very quick or | efficient..especially as I now have over 100,000 emails stored.. Cd to the directory holding the Mozilla email. Mozilla stores them as standard UNIX mail files, so: grep '^From ' mailfile | wc -l will count every line beginning with a From , which is the start-of-message marker for those files. So in that folder: for mailfile in * do echo -n $mailfile: ; grep '^From ' $mailfile | wc -l done should be a good first cut. Note that this will probably also count deleted messages if you haven't used the compact folders button (which rewrites mail files without the deleted messages). Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ As your attorney, it is my duty to inform you that it is not important that you understand what I'm doing or why you're paying me so much money. What's important is that you continue to do so. - Hunter S. Thompson's Samoan Attorney -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Sending two attachments in one mail
On 12:32 07 Jul 2003, Khademul Islam [EMAIL PROTECTED] wrote: | So far I am able to send one attachment by using the mutt command. Here is | what I have right now. Please advise how I can send two files at the same | time. | mutt -a test.xls -s test [EMAIL PROTECTED] /dev/null You haven't tried this? mutt -a test.xls -a test2.xls -a test3.xls -s test [EMAIL PROTECTED] /dev/null Should work just fine. [... tap tap tap ...] Just tried it. Works perfectly. If you've got a bunch of files to send and want to just name them (eg *.xls) you might want this script: http://www.cskk.ezoshosting.com/cs/scripts/mfiles which assembles and runs a mutt command with multiple -a options. You need one per file, which is why this: mutt -a *.xls -s test [EMAIL PROTECTED] /dev/null because it becomes the command (pretending we have 3 .xls files): mutt -a test.xls test2.xls test3.xls -s test [EMAIL PROTECTED] /dev/null which as you can see is syntacticly wrong. And thus the mfiles script. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ I like the Landrover crumple-zone philosphy - the safest place for 'em is on the other car. - Andy Woodward, [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: bsed (was: Re: Shell Scripting Question)
On 08:22 24 Jun 2003, Jon Haugsand [EMAIL PROTECTED] wrote: | * Cameron Simpson | You can get bsed here: | | http://www.cskk.ezoshosting.com/cs/scripts/bsed | | An extremely useful wrapper for sed. | | Not much information here, is it? Can you give a short tutorial? You treat it just like sed (see man sed) for the most part, except that when you give it filenames, instead of reciting their content to stdout, edited, it rewrites each file with those edits. It uses sed internally to do the work. So this: sed 's/this/that/g' file write file's content to stdout with this replaced by that. This: bsed 's/this/that/g' file edits the file itself the same way. Very handy for large scale simple changes. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Yeh, Buddy.. I've got your COMPUTER! Right HERE!! (computer THIS!) - Larry Cunningham, [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Shell Scripting Question
On 08:21 24 Jun 2003, Jon Haugsand [EMAIL PROTECTED] wrote: | * Cameron Simpson | | I tend to do this: | find dir -type f -name '*.html' -exec bsed 's|this|long/thing/with/slashes/this|g' {} ';' | or just: | bsed 's|this|long/thing/with/slashes/this|g' *.html | for just the .html files in the current directory. | | As far as I understood the question, you have to replace relative | addresses with correct absolute ones. This means some intelligence in | the 'long/thing/with/slashes/' thing. E.g. like this: You're quite correct in this regard. My example is not that intelligent. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ A pessimist is an optimist in full possession of the facts. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Is that process running?
On 10:38 24 Jun 2003, Dan Bar Dov [EMAIL PROTECTED] wrote: | This is probably a historical question, yet I'd like to re-open it. | What is the best way to determine if a process is up? | | Best way = portable across linux distributions, quick, relies on minimum | availability of resources | Checkproc for example is used in init.d scripts on SuSE, but is not a | command in RedHat distribs. A chkproc function is used by RedHat for the | same purpose, but is not available except for init scripts. If you know its process id and have the rights to signal it (i.e. you're root or your-uid == its-uid) then: if kill -0 $pid 2/dev/null then it is up else it is not up fi For most services, a well written daemon will write a pid file (eg /var/run/daemon-name.pid) from which the pid may be obtained. | The command pidof(8) is a good candidate. Another is pgrep (a canned ps | and grep?). | Pidof is packaged in sysvinit, while pgrep is part of a ps package. I'm not a big fan of pidof etc. Grepping a process listing is inherently a very dodgy way of locating a process' pid. You've not guarenteed that no other command uses that name (or one sufficiently similar to match your grep pattern). If there's more than one match, which do you pick? Should you pick either? The whole thing makes me think kludge. In principle for most things you should be able to obtain a reliable notion of the pid, usually from a /var/run/daemon.pid file or something like that. Another thing you can do is not check the pid but see if the service is there. Eg examine the output of netstat -an for a service listening on the appropriate port (eg with awk checking for LISTEN and the port number in the right columns). Just some thoughts. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Speed costs money. How fast do you want to go? - C. Shelby -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Shell Scripting Question
On 16:18 23 Jun 2003, Richard Crawford [EMAIL PROTECTED] wrote: | Jonathan Bartlett said: | I'm very curious why you want this. Anyway, basically, go to the top | level and run this perl script( NOTE - I haven't even tested this to see | if it will compile, so it will likely delete all your files and set your | computer on fire. But it should give you a starting point): | | Whoo! The damn script not only ate all my files, it ate all the files on | every computer in the office, including my boss's Palm Pilot and the | firmware in our microwave oven! The worst part was that it seduced the | neighborhood cat, and that made a horrible noise! | | Seriously, it looks like this will put me on the right track; I altered it | a bit to work in only one directory instead of the entire directory tree | so that if mistakes were made it would only affect one rarely-used course. | It appears to wipe out the contents of the theform.html but I think | that's a minor problem (got hundreds of backup copies floating around...). I tend to do this: find dir -type f -name '*.html' -exec bsed 's|this|long/thing/with/slashes/this|g' {} ';' or just: bsed 's|this|long/thing/with/slashes/this|g' *.html for just the .html files in the current directory. You can get bsed here: http://www.cskk.ezoshosting.com/cs/scripts/bsed An extremely useful wrapper for sed. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ In the desert, you can remember your name, 'cause there ain't no one for to give you no pain. - America -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: *extremely slow* text processing on Redhat 9
On 16:16 23 Jun 2003, Tao Chen [EMAIL PROTECTED] wrote: | Am I the only one who noticed this ? No. | I installed R9 (with latest patch from RHN) on a new P4 box ( 2.4GHz, 1GB | memory). | Run an awk script on a 1GB file, it took about 25 minutes run on an AIX box | with 300+ MHz cpu, | but more than 29minutes on this R9. Same P4 box, same script, same text | file, running with ATT's UWIN | on Windows XP, only takes 9 minutes ( which is what I expect from this | 2.4GHz CPU). [...] | Since awk, sed, grep all run extremely slow on both of my Redhat 9 boxes, | I can't think of any reason other than the text processing library or kernel | has some serious performance bug. Yep. It's the UTF-8 stuff, which is inherently more expensive to parse. Set your locale to C thus: export LC_ALL=C and try your tests again. There has been some progress with this. See here: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=82032 Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Think of me as CVS with a brain and with some taste.- Linus Torvalds -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: *extremely slow* text processing on Redhat 9
On 21:20 23 Jun 2003, Bret Hughes [EMAIL PROTECTED] wrote: | Yep. It's the UTF-8 stuff, which is inherently more expensive to parse. | Set your locale to C thus: | export LC_ALL=C | and try your tests again. | | There has been some progress with this. See here: | https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=82032 | | That bugzilla thread does sound promising. I have held off trying to | undo the utf stuff at a sytem level even though we are all english | readers here because I figured that other stuff will break in the | future. Ids that the case or can I simple set LANG, LC_ALL et al in | etc/sysconfig and be done with it? Well, I've set the C locale in our users' default environment with no reported ill-effects. I would think most system things should work that way as well, as most need for something more useful than the ASCII set is at the user end, where users not in our little English niche can set things as needed. BTW, the locale stuff also affects things like ls listings and (ouch!) shell globbing. No more does [a-z]* do what you might expect because outside the C local the collation sequence includes the uppercase letters. But I can see that it should be something of a transition step. The coding set for XML and modern HTML is officially UTF-8. Hopefully parsers for these things don't depend on the environment setting (they shouldn't). But as this gets more widespread, you _are_ going to find yourself grepping nonASCII things more often, and we are going to have to take the hit UTF-8 costs in speed. As the bug thread shows, the pathological performance you can see can fall out of poor code, but UTF-8 is never going to be as fast as single-octet encodings, both because of the extra data and also the byte-sequence parsing that has to take place. My main motivation for using the C locale is twofold: so my scripts don't break (i.e. [a-z]* behaving as expected when the script was written, back in the Dark Ages) and so that the many apps that aren't wide-char and locale aware keep running. Eg the threads on Acrobat needing C locale etc. I expect this legacy need to be gone in two years, hopefully a little less. Frankly, I welcome UTF-8. No more stupid what encoding is this text file bugs, etc. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ A program in conformance will not tend to stay in conformance, because even if it doesn't change, the standard will. - Norman Diamond [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Accurate 'du' count
On 02:07 22 Jun 2003, Ashley M. Kirchner [EMAIL PROTECTED] wrote: |I'm using rsync with hard links to keep backups of my servers. This | process creates a daily structure that looks like this: | |backup/daily.01 | /daily.02 | /daily.03 | etc., etc. | |Now I know that only the first one contains actual files, while the | rest are all hard links to that first one. How sure are you? Rsync on its own doesn't do that - you need to have a separate pass that makes a link tree and then rsync that. Is that your setup? | When I run 'du' against that | directory structure, it tells me all of them have the same size. Is | there some way of getting the actual size of those other daily's? | Since most of their content is hard linked, with the exception of | changed files, I thought the sizes would be different. Well, not. There is nothing special about a hard link - it's the same file. There is no real file and a link. Both names are links to the file. However, du normally notices links and reports space for the tree where it first saw the link, so the subsequent trees should look small. _If_ it's a single du running over all the trees and not a separate du for each tree (when of course each du knows nothing about the other trees because it doesn't look at them). A df -k . on your backup directory after each backup run will tell you if you're copying everything fresh or making linked trees with few differences. My suspiscion is that unless you've neglected to mention some part of your backup arrangements you're getting complete copies, not incremental trees. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ This bottle of whisky is awful. I'll be glad when it's done. - One Scot to another -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Accurate 'du' count
On 14:19 22 Jun 2003, Ashley M. Kirchner [EMAIL PROTECTED] wrote: | Cameron Simpson wrote: | How sure are you? Rsync on its own doesn't do that - you need to have | a separate pass that makes a link tree and then rsync that. Is that | your setup? | |Oh yeah, daily.01 gets linked to daily.02 by running a 'cp -al' on | them. Then Rsync runs on daily.01. Ah - excellent. | A df -k . on your backup directory after each backup run will tell | you if you're copying everything fresh or making linked trees with | few differences. | |Surely you meant du, not df. :) No, I meant df. Because that will tell you how much space is really being used up _without_ having to run a du over the tree (which can lie unless it sees every link). | Hmm okay, maybe I'm not patient | enough to sit and watch the very lengthy output of -k... I realize what | I really wanted was 'du -k --max-depth=1 .' This will list all those | daily's without their contents scrolling off my screen. Well, du -ks if you want to be portable (and succinct). | My suspiscion is that unless you've neglected to mention some part of | your backup arrangements you're getting complete copies, not incremental | trees. | |I just did a dry run on one of the smaller backups and it appears to | be doing what you said it should be. So I think all is well. I think I | also found the problem that lead me to believe it wasn't doing what it | should've been doing. The backup I was checking had a large (2.7 GB) | file in it that was being backed up every single day because it's a log | file. Consequently, the daily differences were rather small. Now that | I've removed it, it appears to be working properly. Glad to hear it. I presume you removed it with --exclude, yes? Otherwise you'll be copying it and _then_ removing it - wasteful. You may be interested in this: http://www.cskk.ezoshosting.com/cs/scripts/histbackup-prune which I wrote yesterday. It takes a directory like yours with lots of backups and removes the oldest until a certain amount of free space is present. It assumes each backup dir is named -mm-dd rather than daily.01 etc, but otherwise is handy when your backups start to fill the disc, which was the circumstance which prompted its coding. It's part of the css scripts collection: http://www.cskk.ezoshosting.com/cs/css/ specificly it wants a few other scripts from there so it's easier to just grab the tarball. The naming issue can be hacked by adjusting the ls ... | sort code just ahead of the main loop. Note that the ordering is important for the $keepn stuff (which protects you from ever removing your latest backup(s)). Or, of course, by changing your backup naming to use ISO dates (which I prefer because I then know the backup date at a glance). Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Win3.1, MSDOS and Win95 will not recognise FAT32[...]. MS's plans for supporting FAT32 in NT are still being determined[...] At minimum, MS will provide a utility to convert FAT32 to NTFS. - MS introduce yet another incompatible and unsupported-on- other-platforms data format with Win97, from May 1996's http://www.microsoft.com/windows/pr/fat32.htm, paraphrased -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: compile problems
On 18:12 22 Jun 2003, Mark [EMAIL PROTECTED] wrote: | I am trying to get the perl IPTables::IPv4 module installed and I am | having problems. I get a Makefile:86: *** missing separator. Stop. | error every time i try to make. | | Any ideas? | | I am using Redhat 9. | | I tried both the cpan install and a manual install from the tar file. | Same error. That's a little odd. Normally that error means there's no tab or colon on the makefile line, but this should never happen with a cpan install because everything gets done programmatically. The usual cause is hand editing a makefile and using spaces instead of a tab to indent actions. A test make of IPTables-IPv4-0.97a here doesn't do it. What's on line 86 or your makefile? Mine has a humble macro setting. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Each new user of a new system uncovers a new class of bugs. - Kernighan -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Accurate 'du' count
On 15:43 22 Jun 2003, Ashley M. Kirchner [EMAIL PROTECTED] wrote: | Cameron Simpson wrote: | | No, I meant df. Because that will tell you how much space is really being | used up _without_ having to run a du over the tree (which can lie unless | it sees every link). | |Eh, df only shows me the total size on the partition/drive table. | Not the size of each individual directory. Like on the current server: | | df -k . | Filesystem 1k-blocks Used Available Use% Mounted on | /dev/hda1 2063504 1042948915736 54% / Yes, but it's easier to watch it go down after each backup. Assuming nothing else is consuming space on this partition. | Well, du -ks if you want to be portable (and succinct). | |No, this only shows me the contents of that parent directory, not | individual ones below it. See, this is what I wanted (spanned across to | save on message length): | | du -h -max-depth=1 . | 2.1G ./daily.01 928M ./daily.08 334M ./daily.15 402M ./daily.22 | 1.6G ./daily.02 820M ./daily.09 962M ./daily.16 318M ./daily.23 | 1.5G ./daily.03 804M ./daily.10 823M ./daily.17 245M ./daily.24 | 1.4G ./daily.04 616M ./daily.11 732M ./daily.18 190M ./daily.25 | 1.3G ./daily.05 512M ./daily.12 642M ./daily.19 166M ./daily.26 | 1.2G ./daily.06 406M ./daily.13 551M ./daily.20 151M ./daily.27 | 1.1G ./daily.07 296M ./daily.14 2.8G ./daily.21 120M ./daily.28 | 23G . | |...sizes for each individual directory, as well as a total for all | (23G). A 'du -ks' (or -hs) only tells me that 23G, and nothing else. Nonono. Do this: du -ks * not du -ks . | [...histbackup-prune...] | It takes a directory like yours with lots of backups | and removes the oldest until a certain amount of free space is present. | |See, normally I wouldn't have this problem. The 11 servers I've | been backing up since last year are fitting nicely on a single 120G | drive (with a 28 day loop like you've seen above). Ah. I don't loop. I just let it all fill up. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Indeed. It reminds me of a cartoon drawing I once saw. It was called the Last Act of Defiance and showed a striking eagle, caricatured beyond all reason, whose vastly exaggerated talons were but inches from a very small mouse. The mouse, with true style, was simply standing there giving the eagle the finger. - Jon McCulloch [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: RedHat 9 distro
On 08:10 14 Jul 2003, jim [EMAIL PROTECTED] wrote: | Just installed Redhat 9 with the associated packages. I note that the PHP is | 4.2.2 and I was interested in taking that to 4.3.2 | | downloaded a php distribution and tried to configure it but can't get the | apxs - | | configure gave: | | Sorry, I cannot run apxs. Possible reasons follow: | | 1. Perl is not installed | 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs | 3. Apache was not built using --enable-so (the apxs usage page is displayed) [...] apxs comes from the apache-devel RPM. Probably you're missing that. A better subject line might attract better responses, eg apxs on redhat 9? or something like that? Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ I found that by working six weeks a year I could meet all the expenses of living. - Henry Thoreau -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: file system environment
On 16:12 19 Jun 2003, James D. Parra [EMAIL PROTECTED] wrote: | Is there a way to make the Linux file system case insensitive? We have a | database scenario where this is very relevant. Usually not. Can you expand on how your database affects this? Usually this kind of thing is addressed by mapping names into a single case (eg lowercase) before using them with the filesystem. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ I'm a lawyer. Honest? No, the usual kind. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Great - just another spam block...
On 00:21 19 Jun 2003, T. Ribbrock [EMAIL PROTECTED] wrote: | Just got another one of those SpamBlock: Please register to be | allowed to send mail to me mails - this is just plain stupid! Running | list mail via such a mail address is rude at the least, IMO. [...] | I wonder, is there a way for the list software to recognize and | unsubscribe such folks? No, because the report goes directly to the poster. The list software never sees it at all. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ The mark must be robust enough to survive MP3 transmission over the Internet, but remain inaudible when played on the yet to be launched DVD-Audio players. - the SDMI audio watermarkers literally ask for the impossible, since all audio compressors aim to pass _only_ human perceptible data http://www.newscientist.com/news/news.jsp?id=ns224836 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: case? switch? I need to write a script and neither of these options work.
On 16:46 18 Jun 2003, dlangschied [EMAIL PROTECTED] wrote: | Sorry, I did not include the in after $reply and the case statement works. | I am still curious about switch. switch is a csh syntax. Stay well away from it and csh. Evil! -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ A system without PERL is like a hockey game without a fight. - Mitch Wright -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Setuid in rh9?
On 16:48 16 Jun 2003, Drew Weaver [EMAIL PROTECTED] wrote: | Howdy, I am finally replacing a very old Redhat 6.2 box with a brand new | shiny dell 2650 and redhat 9, the issue is i have some older perl scripts, | and they work great on Redhat 6.2, heck they even work great on Redhat | 9 assuming that I am running the script as root, when i chown +s this | file and then try and run it as user nobody it says 'Can't do setuid'. Please press [enter] every 70 chars or so. | it worked fine on 6.2 They're built perl without setuid support. Which is the CORRECT way to do it. If you need a particular script to be run by a nonroot user and do root things, use sudo to grant the power. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ The Tao that is seen Is not the true Tao, until You bring fresh toner. - Haiku Error Messages http://www.salonmagazine.com/21st/chal/1998/02/10chal2.html -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: RUN fsck MANUALLY
On 12:29 16 Jun 2003, rm [EMAIL PROTECTED] wrote: | Just to complete this thread. I solved this problem in a much simpler | way. After some additional searching on Googly Groups, I tried running | fsck -A /dev/hda2 and answered yes to all the questions. When I exited | and rebooted, it started - good as new! If you're going to answer yes to all the questions you can say fsck -y /dev/hda2 and it will answer yes for you. (And there's no need to use -A if you're fscking just one filesystem). Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ What would this country be without this great land of ours? - Ronald Reagan -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Setuid in rh9?
Please don't top post. On 20:08 16 Jun 2003, Drew Weaver [EMAIL PROTECTED] wrote: | The correct answer would've been, rebuild perl with setuid. No. The correct answer is to stay the hell away from setuid, and use sudo which allows fine grained control. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Smoke me a kipper, I'll be back for breakfast. - Red Dwarf -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: simultaneously
On 09:24 14 Jun 2003, Dadi [EMAIL PROTECTED] wrote: | I need to launch a command, simultaneously, on several 'Nix servers from | a remote computer runnig RH; the number of the servers is quite big so | to telnet or ssh in each one of them is not the way to do it ... ; is | there any way that I can do that on a single line of command ?? (the | command must log me in [start a tty I guess ..], do the thing that I | want and them log me off (encryption is not an issue so I don't | necessary need ssh)). Once I know the command I can write a small script | that can do the job whenever I want by using cron Why not just loop over the servers? while read host do ssh $host 'command ...' done list-of-servers I do a variant on that regularly at work. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ The face of a child says it all, especially the mouth part of the face. - Jack Handey -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: BASH scripting for a mouse
On 10:55 13 Jun 2003, David Kramer [EMAIL PROTECTED] wrote: | On Friday 13 June 2003 04:40 am, Matthew Richards wrote: [...] | but I do not know how to determine if the string serial exists in the | variable SMOUSE in terms of the 'if' statement. | | The answer is you don't. | | If you specify the -q option, grep will exit immediately with zero status if | any match is found (even if an error was detected), or non-zero if no match | is found. The $? shell variable is always set to the exit code of the | previous command, so just check that. | | /bin/grep -qi serial /etc/sysconfig/mouse | if [ $? != 0 ]; then | echo There is not a serial mouse attached to this system. | else | echo A serial mouse is attached to this system. | fi Of course, because grep (and many other command) act as boolean tests, and if's condition test _is_ a command, a much more readbale idom is this: if /bin/grep -qi serial /etc/sysconfig/mouse then echo A serial mouse is attached to this system. else echo There is not a serial mouse attached to this system. fi No ugly poking at $? required. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ The impossible we understand right away - the obvious takes a little longer. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: changing permissions
On 19:22 08 Jun 2003, Brent L. Cox [EMAIL PROTECTED] wrote: | how would I set it to where it would mount the fat32 | parition automatic after a reboot? Please don't top post. Post below, and trim the quoted material for relevance and readability. You need to add the appropriate line to the /etc/fstab file. See man fstab for details. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Sometimes you just need to look reality in the eye, and deny it. - Garrison Keillor -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: /dev/tape?
On 15:31 12 Jun 2003, Toralf Lund [EMAIL PROTECTED] wrote: | Shouldn't /dev/tape be created/updated automatically on a system with a | tape drive attached? Maybe by the install process. But generally not. | It isn't on my Red Hat 7.3 setup... So make a symlink. No big deal. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Every particle continues in its state of rest or uniform motion in a straight line except insofar as it doesn't. - Sir Arther Eddington -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: changing permissions
On 18:13 08 Jun 2003, Brent L. Cox [EMAIL PROTECTED] wrote: | ok thanks | If I wanted to unmount the ntfs drive what command would I | use | | I used this to mount it | | mount -t ntfs /dev/hdb5 /mnt/diskNT umount /mnt/diskNT -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ When the only tool you have is Perl, the whole world begins to look like your oyster.- Roy Johnson [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Process age
On 14:43 06 Jun 2003, Javier Gostling [EMAIL PROTECTED] wrote: | I need to monitor the age of certain processes in my system in order to | prevent some processes that should only take a few seconds or minutes at most | from getting stuck endlessly. My last experience, I found one such process | running since May 19. | | What I need is some way to check a processes' start date and time, so I | can check it from my script and raise an alert if one of these processes | has gone wild. I'm sure /proc/PID must have the relevant data, but I don't | know where exactly. Does anyone know where I can find it? /proc/PID doesn't seem to have this data. How lame:-( There are two other ways to attack this: your polling approach (look for old processes) or just run the commands involved inside a timeout program. For the polling approach you parse the output of: ps -o 'pid start_time cmd' ax which gets you a listing with just pid and start time and command. Or if you know the pid you can go: ps -o 'pid start_time cmd' pid For the timeout approach you invoke the process like this: timeout 10 command args... for a command that should run for at most 10 seconds. Timeout's a script you can get here: http://www.cskk.ezoshosting.com/cs/scripts/timeout Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Gosh, that's the 3rd motorcycle that's passed us. Sure do take their life in their hands, what with the weather and all. Yes Janet, life's pretty cheap to that type. Audience: YEAH THAT TYPE!! -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: daemon / background process manager
On 00:08 08 Jun 2003, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | is there any other program better to manage daemon process to save | memory and refresh it back. i use ard (auto renice daemon) and reaper | just to limit some background. i need another suggestion Can you describe what you want in more detail? -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ The problem with elections is that the government always wins. - Chris Rudram [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Symlinks and absolute vs relative paths
On 10:38 06 Jun 2003, Jeffrey Pleau [EMAIL PROTECTED] wrote: | I am a relative newbie to Linux/Unix adn am having an issue with symlinks. | I have a system where there are files and directories in user's home | directories that are symlinked to a mounted filesystem (read only). the | problem is this: | | If user 'Tom' navigates to /home/tom/symlinkdir/thisplace - where | symlinkdir is linked to /mnt/mountedserver | | and issues a pwd, the returned value is | | /mnt/mountedserver/thisplace (the absolute path) | | If the user issues an echo $cwd command, the path | /home/tom/symlinkdir/thisplace is returned (the relative path) | | How can I set up RedHat Linux AS2.1 to show the relative path for pwd | without aliasing it to 'echo $cwd'? You can't. Pwd tells the truth. $cwd is a lie concocted by the shell to make you feel good. Or to confuse you. Pick your own interpretation. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Any sufficiently advanced bug is indistinguishable from a feature. - Rich Kulawiec Any sufficiently advanced feature is indistinguishable from a bug. - Greg Alexander's corollary [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: mkinitrd failed
On 16:41 06 Jun 2003, Gordon Messmer [EMAIL PROTECTED] wrote: | Daniel Sheltraw wrote: | I get an error that mkinitrd has failed. The RAM disk support | and Init Ram disk sections of xconfig have been enabled. ANy ideas? | | How about the loopback device? Specificly, you need loopback support in the kernel you're running during the build. I've have a kernel RPM upgrade break because of that. (And the RPM didn't catch the breakage. Ugh. Tacky install script.) Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Rearranged the networking in Telsa's room. This lets me get a single address space for the entire house network so that machines can move rooms without having to be reconfigured. More importantly although she has yet to realise it leaves me with sufficient free ports downstairs to later run cabling into the TV room and kitchen. - Alan Cox 12apr2001 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: how to setup proxy in terminal?
On 03:38 05 Jun 2003, Paul Sutcliffe [EMAIL PROTECTED] wrote: | how to setup proxy in terminal? if i want to use lynx but i'm behind a | proxy, how can i setup the proxy to get online with terminal. For lynx, edit the file /etc/lynx.cfg. But most command line tools will pay attention to the environment variables $http_proxy, $ftp_proxy etc. For example, mine here is: [~]amadeus*20 echo $http_proxy http://proxy.home:8080 Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Here was a man who not only had a ready mind and a quick wit, but could also sing.- _Rope_ -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: how the heck do I close port 6000 used by X server?
On 02:43 03 Jun 2003, David Drew [EMAIL PROTECTED] wrote: | Hello people, | How do I stop the server from listing i've tried: | | a)Editing /etc/X11/xdm/Xservers and adding the -nolisten tcp after X | b)Creating a alias in .bashrc alais startx='startx -- -nolisten tcp | | Any help would be great the thing just will not die :( Just checking: you _have_ restarted X after making those changes? -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ ...the problem is not what is in front of the eyepiece but is often what is behind it. - Don Farra -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: exiting graphical interfaces
On 23:26 02 Jun 2003, Michael S. Dunsavage [EMAIL PROTECTED] wrote: | On Monday 02 June 2003 11:17 pm, you wrote: | Anybody know how to exit completely from KDE or GNOME back to the base | shell? My Redhat 8 start-up was installed with a graphical interface. | I need to be able to get back to the basic shell with no xwindows | running so as to access JNOS and TCP/IP over amateur radio. Consoles in | KDE won't work. | | Usually Ctrl+Alt+F2-F6 will take you to a regular console. Remember that the GUI is still there. From the text console, Alt-F7 will take you back to it. | Wouldn't mind making change to text only login with the option of | starting KDE if I want it. That'll work too. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ There's nothing quite like the pitter-patter of little feet, unless the state declares you morally unfit to be a parent. - Jonathan E. Quist, DoD #094, [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: sed replacing newline
On 14:42 31 May 2003, dbrett [EMAIL PROTECTED] wrote: | I have a file where all the text was put on one line. I noticed where | there should have been a new line there was a ) just before. I tried to | use sed to add a newline. I could not get it to work. | | cat junk.txt | sed s/\)/\n/g | | I tried quoting adding quotes. Does anybody know if it is possible to do | this with sed? | | I managed to accomplish what I wanted with | | cat junk.txt | sed s/\)/\+/g | tr \+ \n sed 's/)/\ /g' junk.txt notjunk.txt -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ WHAT is your name? Captain Jean-Luc Picard WHAT is your quest?I seek the Holy Grail WHAT is the top velocity of a Bird of Prey? Romulan or Klingon? II don't know...AAA - Mike Gaines, [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: xterm problem and kernel build
On 08:26 30 May 2003, Daniel Sheltraw [EMAIL PROTECTED] wrote: | [...] Obviously I have left something out. I am getting | a message when booting: | | fs types devpts not supported by kernel | | AFAIK this is related to USB What makes you think this? | which I have not enabled and do not | need in this kernel. Am I correct about this message? No. This is needed for ptys (which, strangely enough, are vital for xterm et al). Hack the .config file and add: CONFIG_DEVPTS_FS=y and rebuild it. Or in the config tools, set Character Devices - UNIX 98 pty and Filesystems - /dev/pts file system and rebuild. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ No electrons were harmed in the production of this message. - Dr. P. Gensheimer [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: xterm problem and kernel build
On 09:10 30 May 2003, Manuel Ar?stegui Ramirez [EMAIL PROTECTED] wrote: | We need more details to help you. | Have you activated any insual option in your new | kernel ? And does xterm emit any useful error messages? -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ People used to say that money is the root of all evil. I believe strongly that ignorance is the root of all evil, at least all the evils that I've seen personally. - Bruce Giese -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Migrating
On 11:15 28 May 2003, Paulo Schopf [EMAIL PROTECTED] wrote: | Im migrating my old Linux (Conectiva distro) to RH 9. I would like to | know what are the files to copy to keep accounts and passwords (passwd, | shadown, etc). I just use Squid, Apache and Samba, without ldap, ssh,etc. | Its a simple box. /etc/passwd /etc/shadow /etc/group These are plain text files. Take only the lines for your own added accounts. The ones supplied with the OS are under the control of the vendor, and so may differ from distro to distro. It is important that they match the distro. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Gummi: I'm so smart! I'm so smart! S M R T. I mean, S M A R T! - [EMAIL PROTECTED] (Gudmundur Bjarni Josepsson) -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Mega Problems
On 22:13 28 May 2003, Jonathan Michael Nowacki [EMAIL PROTECTED] wrote: | Wow all I want to do is install tomcat and I'm running into every | problem possible. Right now this is what's going on. | | error: failed to stat /mnt/chuck: Stale NFS file handle | | Chuck is a remote computer at Indiana University. | It occurs while I'm trying to install java with rpm -i, I tried killing | it, but I cant find the process id because lsof only returns: | | lsof: WARNING: can't stat() nfs file system /mnt/chuck | Output information may be incomplete. | | I tried overmounting the file system but that didn't seem to work. | I used mount -O. | | By way why would chuck (a remote computer) effect the installation of | java? or is this another problem? And yes, I am root. A stale NFS file handle means that you machine has /mnt/chuck mounted, but the fileystem that chuck is advertising to you has changed devices. Was it perhaps a removable medium or has chuck been reinstalled? Anyway, that NFS mount will be unusable from now on. You must umount /mnt/chuck. This may not be possible. umount -l /mnt/chuck may do the trick. | Also certain | permissions seem impossible to change. | rpms $ rpm -iv --replacepkgs j2sdk-1_4_1_02-fcs-linux-i586.rpm | error: failed to stat /mnt/chuck: Stale NFS file handle | Preparing packages for installation... | j2sdk-1.4.1_02-fcs | cp: cannot create regular file `/usr/local/man/man1/appletviewer.1':Permission denied | cp: cannot create regular file `/usr/local/man/man1/extcheck.1':Permission denied | cp: cannot create regular file `/usr/local/man/man1/idlj.1': Permissiondenied [...] Looks like /usr/local/man is not a local filesystem. Is it on an NFS mount? The root account has no special powers over remote filesystems, only local ones. | rpms $ rpm -e j2sdk-1_4_1_02-fcs-linux-i586.rpm | error: package j2sdk-1_4_1_02-fcs-linux-i586.rpm is not installed The rpm install probably didn't complete because of the above errors. It should have backed out what files did work before the error - did it? | error: failed to stat /mnt/chuck: Stale NFS file handle Chuck again. | Also I went to /usr/local/man/man1/ and tried to change the permissions | man1 $ chmod 777 jdb.1 | chmod: changing permissions of `jdb.1': Read-only file system | but nothing changes. Ah, readonly. What does the mount command say about what's mounted and with what flags? The /mnt/chuck errors may be unimportant to your install issues. Many programs (and the JDK is certainly one, as is pwd) must look up the mount table in order to determine the current directory path because you compute that by starting at . and walking up the directory tree until you hit a mount point, and then you consult the mount table to map that into a path. The only way to match up the mount point with mount table entries is to stat each mount point in the table until you get a match, and so it's trying to stat /mnt/chuck during this process. Which is fine provided you're not _in_ /mnt/chuck (which I doubt). So your permission problems probably do not stem from your Stale NFS file handle problems, and the NFS problem does not need to be fixed to do your install. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ The Government that robs Peter to pay Paul, can always count on Paul for support.- George Bernard Shaw -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Can't to call Server Side Includes
On 16:51 27 May 2003, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | Hello to you , | | Can you help me to fix this problem ? | | /var/log/httpd/error.log: | | [Mon May 26 22:22:42 2003] [error] (13)Permission denied: exec of | /home/edward/public_html/house/cgi-bin/textclock.cgi failed | [Mon May 26 22:22:45 2003] [error] [client 202.175.34.64] Premature end | of script headers: /home/edward/public_html/house/cgi-bin/textclock.cgi | | Thank for your help ! Looks to me like your CGI script is not public executable (and if it's a script it needs public read, too). Do this: chmod a+rx /home/edward/public_html/house/cgi-bin/textclock.cgi and retry. -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Hag:Two things you must know about the wise woman. First...she is a woman. Second...she is... Edmund Blackadder: Wise? Hag:Oh! You know her then? Edmund Blackadder: No, just a stab in the dark, which is what you'll be getting in a minute if you don't become more helpful. - Edmund Blackadder to Old Hag, Bells, BA2 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Need more speed - CPIO
in the kernel. I will pay that. | I can send you the buffer program if you like - it's | extremely useful for this particular purpose. | | What he needs is a version of the Double buffer io program running on | the slave side of the link where the tape drive is. That would also help. Possible more. | It has two cooperating processes that switch roles. | Both sides can read from the TCP/IP socket and write directly | to the tape drive (replace DD) in a specified block size. | While one reads from the socket, the other is writing to the | tape drive and then they switch roles. The switchover | communication is performed using a local two way pipe | between the twin processes. The performance is gained | becuase while one process is blocked on the tape write | the otehr continues to read from the socket. That's exactly the mode of the buffer program, except that it uses a shared memory segment between its two forked instances. Which seems simpler and more efficient. I take your point about the tape I/O buffer. | The other | major thing that helps is if this is all running | on a multi-processor system since you dont | get cpu bound. So he should potentially upgrade | to multiple cpu based servers if that is not the | current case and implement a double buffered io program | to replace the call to DD to handle the tape drive directly. Sure. Measurement needed for all this. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ The only way to deal with bureaucrats is with stealth and sudden violence. - UN Secretary General Boutros-Ghali, _New York Times_ 15oct93 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Can't to call Server Side Includes
On 12:45 28 May 2003, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | Now it is : | | [EMAIL PROTECTED] cgi-bin]$ ls -l | total 8 | -rwxr-xr-x1 edward edward 3650 May 26 12:34 textclock.cgi | -rw-r--r--1 edward edward123 May 26 02:40 WS_FTP.LOG | [EMAIL PROTECTED] cgi-bin]$ | | But also ( Browser ) : | | Internal Server Error | The server encountered an internal error or misconfiguration and was unable to | complete your request. | Please contact the server administrator, [no address given] and inform them of the | time the error occurred, and anything you might have done that may have caused the | error. | | More information about this error may be available in the server error log. | | log file : | | [Wed May 28 12:58:47 2003] [error] (13)Permission denied: exec of | /home/edward/public_html/house/cgi-bin/textclock.cgi failed | [Wed May 28 12:58:47 2003] [error] [client 202.175.40.6] Premature end of script | headers: /home/edward/public_html/house/cgi-bin/textclock.cgi | | How can I to fix this problem ? Peter Kiem's Windows-UNIX idea is promising. If it doesn't pan out, can you post the CGI script? Also, what happens when you run the script by hand: ../textclock.cgi /dev/null It is important that the CGI emits good MIME headers too (this is the essense of the Premature end of script headers stuff - of course script which aborts produces no headers too). Oh yes - do other CGIs work for you? Also, RedHat ships an suexec-enabled web server. This means that the core error message is often in the suexec error log, not the main web error log. It should be in the same directory as the usual web logs. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ slander. slander i say. the kotl is a man of integrity. once bought, always bought. - Keith Schauer, CB900 Custom, DoD #0901 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: man error
On 10:44 04 Apr 2003, Kip Cranford [EMAIL PROTECTED] wrote: | I've installed a new RH 8 workstation recently, and | have noticed the following error when doing | | % man exec | | This gives: | | standard input:15: realpath on `bash.1' failed: No | such file or directory | | and then man page is kind of garbled after that. This | seems to happen on any of the builtins (other man | pages seem to be ok). | | Has anyone else seen this, and fixed it? I haven't | been able to find much on Google, but surely everyone | with RH 8 has this problem, as I'm using an | out-of-the-box install... Yeah, the man command and/or the bash manual entry installation is busted-as-supplied. Here's a diagnosis I made in February: Date: Sat, 15 Feb 2003 22:38:36 +1100 From: Cameron Simpson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Error Message-ID: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] On 20:10 11 Feb 2003, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | When i key in the command *man history* i got this error | | standard input:16: realpath on `bash.1' failed: No such file or directory | | what does this error means. It looks like a bug in the bash manual entries. The history.1 file (/usr/share/man/man1/history.1.gz) sources man1/builtins.1, which in turn sources bash.1. It appears to me that seeking man1/builtins.1 finds it immediately; bash.1, lacking the man1/ prefix needs a further search. This doesn't happen. Instead, it looks for /usr/share/man/bash.1, which doesn't exist because it's in the file /usr/share/man/man1/bash.1.gz instead). Bodgy. Just go man bash and check things out there. Hope that helps. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ You can blip it twice to clear the bore, But blip it thrice, and you've sinned once more. - Tom Warner [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: group nobody
On 10:45 19 Mar 2003, Hong Tian [EMAIL PROTECTED] wrote: | I want to ask a basic question about Linux group definition. What is the | group name which can involve all users? Make your own. Perhaps named users. | What does the group nobody mean? It is the group which owns no files, just like the user nobody. In this way something running with userid nobody and group nobody has no access to anything (except publicly accessible stuff) and is thus unprivileged. | In Solaris, there is a default group named other. What is the group name | in Linux which correspondences to Solaris group other? Nothing special. Why do you think you want it? -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Dan shouts back to be careful and I ignore that remark. If I wanted to be careful, I would be back home watching television. - Tramm Foo Hudson, rec.climbing -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Viewing CP status
On 16:52 29 Mar 2003, Joe Giles [EMAIL PROTECTED] wrote: | Is there a way to get the 'cp' command to display some kind of status | that the copy is happening. Like hash marks or something... | | Its gets frustrating when copying large files from one location to | another and not seeing any progress. Well I have a little script called prcat: http://www.cskk.ezoshosting.com/cs/scripts/prcat (cat with progress reporting). I pretty much only use it for copying CDs onto our CD server. But it writes progress to stderr, so you'd go: prcat fromfile tofile and see it go. Sometimes useful. It uses my perl stuff so you you can either grab the few modules it uses from here: http://www.cskk.ezoshosting.com/cs/scripts/cs/ or just get the whole css package: http://www.cskk.ezoshosting.com/cs/css/ Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ The problem is that Scotland doesn't have it's own government with tax-raising powers. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: SSH quirk...
On 14:28 23 Mar 2003, Ashley M. Kirchner [EMAIL PROTECTED] wrote: | nate wrote: | yes I have noticed this from time to time. It's quite rare for me, | but does happen. Haven't investigated much yet myself. quite odd, |Okay, I'm not going crazy then. For me it only happens whenever I | execute some restart (or stop/start) init script. Any other time I can | log in and out just fine. It almost seems as if ssh expects whatever | process you started to quit or something. Like it won't exit if there's | something tied to it. Bizarre. If you're dicking with an ethernet interface or firewall rules it can cut your connection off from the RST packet, so your ssh connection never sees the drop of the connection, just silence. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Uhlmann's Razor: When stupidity is a sufficient explanation, there is no need to have recourse to any other. - Michael M. Uhlmann, assistant attorney general for legislation in the Ford Administration -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: dmesg output - please interpret
On 05:29 23 Mar 2003, Michael Mansour [EMAIL PROTECTED] wrote: | | SNIP | | hdc: ATAPI 20X CD-ROM drive, 120kB Cache | | Uniform CD-ROM driver Revision: 3.12 | | cdrom: This disc doesn't have any tracks I | recognize! | | cdrom: This disc doesn't have any tracks I | recognize! | | | | ?? in fstab... do you have auto in the cdrom | line??? | | I'm more inclined to think he has an audio CD in the | drive, not a data CD. | | The cd drive is empty actually... I thought it had | something to do with the KDE automounter always | checking the cd drive to see if something is in it? Hmm, yes. Sounds likely to me, though you'd expect a better message; CD drives happily return a sane no medium error. Sounds like magicdev is being unhelpful in its messages. If it's magicdev, which I think it is. I always disable magicdev and just use an entry in my automounter for the CD, so when you know there's a data disc in it you can just cd /mnt/cdrom and it gets mounted then. Not probing in the background. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ We Americans *pretend* 55 is the speed limit, ... but it clearly isn't the real speed limit, since nobody, including the police, actually drives that slowly, except people wearing hats in the left lane.- Dave Barry -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Configuring X Windows with Redhat 8
On 17:26 23 Mar 2003, Doug Almquist [EMAIL PROTECTED] wrote: | I recently upgraded my motherboard to an ASUS with onboard NVIDIA graphics. | I installed Redhat 8 and can't find the utility to configure X. | Xconfigurator is evidently gone and I can't otherwise get X loaded. The | 'screens' seem to be misconfigured. | | What's the new utility for doing this? The X server itself can usually be used. See this: http://www.redhat.com/mailing-lists/redhat-install-list/msg57534.html Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Experience is what you get when you don't get what you want. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Disk Errors then a crash
On 09:20 24 Mar 2003, Edward Dekkers [EMAIL PROTECTED] wrote: | Mar 21 22:11:09 wolfserver kernel: EXT3-fs error (device ida0(72,1)): | read_block_bitmap: Cannot read block bitmap - block_group = 7, | block_bitmap = 229380 | Mar 21 22:11:09 wolfserver kernel: Fatal error on ida/c0d0 | | After this, the messages just repeat until the crash... | | HHmmm. Find out what make/model the hard drive is, go to the web site, then | download and run the Hard Disk diagnostic software. There's also a badblocks command (if you can still be into Linux at all). -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ The mind reigns, but does not govern. - Paul Valery -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: some question about UNIX terms
On 15:53 22 Mar 2003, viviansm [EMAIL PROTECTED] wrote: | Hi Cameron, | Please help me on the following: | How to copy a file from the floppy disk into Linux? | How to copy a file from Linux to a floppy disk? Please don't post HTML. Please don't top post. Please trim irrelevant quoted material. Please change the subject line when you change topic. Please start a _new_ thread when you change the topic. Please don't ask a question of an individual when you're posting to a list. That said, either: mount the floppy and just use cp or use the mcopy command (see man mcopy) Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ We should measure progress not by how many laws can be passed but by how little governing people need. -- Don Baldwin [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: dmesg output - please interpret
On 12:25 22 Mar 2003, Jeff Lane [EMAIL PROTECTED] wrote: | Michael Mansour wrote: | SNIP | hdc: ATAPI 20X CD-ROM drive, 120kB Cache | Uniform CD-ROM driver Revision: 3.12 | cdrom: This disc doesn't have any tracks I recognize! | cdrom: This disc doesn't have any tracks I recognize! | | ?? in fstab... do you have auto in the cdrom line??? I'm more inclined to think he has an audio CD in the drive, not a data CD. Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ The ZZR-1100 is not the bike for me, but the day they invent nerf roads and ban radars I'll be the first in line..AMCN -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: some question about UNIX terms
On 23:22 21 Mar 2003, gabriel [EMAIL PROTECTED] wrote: | On March 21, 2003 10:58 pm, nate wrote: | usually 3rd party contributions to a software program. | grep(1)... What does the number (1) mean? | the section of the manual (man) that the command is located. | sometimes there are multiple manpages in different sections, | so often the section is mentioned. | | just to clarify here ('cause it used to confuse me). to access different | secitons of a man page use the following: | | man section# manual | ie: | man 1 grep In the same vein, section 1 is commands 2 is system calls (kernel API) 3 is library calls 4 is special files (devices, usually in /dev) 5 is file formats 6 is games 7 is conventions and miscellany 8 is administrative commands See man 1 intro, man 2 intro and so forth. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ You can tune a file system, but you can't tune a fish. - tunefs(1) manual entry -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: help on tapes (urgent)
On 19:22 17 Mar 2003, Guillermo Villasana Cardoza [EMAIL PROTECTED] wrote: | Hi everyone, I want to buy a dell machine with a tape drive for backup, | does redhat has drivers for DLTs or DDS? | Which tape drive do you recomend me to buy and does redhat has drivers | for the tape drives? Broadly speaking a SCSI tape is a SCSI tape. I have used box DLT and DDS drives on RedHat boxes happily. You need to insmod the st driver, but then it all just works. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ With no clue of the technique, how can one hope to master the maneuver? - Ed Green -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Terrible 'cp' loop
On 14:49 13 Mar 2003, James Jensen [EMAIL PROTECTED] wrote: | In the event that this happens in the future, does anyone know | of a method that will kill a process when kill fails? | | kill -9 pid | I've only very rarely seen that fail. | | On Thursday 13 March 2003 14:56, Robert Adkins II wrote: | That failed continually... There was no error message regarding | the failure to kill the process. I also gave a few other 'kill' flags a | go and they didn't do the trick either... | Any other suggestions? | Try kill -SIGKILL pid Argh. That _is_ kill -9!! Gadzooks! If kill -9 doesn't work, nothing else will either. The process is in the kernel, doubtless grinding away at some unbounded and hopeless error recovery process. Having tried signal 9 (KILL) you have exhausted your options. If the kernel _does_ ever give up on the error recovery the process _will_ die, but until then it'll grind away because it's not in code that considered the signal list. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Three things are certain: Death, taxes, and lost data. Guess which has occurred. - Haiku Error Messages http://www.salonmagazine.com/21st/chal/1998/02/10chal2.html -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Tape backup software and drives
| Okay, I have two questions that are not on topic. | 1) Any good open source backup software? | | I'm currently using dump and tar. I like the simplicity of dump but I | would like to be able to get all my volumes on one tape. I think you can | do this if you forward your position before you start the next volume | but... AMANDA is widely used, and has worked for me. http://freshmeat.net/projects/amanda/?topic_id=137 Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Biographical history, as taught in our public schools, is still largely a history of boneheads: ridiculous kings and queens, paranoid political leaders, compulsive voyagers, ignorant generals -- the flotsam and jetsam of historical currents. The men who radically altered history, the great scientists and mathematicians, are seldom mentioned, if at all. - Martin Gardner -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: ls --full-time
On 08:53 13 Mar 2003, Anthony E. Greene [EMAIL PROTECTED] wrote: | On 13-Mar-2003/12:02 +, Zhi Cheng Wang [EMAIL PROTECTED] wrote: | thanks for the message. but i do not want to add current time, the time | stamp of the file is needed | | There was a thread about that on this list a few months ago. There is no | easy solution that will work across multiple versions of Linux. Given perl, there probably is. Almost every system has perl. | On my | RH72 system, this works: | | cd $targetdir | for datafile in `ls -1`; do | modifydate=`ls --full-time $datafile | cut -c 44-62` | formatteddate=`date -d $modifydate +%Y-%m-%d` | mv $datafile datafile.$formatteddate | done | | You'll have to modify the ls command and the columns of characters to cut | depending on the version of ls that the system uses. This: perl -e '(@s=stat($ARGV[0])) || die; @tm=localtime($s[9]); printf(%04d-%02d-%02d-%02d:%02d:%02d\n,$tm[5]+1900,$tm[4]+1,$tm[3],$tm[2],$tm[1],$tm[0]);' filename Transcribe the file's mtime in an ISO style string. Hack to suit. Put it in a script called mtime2iso and use in Tony's script: cd $targetdir for datafile in *; do formatteddate=`mtime2iso $datafile` mv $datafile datafile.$formatteddate done Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Copies of ACM publications are filling library self space so rapidly that shelf boundaries will soon be expanding faster that the speed of light. But Special Relativity is not violated, as no information is being propagated. - Howard E. Motteler, [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Crontab issue
On 01:55 08 Mar 2003, M.Lewis [EMAIL PROTECTED] wrote: | If I run the following from the comman line, it works properly: | | /bin/tar czvf /root/dbman_back-`date '+%m%d%Y%H%M'`-tar.gz \ | /var/www/cgi-bin/dbman | | However, it I put this in my crontab, I get the following: | | Subject: Cron [EMAIL PROTECTED] /bin/tar czvf /root/dbman_back-`date '+ Your clue is that the command stops after the +. | X-Cron-Env: SHELL=/bin/bash | X-Cron-Env: HOME=/root | X-Cron-Env: PATH=/usr/bin:/bin | X-Cron-Env: LOGNAME=root | | /bin/bash: -c: line 1: unexpected EOF while looking for matching ``' | /bin/bash: -c: line 2: syntax error: unexpected end of file | | I realize that cron is picky about ENV and such, but I can't see what I'm | missing here. Percents are special in Vixie cron crontabs. You need to slosh it: /bin/tar czvf /root/dbman_back-`date '+\%m\%d\%Y\%H\%M'`-tar.gz /var/www/cgi-bin/dbman man 5 crontab says The ``sixth'' field (the rest of the line) specifies the command to be run. The entire command portion of the line, up to a newline or % character, will be executed by /bin/sh or by the shell specified in the SHELL variable of the cronfile. Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input. Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ I became a modern day Sodomite because my teachers said it was a *harmless* alternative lifestyle -- THEY lied through their teeth so now I'M doomed TO HELL!! - Doom Town . . . Chick Publication 273/G -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Crontab issue
On 03:18 08 Mar 2003, M.Lewis [EMAIL PROTECTED] wrote: | Percents are special in Vixie cron crontabs. You need to slosh it: | | /bin/tar czvf /root/dbman_back-`date '+\%m\%d\%Y\%H\%M'`-tar.gz | /var/www/cgi-bin/dbman | | man 5 crontab says | [...] Percent-signs (%) in the command, unless | escaped with backslash (\), will be changed into newline | characters, and all data after the first % will be sent to | the command as standard input. | | That didn't work Cameron. It gives me a file with the name of: | dbman_back-\03\08\2003\03\14-tar.gz Bugger. Maybe the manual lies. Just chuck it in a script and call the script: I tend to do that anyway myself as soon as a cron command becomes even slightly complex. It also means you don't need to worry about weird cron syntaxes interfering with your shell syntax. Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ ... and that was only one of many occasions on which I met my death, an experience which I don't hesitate to recommend strongly. - Baron von Munchausen -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: terminal timing out
On 20:31 08 Mar 2003, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | On Sat, 8 Mar 2003 [EMAIL PROTECTED] wrote: | On Fri, 7 Mar 2003, Steve Lee wrote: | In SecureCRT, (windows people) can send a packet every so many | hours, to keep it alive, anyone with any ideas on doing this | is Xwindows ? | while /bin/true;do ping -c 1 REMOTEHOST_IP /dev/null 21;done | ACTUALLY that should be: | while /bin/true;do ping -c 1 REMOTEHOST_IP /dev/null 21;sleep 5m;done Wouldn't a plain ping -i 300 REMOTEHOST_IP do just as well? Ping will happily ping forever, which is what your loop is intended to do. Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ My computer always does exactly what I tell it to do but sometimes I have trouble finding out what it was that I told it to do. - Dick Wexelblat [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: test empty dir
On 11:12 07 Mar 2003, Zhi Cheng Wang [EMAIL PROTECTED] wrote: |From: Anand Buddhdev [mailto:[EMAIL PROTECTED] | On Fri, Mar 07, 2003 at 08:52:56AM -, Zhi Cheng Wang wrote: | how can i test if a directory is empty? at the moment i use the following method: | | ls -l /dirname | grep total 0 | if [ $? ] then | | This is not a good test. ls -l will not reveal dot-files. | | Use ls -A which will list all files, including the dotted ones, but | excluding '.' and '..'. | | if [ -z `ls -A /dirname` ]; then echo empty; fi | | this seems a very good test, but the system says [: too may arguments Yeah, Anand didn't quote it. Try this: if [ -z `ls -A /dirname` ]; then .. You have to make the output of ls stick together as one string so that the -z has exactly one argument. I case actually think of a pathological case where it won't work, too, because backticks strip some whitespace, so if you have a file in the whole name is pure whitespace... Perhaps we should ask: why do you want to know if it's empty? There may be a cleaner approach. In particular, I would point out that rmdir WILL NOT remove a nonempty directory, so you can go: rmdir /dirname 2/dev/null with impunity, IF all you want to do is clean up an empty directory without risk of losing files if it's not empty. More background on your larger task please? -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ George, discussing a patent and prior art: Look, this publication has a date, the patent has a priority date, can't you just compare them? Paul Sutcliffe: Not unless you're a lawyer. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: keeping the pipe open
On 19:56 06 Mar 2003, Dan Bar Dov [EMAIL PROTECTED] wrote: | The last pipe to tee is the problem. I can't do that. I need to send the | input from several locations, and they do terminate. The problem is that the pipe sees all the handles go away, and sends EOF to your gzip. Keep at least one write always open. Eg: mknod foo p gzip foo foo.gz # will block until first open exec 4foo # open of foo but no close echo hi p # separate open and close of foo here echo there p # separate open and close of foo here exec 4- # close of last handle sends final EOF While fd 4 is lying around holding the pipe open your gzip will be happy. All your other programs can happily open the pipe and write and close it and the gzip will get it all. Obviously you will be splitting the above example up, but I hope the approach is now clear? Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ ..And in all of Babylonia there was wailing and gnashing of teeth, till the prophets bade the multitudes get a grip on themselves and shape up. - Woody Allen -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: How do I enable .cshrc while logging in
On 11:34 07 Mar 2003, truc nguyen [EMAIL PROTECTED] wrote: | I have the Red hat 7.2 machine running in C shell for | superuser. This isn't a very good idea, but not matter. | However, every time I log in, I must type | source .cshrc to update the enviroment variables. How | do I create a .login file to enable .cshrc while | logging in ? You're not meant to set envvars in the .cshrc. Set them in the .login instead. Setting them in a .cshrc runs that stuff on EVERY csh startup, which is very wasteful, needlessly slowing your system. | I attempt to add .login file. But the computer was | hung at interprocess communication and it warned | Could not read Network connection list dcopserver | program /root/.DCOPserver_Truc:0 running. Please | check that dcopserver program is running That's really weird. What else is in your .login file? -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ The mind reigns, but does not govern. - Paul Valery -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: (no subject)
On 16:20 04 Mar 2003, William Warren [EMAIL PROTECTED] wrote: | I did an up2date last night to get the sendmail patch, and I'm curious | about one of the changes I noticed. [...] | dnl FEATURE(`accept_unresolvable_domains')dnl | --- | FEATURE(`accept_unresolvable_domains')dnl | | Now, I can understand why Redhat would choose to be conservative, | and set the port option to localhost only (127.0.0.1), but I'm | puzzled as to why they have turned on the accept_unresolvable_domains | option. Well, not using accept_unresolvable_domains is rather expensive. It makes the mail system do lots of needless DNS lookups. It also means that a DNS outage can make your box start rejecting email. It means that is a domains DNS is completely down, you'll reject email from it. Your call. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ I refuse to have a battle of wits with an unarmed person. - Mr. Boffo -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Questionmark tacked to filename
On 11:59 04 Mar 2003, Anthony E. Greene [EMAIL PROTECTED] wrote: | On 04-Mar-2003/08:21 -0800, Myhre, Julie [EMAIL PROTECTED] wrote: | Yes I believe it is a questionmark, if an ls tells me anything...you're | getting at the idea of ? being a wildcard single character - does | Linux/the shell change unprintable characters to questionmarks to flag a | problem? I was actually wondering if you had an alias for ls with the -F option that tags file type (dir, etc) with a suffix char. But Tony's idea below sounds more likely to me. | I've cut and pasted a listing of the script... [...] | | Did you create that script on a DOS/Win machine? If so, the line may end | with CRLF instead of the *nix standard LF. The CR would be displayed as a | question mark by ls. Also to bear in mind is that most UNIX tools _don't_ consider a CR to be whitespace, which is probably how one would get onto the end of a filename. ls will usually print unprintables (control chars, like CR) as a ? to prevent the listing being mangled. You can really inspect things wi9th an incantation like this: echo * | od -c or echo file_prefix* | od -c # trim the listing a bit Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ The usual work schedule (so far as I can figure) for the PhD folks around here is nine to five Monday through Friday. I have a slightly different approach. I wander into the office about three in the afternoon, do the pretend work (**), go home for a couple of hours for dinner, then come back about nine at night for the proper work. Proper work usually goes until about four in the morning and I'm asleep by five. Maybe. I do this seven days a week, except on Saturdays when I go home about nine in the morning, right about the time my housemates are moving about. - Dan Hillman [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: QuestionMark tacked to filename
On 11:23 03 Mar 2003, Myhre, Julie [EMAIL PROTECTED] wrote: | I have an unusual (and not consistently repeatable) file creation problem. | | My user kicks off a shell script that makes several calls to an executable. The executable takes several parameters, one of them being an output filename (thus it is repeated in the script to break up the | output files into something manageable). | | Occasionally the output file is created with ? tacked to the end of the filename. He has not been able to make this happen if he just types the executable and parameters at the prompt. But when he uses a | script, it happens sporadically. The script doesn't have any #!/bin/sh at the top - he simply entered all the command lines into a file. | | It may be related to the executable, but since I don't have the source for the binary, I thought I'd check to see if anyone has seen this behavior on their Linux box before I talked to the vendor of this binary | code. Are you _sure_ there's a question mark as part of the name? What command are you using to show this? You may need to show us the script, too. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Does your mother know you're on Usenet this late? - Rico the Masher, [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Procmail exception
On 13:29 28 Feb 2003, Kapil Khanna [EMAIL PROTECTED] wrote: | This is what i am seeing in the /var/log/maillog | Feb 28 04:01:04 localhost procmail[6519]: Error while writing to | /root/.procmail/log | Has anybody seen this before? | What surprises me is that there is no directory called .procmail under root. | There can be a .procmail file in user specific directories to override default | behavior. However thats a file and not a directory. What is procmail confused | about and what i am doing wrong? Have you make your own .procmailrc file? If so, let's see it. I would guess you've set the LOGFILE variable. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Disclaimer: Opinions expressed here are CORRECT, mine, and not PSLs or NMSUs.. - Larry Cunningham [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: ls operation changed
On 01:51 01 Mar 2003, Vidiot [EMAIL PROTECTED] wrote: | Do you know about the -d flag? You might try ls -laGd, that | might get you the behavior you want. | | Yep, neither that or -L made any difference. Well sure. -L turns _on_ the behaviour you see. Sure you're running the real ls, and not some evil presupplied alias? Does /bin/ls behave the same as ls? What does the alias command recite? | There must be something in my environment that is causing this then. | But what? The man page has no info on this. Please don't say to use | info ls to see if there is anything in there. I HATE info. Me too. Wrote myself a parser and integrated it with a man command so you can page info like real man pages. See here if you like: http://www.cskk.ezoshosting.com/cs/css/#s-text-info2x The man command is here: http://www.cskk.ezoshosting.com/cs/scripts/man Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Chaos reigns within. Reflect, repent, and reboot. Order shall return. - Haiku Error Messages http://www.salonmagazine.com/21st/chal/1998/02/10chal2.html -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Need procmail recepie for 100k attachments.
On 19:39 28 Feb 2003, Daevid Vincent [EMAIL PROTECTED] wrote: | Anyone have a procmail recepie for those idiots who insist on sending large | file attachments? I use fetchmail's -l option to avoid such messages (fetching them from elsewhere). Inside your procmailrc you can also check the size, thus: # catch the remaining small stuff and redeliver :0 * 65536 { do stuff with messages under 64k } | Ideally I'd like it to reply to them a message, and then remove the | attachment and only save the message, or else just delete the whole thing. | Sometime people (like my sister!) send me 1MB .mov files that just jam up my | mailbox and kill my bandwidth. By the time it reaches your procmailrc you've already fetched the whole message. You need something else. If you're using POP you can only measure the size and fetch or delete the message - you can't inspect just the headers with that protocol (which is annoying). You can do much with IMAP though, I gather. Dig around on freshmeat for mail filtering stuff and see what there is. Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Me This is the second multipart/alternative message I've got today, Me both using application/ms-tnef for the second encoding. WTF makes Me these messages? Daniel Bloody Microsoft Exchange. If you tell it to send messages in rich text Daniel format, it attaches all its formatting crap as TNEF. It can have fonts Daniel and colours and OLE attachments and God knows what else. But, sometimes, Daniel even when you most definitely have turned RTF sending OFF for ALL Daniel recipients, the freaking thing still sends the bloody attachments. Daniel Thanks, Bill. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list