Re: bash help please

2016-06-10 Thread David Christensen
On 06/09/2016 10:04 PM, Gene Heskett wrote: > And I just amrecover'd a week old version that is working fairly well On 06/09/2016 10:06 PM, Gene Heskett wrote: On Friday 10 June 2016 00:00:12 David Christensen wrote: If that doesn't help, post a complete script that demonstrates the problem.

Re: bash help please

2016-06-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jun 09, 2016 at 10:41:27PM -0400, Gene Heskett wrote: > Greetings; > > A bash script that has worked most of a decade now refuses. > > For instance, assume that var InMail is = "gene", and can be echoed from > the command line using $InMail

Re: bash help please

2016-06-09 Thread Gene Heskett
On Friday 10 June 2016 01:34:14 David Wright wrote: > On Fri 10 Jun 2016 at 01:04:40 (-0400), Gene Heskett wrote: > > On Thursday 09 June 2016 23:50:35 David Wright wrote: > > > On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote: > > > > A bash script that has worked most of a decade now r

Re: bash help please

2016-06-09 Thread David Wright
On Fri 10 Jun 2016 at 01:04:40 (-0400), Gene Heskett wrote: > On Thursday 09 June 2016 23:50:35 David Wright wrote: > > On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote: > > > A bash script that has worked most of a decade now refuses. > > > > > > For instance, assume that var InMail is =

Re: bash help please

2016-06-09 Thread Gene Heskett
On Friday 10 June 2016 00:00:12 David Christensen wrote: > On 06/09/2016 07:41 PM, Gene Heskett wrote: > > A bash script that has worked most of a decade now refuses. > > > > For instance, assume that var InMail is = "gene", and can be echoed > > from the command line using $InMail like this. > >

Re: bash help please

2016-06-09 Thread Gene Heskett
On Thursday 09 June 2016 23:50:35 David Wright wrote: > On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote: > > A bash script that has worked most of a decade now refuses. > > > > For instance, assume that var InMail is = "gene", and can be echoed > > from the command line using $InMail li

Re: bash help please

2016-06-09 Thread Gene Heskett
On Thursday 09 June 2016 23:08:32 Lars Noodén wrote: > On 06/10/2016 05:41 AM, Gene Heskett wrote: > > gene@coyote:~$ echo `test [${InMail} = "gene"]` > > > > All I get is the linefeed. Obviously I'm losing it, so how do I > > translate and get usefull output for troubleshooting? > > One option i

Re: bash help please

2016-06-09 Thread David Christensen
On 06/09/2016 07:41 PM, Gene Heskett wrote: A bash script that has worked most of a decade now refuses. For instance, assume that var InMail is = "gene", and can be echoed from the command line using $InMail like this. gene@coyote:~$ echo $InMail gene But I'll be switched if I can get a result f

Re: bash help please

2016-06-09 Thread David Wright
On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote: > A bash script that has worked most of a decade now refuses. > > For instance, assume that var InMail is = "gene", and can be echoed from > the command line using $InMail like this. > gene@coyote:~$ echo $InMail > gene > But I'll be swi

Re: bash help please

2016-06-09 Thread Lars Noodén
On 06/10/2016 05:41 AM, Gene Heskett wrote: > gene@coyote:~$ echo `test [${InMail} = "gene"]` > > All I get is the linefeed. Obviously I'm losing it, so how do I > translate and get usefull output for troubleshooting? One option is to use 'set -x' there in the script. It can go anywhere above

RE: BASH help

2006-06-12 Thread Tony Heal
Thanks, that did the trick. Tony Heal Pace Systems Group, Inc. 800-624-5999 [EMAIL PROTECTED] -Original Message- From: Henry Luciano [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 3:52 PM To: [EMAIL PROTECTED] Cc: 'Debian' Subject: Re: BASH help Tony Heal wrote

Re: BASH help

2006-06-12 Thread Henry Luciano
Tony Heal wrote: I know that I run a script and direct it's output to a file /path/script > /path/file is there a way to direct the output to both the screen and a file at the same time? The tee command is what you're looking for. E.g. /path/script | tee /path/file -- Henry Luciano Mot

Re: BASH help

2006-06-12 Thread Michael Marsh
On 6/12/06, Tony Heal <[EMAIL PROTECTED]> wrote: is there a way to direct the output to both the screen and a file at the same time? man tee It's very easy to use. -- Michael A. Marsh http://www.umiacs.umd.edu/~mmarsh http://mamarsh.blogspot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED]

Re: Bash help

1998-04-24 Thread Adrian Bridgett
On Thu, Apr 23, 1998 at 11:23:13AM -0400, BRIAN SCHRAMM wrote: > I am trying to tell if a program is passing back an error in a Bash > script. I would like to branch on receipt of the error to a wait > statement that will give me about 20 seconds and then retry. > > My trouble

Re: Bash help

1998-04-24 Thread E.L. Meijer \(Eric\)
> > I am trying to tell if a program is passing back an error in a Bas= > h > script. I would like to branch on receipt of the error to a wait > statement that will give me about 20 seconds and then retry. > > My trouble is I cannot remember how to detect the error and how to

Re: Bash help

1998-04-23 Thread Gary L. Hennigan
Stephen Carpenter <[EMAIL PROTECTED]> wrote: | to make bash wait a certain amount of time... | sleep(X) # X = number of seconds to "sleep" | as for detecting an error | scripts can return errors just like any program... | I think maybe hmmm I forget exactly how...but I know its no differnt than

Re: Bash help

1998-04-23 Thread Stephen Carpenter
to make bash wait a certain amount of time... sleep(X) # X = number of seconds to "sleep" as for detecting an error scripts can return errors just like any program... I think maybe hmmm I forget exactly how...but I know its no differnt than a program -Steve BRIAN SCHRAMM wrote: > I am tr