Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #168777
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: bash help please |
| Date | 2016-06-10 06:40 +0200 |
| Message-ID | <rImoG-8ma-13@gated-at.bofh.it> (permalink) |
| References | <rIkGd-74R-1@gated-at.bofh.it> <rIkZz-7t5-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
bash help please Gene Heskett <gheskett@shentel.net> - 2016-06-10 04:50 +0200
Re: bash help please Lars Noodén <lars.nooden@gmail.com> - 2016-06-10 05:10 +0200
Re: bash help please Gene Heskett <gheskett@shentel.net> - 2016-06-10 06:40 +0200
Re: bash help please David Wright <deblis@lionunicorn.co.uk> - 2016-06-10 06:00 +0200
Re: bash help please Gene Heskett <gheskett@shentel.net> - 2016-06-10 07:10 +0200
Re: bash help please David Wright <deblis@lionunicorn.co.uk> - 2016-06-10 07:40 +0200
Re: bash help please Gene Heskett <gheskett@shentel.net> - 2016-06-10 08:40 +0200
Re: bash help please David Christensen <dpchrist@holgerdanske.com> - 2016-06-10 06:10 +0200
Re: bash help please Gene Heskett <gheskett@shentel.net> - 2016-06-10 07:10 +0200
Re: bash help please David Christensen <dpchrist@holgerdanske.com> - 2016-06-11 05:50 +0200
Re: bash help please <tomas@tuxteam.de> - 2016-06-10 09:10 +0200
csiph-web