Re: Why Red Hat is the business distro

2008-03-18 Thread William Pursell
Ron Johnson wrote: Back to computers: We're such a successful company, we can afford to buy Tier 1 kit, and send all that money to MSFT. And because we do, we *must* be getting good stuff. (If that is, actually, an actual upper-management though process.) upper management thought

Re: Why Red Hat is the business distro

2008-03-17 Thread William Pursell
Damon L. Chesser wrote: Ron Johnson wrote: http://www.washingtonpost.com/wp-dyn/content/article/2008/03/16/AR2008031602168.html DC: quoted some 23 lines of RJ's message, including signature block, and added one line of text: Well, That explains why people use MS. Please trim posts

Re: shell scripting

2008-03-13 Thread William Pursell
SENTHIL KUMAR wrote: Hi, i plan to run a program over some 20 files were i need to input one files as REFERENCE and then the remaining as TEST. i have return a script to take every file in the list to be taken a REF and the remaining as TEST and it works well{all with all }. but i want

Re: graphical file browser from command line

2008-03-11 Thread William Pursell
Eduardo M KALINOWSKI wrote: Kevin Mark wrote: In less, if you press 'v', it will open the file in VI, and then you can view the file there. Actually, it opens in an editor defined by the VISUAL or EDITOR environment variables (in that order), defaulting to vi if neither is set. In my

Re: Probably very stupid script/bash question

2008-03-05 Thread William Pursell
Mark Clarkson wrote: On Wed, 05 Mar 2008 13:10:37 -0800 Bob McGowan [EMAIL PROTECTED] wrote: If I do the process substitution using a stand alone programs, it works as described: $ wc (echo this is a test) 1 4 15 /dev/fd/63 I couldn't find the correct place to

Re: mail vs. Mutt

2008-02-15 Thread William Pursell
Ron Johnson wrote: On 02/15/08 10:47, Andrius wrote: Ron Johnson wrote: On 02/15/08 10:07, Andrius wrote: Returning to the question about Mutt. Why to complicate a life when all mailing tasks perfectly can do simple command 'Mail'? What the hell does that mean? That is reflections about

Re: Shell script function problems

2008-02-09 Thread William Pursell
phillinux wrote: I'm trying to write a bash shell script to create user accounts that calls 2 functions. I can't call these functions from the script or the command line. The set command seems to show the loaded script in the shell (loaded with . FunctionName at command line) with other

Re: Colours in VIM

2008-02-04 Thread William Pursell
Raj Kiran Grandhi wrote: Pantor wrote: Hi lads, is it possible to make coloured text in VIM? For example: This sentence is in red color. This sentence is in black color. The first should be in red. For colors and fancy formatting, something like openoffice would be more suited. VIM is a

Re: [OT] Using aliases or functions in bash script

