Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #173394

PROGRESS - was [Re: My bash script is missing something - what?]

From Richard Owlett <rowlett@cloud85.net>
Newsgroups linux.debian.user
Subject PROGRESS - was [Re: My bash script is missing something - what?]
Date 2016-10-10 17:00 +0200
Message-ID <sqKdz-2uP-3@gated-at.bofh.it> (permalink)
References <sqIlx-1ni-27@gated-at.bofh.it> <sqIv8-1FC-37@gated-at.bofh.it> <sqIEO-1J7-13@gated-at.bofh.it> <sqIOu-1Mr-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 10/10/2016 8:21 AM, Greg Wooledge wrote:
> On Mon, Oct 10, 2016 at 08:10:33AM -0500, Richard Owlett wrote:
>> On 10/10/2016 8:00 AM, Robert Parker wrote:
>>> you need to do:
>>> ./test.sh
>>> instead.
>>>
>>
>> That just fails differently by responding:
>>
>> : No such file or directory
>
> Carriage return.  Did you edit this script with a Microsoft Windows
> program, perhaps?  The shebang line (#!/bin/bash) probably ends with
> a carriage return + line feed, instead of just a line feed.

You were on the right track.
My editor was gedit under Squeeze.
*HOWEVER*, as my original was saved to a flash drive that I also 
use to transfer information to/from my Windows machines, I had 
saved with Windows' line endings ;/

It now, like the proverbial child, it does what I _told_ it to do 
but not quite what I _wanted_ it to do.

1. What Debian oriented Bash Tutorial should I be reading?
2. What is a clean/neat/??? way to double-click on the file name 
and have it:
      open a terminal window [currently it prompts rather than do]
      run the script
      have window remain open until explicitly dismissed
       [I approximate the last with a "read trashvariable" as 
last line.]
3. As written each line appears in the window followed by 
response on the next line.
   Inelegant ;<

Thanks for all the responses.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

My bash script is missing something - what? Richard Owlett <rowlett@cloud85.net> - 2016-10-10 15:00 +0200
  Re: My bash script is missing something - what? Robert Parker <rlp1938@gmail.com> - 2016-10-10 15:10 +0200
    Re: My bash script is missing something - what? Richard Owlett <rowlett@cloud85.net> - 2016-10-10 15:20 +0200
      Re: My bash script is missing something - what? Robert Parker <rlp1938@gmail.com> - 2016-10-10 15:30 +0200
      Re: My bash script is missing something - what? Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-10 15:30 +0200
        Re: My bash script is missing something - what? Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-10 16:20 +0200
        Re: My bash script is missing something - what? Nicolas George <george@nsup.org> - 2016-10-10 16:20 +0200
        PROGRESS - was [Re: My bash script is missing something - what?] Richard Owlett <rowlett@cloud85.net> - 2016-10-10 17:00 +0200
          Re: PROGRESS - was [Re: My bash script is missing something - what?] Nicolas George <george@nsup.org> - 2016-10-10 17:10 +0200
            Re: PROGRESS - was [Re: My bash script is missing something - what?] Richard Owlett <rowlett@cloud85.net> - 2016-10-10 17:50 +0200
              Re: PROGRESS - was [Re: My bash script is missing something - what?] Peter Hillier-Brook <phb@hbsys.plus.com> - 2016-10-10 18:30 +0200
                Re: PROGRESS - was [Re: My bash script is missing something - what?] Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-10 18:40 +0200
          Re: PROGRESS - was [Re: My bash script is missing something - what?] Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-10 17:10 +0200
            Re: PROGRESS - was [Re: My bash script is missing something - what?] Richard Owlett <rowlett@cloud85.net> - 2016-10-10 17:50 +0200
      Re: My bash script is missing something - what? Lars Noodén <lars.nooden@gmail.com> - 2016-10-10 15:30 +0200
      Re: My bash script is missing something - what? "Thomas Schmitt" <scdbackup@gmx.net> - 2016-10-10 15:40 +0200
  Re: My bash script is missing something - what? Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-10 18:00 +0200
  Re: My bash script is missing something - what? songbird <songbird@anthive.com> - 2016-10-10 18:00 +0200

csiph-web