On Fri, 4 Nov 2016 19:51:50 -0500
Richard Owlett <rowl...@cloud85.net> wrote:
>Today I've been having weird problems executing scripts.
>As I have no valuable data on the partition containing Debian, I
>wiped it and did a fresh install of Debian Jessie (8.6.0) MATE
>desktop environment from a purchased set of DVDs. Earlier today I
>had had reason to create an *,iso of DVD1 of 13 using xorriso.
>The ISO had a MD5SUM matching the one at debian.org .
>
>More than a half-century of trouble shooting *screams* 'operator
>error' ;[
>But what????? [Caja reports the execute bit is set ;]
>
>Cut-n-paste from MATE terminal:
>root@full-jessier:~# #!/bin/bash -x
>root@full-jessier:~# cd /media/root/myrepo
>root@full-jessier:/media/root/myrepo# RCO
Try specifying the full path name to the script, as in:
root@full-jessier:~# /media/root/myrepo/RCO
or
root@full-jessier:~# cd /media/root/myrepo
root@full-jessier:/media/root/myrepo# ./RCO
>bash: RCO: command not found
>root@full-jessier:/media/root/myrepo# ls
>lost+found new file RCO x2 xtract2 (copy)
>root@full-jessier:/media/root/myrepo#
>
>
>The content of RCO [with Linux line endings] is:
>
>F='dvd8_'
>N=0
>E='.iso'
>echo ""
>while true
> do
> read -p "press Enter (Ctrl+C to exit)" dummyvar
> let N=N+1
> FILENAME=$F$N$E
> echo $FILENAME
> echo ""
> echo "*********************"
> done
>
>
>Assistance appreciated.
>
>
Thanks,
Jason