2008-01-26 Thread William Pursell
T o n g wrote: On Wed, 23 Jan 2008 20:47:15 -0900, Ken Irving wrote: An advanced bash alias expansion question -- How can I use my aliases or functions in my bash script? PS. I even tried the following but it didn't work either: $ bash -O expand_aliases -c '. ~/.bashrc; (rd /tmp/ttt;

Re: [OT] Using aliases or functions in bash script

2008-01-26 Thread William Pursell
T o n g wrote: An advanced bash alias expansion question -- How can I use my aliases or functions in my bash script? PS. I even tried the following but it didn't work either: $ bash -O expand_aliases -c '. ~/.bashrc; (rd /tmp/ttt; alias rd; dt bin; type dt)' The point of my previous

Re: (tcl) modules

2007-11-24 Thread William Pursell
Michael Bane wrote: Does anybody know of 'modules' [1] ready rolled for Debian (etch preferably)? From the man page: Sounds a lot like usepackage. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Re: what's your favourite FLOSS?

2007-11-11 Thread William Pursell
Tshepang Lekhonkhobe wrote: Here's a template where you can fill in your favourites; feel free to add missing categories: desktop OR window manager: wmii development: autotools/git mathematics: dc misc utilities: sed p2p: bit torrent package manager: aptitude terminal emulator: screen text

Re: Programmers Text Editor

2007-11-04 Thread William Pursell
Richard wrote: What editors (IDE or RAD) environment application would work or if needed to run 2 or 3 different editors that would be fine too. (please no: emacs or vi (or command line apps) wanting something that would be better than xcode on the mac, which contain all libraries, and

Re: Help with Debian Install

2007-10-20 Thread William Pursell
Ed wrote: Is there a different install image I should download and use. I was not too keen on downloading the 20+ cd images for a complete CD install. Do you know which ones I would need just for gnome and firefox for starters? I didn't notice anyone address this yet-- You can get a full

Re: The effectiveness of 'make uninstall' command

2007-10-08 Thread William Pursell
Amit Uttamchandani wrote: Hey guys, I recently compiled a bunch of software on my Debian Etch system for testing. After testing I wanted to remove them and I have been running the 'make uninstall' command in the source code directory of the respective application. I was curious as to how

Re: df -h listing

2007-10-08 Thread William Pursell
roberto wrote: hello i use the df -h or du -hcommand to check how much disk space is occupied by files and directories but is it possible to sort the output list in an order such that the first (or conversely the last) item is the largest in size ? thank you Unfortunately, df will often

Re: Search for string in files

2007-09-25 Thread William Pursell
Johannes Tax wrote: I'm trying to figure out how to find a certain string inside a bunch of files. If I, for examples, look for a certain function in a large source tree, I could do cat `find . -name '*.c'` | grep 'a_certain_function' but this seems quite awkward, furthermore it doesn't help

Re: bash vs. python scripts - which one is better?

2007-08-11 Thread William Pursell
Vincent Lefevre wrote: Not every system has bash. If this is for compatibility, you can learn POSIX sh, but e.g. Solaris /bin/sh is not a POSIX sh. For this reason and because POSIX sh is limited (you can't execute a command and have a timeout on it), Here is a method for doing a timeout.

Re: [OT] A significant negative impact on Linux's popularity?

2007-07-16 Thread William Pursell
David Brodbeck wrote: On Jul 14, 2007, at 7:43 PM, Paul Johnson wrote: I've yet to collide with another cyclist who was following the rules. I have to say that, as a driver, it's the unpredictability of cyclists I find distressing. As a cyclist, I find the unpredictability of drivers

Re: format grep ouput

2007-07-16 Thread William Pursell
BartlebyScrivener wrote: On Jul 15, 4:20 pm, Jeff D [EMAIL PROTECTED] wrote: probably the easiest thing to do is write up a little wrapper for grep like so: #!/bin/sh if [ -z $1 ] ; then echo please enter file type exit 1 fi if [ -z $2 ] ; then echo please

Re: [OT] A significant negative impact on Linux's popularity?

2007-07-16 Thread William Pursell
David Brodbeck wrote: On Jul 16, 2007, at 5:21 AM, William Pursell wrote: David Brodbeck wrote: On Jul 14, 2007, at 7:43 PM, Paul Johnson wrote: I've yet to collide with another cyclist who was following the rules. I have to say that, as a driver, it's the unpredictability of cyclists I

Re: format grep ouput

2007-07-16 Thread William Pursell
andy baxter wrote: grep -R 'the' * | (of=; while read f l ; do if [ $f != $of ] ; then echo ; fi; echo $f $l ; of=$f; done) will put a linebreak after every new filename, as long the none of the filenames have spaces in. This puzzled me for a while: [EMAIL PROTECTED]:~/tmp$ cat input

Re: dir command

2007-07-15 Thread William Pursell
Manon Metten wrote: Is there a bash command available that shows the contents of the given dir recursively, telling me how many files are in there and the byte size occupied? For the total number of files: $ find . -type f | wc -l For the total number of directories: $ find . -type d | wc

Re: format grep ouput

2007-07-15 Thread William Pursell
BartlebyScrivener wrote: I'm playing with recursive grep. Still fairly new to Etch. When I grep text files and get a dozen or so results, they print to the screen as a dense block of text. I found the color option, which helps, but is there a way to separate each result with a blank line, or

Re: Regex Question

2007-07-13 Thread William Pursell
Telly Williams wrote: I'm reading up on Regular Expressions and I have a question about alternation. I have the sentences: There was a dog in the house. A house on the hill. Both of these are in a file (named regex) on two different lines. My understanding

Re: Script polluted by DOS formatting

2007-07-13 Thread William Pursell
Mike McCarty wrote: William Pursell wrote: When you open the file in vim, type: :set fileformat It will probably report: fileformat=dos Then type :set fileformat=unix When you write the file, the CRNL dos style line terminators will be replaced by CR only. I suppose you mistyped LF only

Re: Script polluted by DOS formatting

2007-07-12 Thread William Pursell
Francesco Pietra wrote: A script downloaded to a desktop i386/etch/gnome from Amber web site, edited on the desktop with gnome text editor, then sent scp to a computing machine amd64, turned out to be polluted by DOS formatting. The computing program was prevented from reading the polluted

Re: system resource measurement

2007-07-11 Thread William Pursell
Mark Grieveson wrote: Another one to try would be htop (http://htop.sourceforge.net), which you'll find in the repositories. Thanks. That one's quite good -- and colourful, too! I don't think anyone has mentioned vmstat on this thread. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a

Re: FileSystem Question

2007-07-01 Thread William Pursell
Glen Pfeiffer wrote: On 06/30/2007 03:00 PM, William Pursell wrote: Keep in mind that CVS is extremely old, and entirely obsolete. Subversion was a new implementation of the same idea, and did in fact address many of CVS's shortcomings. I second that. However, if you are going to look

Re: FileSystem Question

2007-07-01 Thread William Pursell
Cousin Stanley wrote: I was (and I suppose still am) a huge fan of subversion. I loved RCS, hated CVS, and found subversion to be a God-send I started using git about 3 weeks ago William Under Debian Etch I see the following packages listed git-arch

Re: Updating without Apt

2007-06-30 Thread William Pursell
Andrew Gray wrote: My name is Andrew, and I use Debian Lenny on an x86 machine. I love Debian. I love apt. The Debian/Apt combination has allowed me to use software I would have never before dreamed to be possible to use. I'm quite content with my system at the moment. My problem comes when a

Re: FileSystem Question

2007-06-30 Thread William Pursell
Douglas Allan Tutty wrote: On Sat, Jun 30, 2007 at 05:29:58PM +, Manon Metten wrote: On 6/29/07, Douglas Allan Tutty [EMAIL PROTECTED] wrote: On Fri, Jun 29, 2007 at 06:45:03PM +, Manon Metten wrote: I've never used it but you can probably use a CVS repository for this more

/var/log/{syslog,messages}

2007-06-26 Thread William Pursell
I have a box that powers down pretty regularly, and is rarely up for more than 24 hours. I usually shutdown via /sbin/shutdown from the command line, but occasionally I'll use the rodent from a kdm screen. I noticed that /var/log/messages contains far more shutting down for system halt

Re: From FreeBSD 6 to Debian 4

2007-06-15 Thread William Pursell
Philippe Lang wrote: 1) First of all, there is a nice feature under FreeBSD: on a shell, command history can be filtered with a few characters, when using the up arrow. For example, if you rember you restarted a deamon before, you can type /etc/i and then press the up arrow key. Only past

Re: Comparing files in two directories

2007-06-15 Thread William Pursell
L.V.Gandhi wrote: On 6/14/07, *William Pursell* [EMAIL PROTECTED] L.V.Gandhi wrote: On 6/14/07, *William Pursell* [EMAIL PROTECTED] wrote: L.V.Gandhi wrote: I have two directories A and B. In each directory, I have nearly 1000 files

Re: Comparing files in two directories

2007-06-14 Thread William Pursell
L.V.Gandhi wrote: I have two directories A and B. In each directory, I have nearly 1000 files with same names. I would like to compare both directories and find out which files differ more than say 5 lines. I use kompare and see manually. How to do it in command line easily? Here's a

Re: some problem in scripting.

2007-06-14 Thread William Pursell
L.V.Gandhi wrote: I created a .csv file in this format from a original file from the net. The last field here is the last field in original file also. I made this file as original file has empty lines and single field lines also. SYMBOL,HIGH_PRICE,LOW_PRICE,HI_52_WK,LO_52_WK

Re: Comparing files in two directories

2007-06-14 Thread William Pursell
L.V.Gandhi wrote: On 6/14/07, *William Pursell* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: L.V.Gandhi wrote: I have two directories A and B. In each directory, I have nearly 1000 files with same names. I would like to compare both directories and find out which

Re: Basic SELinux Question

2007-06-14 Thread William Pursell
Douglas Allan Tutty wrote: On Thu, Jun 14, 2007 at 03:22:11PM -0600, Telly Williams wrote: I was going to use an SE Linux mailing list for this, but, figured I'd ask on this list first, figuring that I may have a better chance of not getting a biased answer. I've heard all of this talk

Re: [solved] exim4 config (?)

2007-06-11 Thread William Pursell
Kumar Appaiah wrote: William Pursell bill.pursell at gmail.com writes: I'm still confused as to why gmail is in the picture at all when I run mailx. I did set smtp.gmail as my smtp smarthost when I ran dpkg-reconfigure, but the only reference to gmail in /etc/exim4 is in update-exim4.conf.conf

Re: [SOLVED] Re: selecting default browser under icedove

2007-06-10 Thread William Pursell
andy wrote: Florian Kulzer wrote: On Sun, Jun 10, 2007 at 09:48:48 +0100, andy wrote: I am wanting Icedove to launch Galeon or Iceweasel as the external browser, but it launches Konqueror instead. snip See Arthur Marsh's recent message:

exim4 config (?)

2007-06-10 Thread William Pursell
I'm not sure if the following problem is an exim4 configuration issue, and I'm hoping for some pointers on where to look. I normally use icedove and pop my mail from gmail, and things work fine. When I tried to send mail using: $ mail [EMAIL PROTECTED] file The mail was returned to me with:

Re: exim4 config (?)

2007-06-10 Thread William Pursell
Douglas Allan Tutty wrote: On Sun, Jun 10, 2007 at 09:30:59PM +0100, William Pursell wrote: I normally use icedove and pop my mail from gmail, and things work fine. When I tried to send mail using: $ mail [EMAIL PROTECTED] file The mail was returned to me with: SMTP error from remote mail

Re: list running applications

2007-05-17 Thread william pursell
BartlebyScrivener wrote: I have been play with the ps command and trying various options. Is there an option combo that will show me just the running applications: firefox, gvim, mutt, etc? Or another Linux command that will show me just the applications I have opened in various terminals? I'm

Re: installing JRE

2007-05-14 Thread william pursell
Greg Folkert wrote: On Mon, 2007-05-14 at 06:58 +0100, william pursell wrote: Greg Folkert wrote: then i type fakeroot make-jpkg jre-1_5_0_09-linux-i586.bin which i assume changes it into a .deb file? and the terminal then tells me: -su: fakeroot: command not found whats going wrong? D

Re: escape characters in sed

2007-05-13 Thread william pursell
Hans du Plooy wrote: I'm trying to do a search/replace on some text. Looks like this: 1.2.3.4(1.2.3.4) To my mind, this should replace the '(' with a space sed 's/\\)/ / But it does nothing. Why? How do I do this? $ echo 1.2.3.4(1.2.3.4) | sed 's/(/ /' 1.2.3.4 1.2.3.4) $ echo

Re: escape characters in sed

2007-05-13 Thread william pursell
Hans du Plooy wrote: Typo, sorry. Should be: sed 's/\\(/ /' Still doesn't work though :-) I guess the question should be, how to excape a ( character? With a backslash! The thing is, if you include the single quotes, you don't need to escape it through the shell, but if you drop the

Re: installing JRE

2007-05-13 Thread william pursell
Greg Folkert wrote: then i type fakeroot make-jpkg jre-1_5_0_09-linux-i586.bin which i assume changes it into a .deb file? and the terminal then tells me: -su: fakeroot: command not found whats going wrong? D: Try /usr/bin/fakeroot, and make sure fakeroot is installed. -- To UNSUBSCRIBE,

Re: [OT] Screen (was Affecting Inst. Change)

2007-05-12 Thread william pursell
Ron Johnson wrote: On 05/11/07 19:36, s. keeling wrote: Ron Johnson [EMAIL PROTECTED]: On 05/11/07 12:49, s. keeling wrote: Ron Johnson [EMAIL PROTECTED]: How do you limit the number of batch jobs that can run at any one time? (If the job limit of a queue is 4 and you submit 20 jobs,

Re: [OT] Screen (was Affecting Inst. Change)

2007-05-10 Thread william pursell
Tyler Smith wrote: Second, and more to the (OT) point, what does screen do better than multiple xterms, or shell-mode in Emacs? Possibly the nicest feature of screen is the ability to detach it, and the ability to attach multiple times. For example, you can run a screen session, start a

[OT] inline python (was Re: [ in /usr/bin Question)

2007-05-10 Thread william pursell
Bob McGowan wrote: So, a question: Can python 'run' code directly from the command line, as Perl does with the -e option? Yes: python -c 'print !dlrow olleH[::-1]' -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]