Re: bash scripting question

2002-10-26 Thread Steve Borho
On Wed, Oct 23, 2002 at 09:06:03PM -0500, christopher j bottaro wrote: > hello, > first off, are there any mailing lists where i can ask questions about bash > scripting? any good mailing list that deal with programming c in linux? > > anyways, i want to assign the exit status of a command in a

Re: bash scripting question

2002-10-24 Thread Andrew MacKenzie
> > You can't do that. Bash has a builtin variable ("$?") for holding the exit > > status, which you can then reassign to another variable if you need to > > store it for later use. For example: > > > > x=$? > > ok, but what if i want to capture the exit status of grep in the following > comm

Re: bash scripting question

2002-10-24 Thread Todd A. Jacobs
On Wed, 23 Oct 2002, christopher j bottaro wrote: > configure exited successfully, but also tee its output to a file and > grep it for any warnings about missing packages before i go on to > compile it. I think you're making it more complicated than it needs to be. You can create it as a series

Re: bash scripting question

2002-10-23 Thread christopher j bottaro
On Wednesday 23 October 2002 10:04 pm, Todd A. Jacobs wrote: > I spend a lot of time on the Moongroup shell.scripting list at: > > http://moongroup.com/mailman/listinfo/shell.scripting cool, i just joined that. > You can't do that. Bash has a builtin variable ("$?") for holding the exit > sta

Re: bash scripting question

2002-10-23 Thread Andrew MacKenzie
> hello, > first off, are there any mailing lists where i can ask questions about bash > scripting? any good mailing list that deal with programming c in linux? > > anyways, i want to assign the exit status of a command in a variable as an > integer. i tried the following: > let x=`./configure

Re: bash scripting question

2002-10-23 Thread Todd A. Jacobs
On Wed, 23 Oct 2002, christopher j bottaro wrote: > first off, are there any mailing lists where i can ask questions about > bash scripting? I spend a lot of time on the Moongroup shell.scripting list at: http://moongroup.com/mailman/listinfo/shell.scripting > anyways, i want to assign the

Re: bash scripting question

2002-10-23 Thread Roger
Around Wed,Oct 23 2002, at 09:06, christopher j bottaro, wrote: > hello, > first off, are there any mailing lists where i can ask questions about bash > scripting? any good mailing list that deal with programming c in linux? > > anyways, i want to assign the exit status of a command in a varia

Re: bash scripting question

2002-10-23 Thread Bret Hughes
On Wed, 2002-10-23 at 21:06, christopher j bottaro wrote: > hello, > first off, are there any mailing lists where i can ask questions about bash > scripting? moongroup.com shell-scripting list really low volume but some VERY sharp folks there. Several of which pop up on this list occasionally

RE: bash scripting question

2002-10-23 Thread Chad Skinner
> anyways, i want to assign the exit status of a command in a > variable as an > integer. i tried the following: > let x=`./configure --prefix=$1` > but it doesn't work. according to my book if ./configure --prefix = $1 then ... else ... fi -- redhat-list mailing list unsubscribe ma

bash scripting question

2002-10-23 Thread christopher j bottaro
hello, first off, are there any mailing lists where i can ask questions about bash scripting? any good mailing list that deal with programming c in linux? anyways, i want to assign the exit status of a command in a variable as an integer. i tried the following: let x=`./configure --prefix=$1`

Re: Bash scripting question

2000-11-13 Thread Charles Galpin
Hi Russ Use any one of your existing autoreply recipes (that I know you already have:) ) as a starting point. What you want to do is extract the address of the person to replay to, and execute your script. It's that easy. An UNTESTED guess would be :0: * ^To: send.qym.vet.pics { FROM=`formail

Re: Bash scripting question

2000-11-12 Thread Bret Hughes
[EMAIL PROTECTED] wrote: > On Sat, 11 Nov 2000, Marco Shaw wrote: > > Mutt will help you here: > > #>for each in `find . -name "*.jpg"` > > >do > > >mutt -a $each -s "your subject" to_address < /dev/null > > >done > > This will recursively go through the present working directory, and ema

Re: Bash scripting question

2000-11-12 Thread Marco Shaw
I'm going to think about this one... I don't think procmail is the correct route, and would think that sendmail and/or a listserv app like majordomo would be the better route. I know there's an app (custom?) that responds to commands when you specify them in the body of the email, but I don't kn

Re: Bash scripting question

2000-11-11 Thread Marco Shaw
Mutt will help you here: #>for each in `find . -name "*.jpg"` >do >mutt -a $each -s "your subject" to_address < /dev/null >done This will recursively go through the present working directory, and email all jpgs as attachments to the email address replacing 'to_address'. This will send them one-

RE: Bash scripting question

2000-11-11 Thread Mike Lewis
PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Bash scripting question I'd like something like this also. Please let me know if you find anything. Thanks. -- -Time flies like the wind. Fruit flies like a banana. Stranger things have - -happened but none stranger than this. Does your driver's l

Re: Bash scripting question

2000-11-11 Thread Steven W. Orr
I'd like something like this also. Please let me know if you find anything. Thanks. -- -Time flies like the wind. Fruit flies like a banana. Stranger things have - -happened but none stranger than this. Does your driver's license say Organ -Donor?Black holes are where God divided by zero. List