Re: bash help please
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 is to use 'set -x' there in the script. It can go anywhere
> above your problem and will show each line as it is executed. The
> contents of ${InMail} that are actually getting passed to test will be
> visible.
>
> Regards,
> Lars
I am about to call up a copy of amrecover, and restore that script to one
that was working last week, I cannot get by the syntax errors between fi
& done in a while loop with a bunch of if-then-elif-fi's in it. Last
weeks wasn't perfect, but it did work, and everytime I look something up
in a man bash & try to fix it, its worse.
The set -x helped, and maybe I can use that to see what the original is
doing.
So for now, thanks all.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
Reply to: