Re: scripts don't execute. Solved, buy why?

2016-06-24 Diskussionsfäden Thomas Lange
> On Fri, 24 Jun 2016 17:33:44 +, Ronald Steele 
>  said:

> File uclient01/50-copy-file has unsupported type ASCII text.
I guess you missed the first line #! /bin/bash
or the file tools now does not detect shell scripts correct.

-- 
regards Thomas


Re: scripts don't execute. Solved, buy why?

2016-06-24 Diskussionsfäden Ronald Steele
I just found the following line fai.log (which I didn’t see the other 20 times 
I gripped the log)

File uclient01/50-copy-file has unsupported type ASCII text.

So, I copied an exiting file to the one I wanted and changed the 
contents.  This works.  I’m stumped as to why.

Surely Linux doesn’t store text encoding as part of the file type.  Isn’t ASCII 
a subset of UTF-8?

I’d love an explanation.  

Thanks,
Ron

P.S.  I’m using GNU emacs as the editor which created the original, problem, 
file.



> On Jun 24, 2016, at 1:12 PM, Thomas Lange  
> wrote:
> 
>> On Fri, 24 Jun 2016 13:59:11 +, Ronald Steele 
>>  said:
> 
>> The script’s file permissions are the same as the existing scripts.  The 
>> class name is defined in .../class/50-host-classes and appears in the log 
>> files in variables.log and fai.log (but never in shell.log).
> Check if you are using the correct config space.
> 
> -- 
> regards Thomas
> 
> 
> -- 
> BEGIN-ANTISPAM-VOTING-LINKS
> --
> 
> Teach CanIt if this mail (ID 0aRaFcFRs) is spam:
> Spam:
> https://antispam.roaringpenguin.com/canit/b.php?i=0aRaFcFRs=fa50d75027b1=20160624=s
> Fraud/Phish: 
> https://antispam.roaringpenguin.com/canit/b.php?i=0aRaFcFRs=fa50d75027b1=20160624=p
> Not spam:
> https://antispam.roaringpenguin.com/canit/b.php?i=0aRaFcFRs=fa50d75027b1=20160624=n
> Forget vote: 
> https://antispam.roaringpenguin.com/canit/b.php?i=0aRaFcFRs=fa50d75027b1=20160624=f
> --
> END-ANTISPAM-VOTING-LINKS
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: scripts don't execute

2016-06-24 Diskussionsfäden Thomas Lange
> On Fri, 24 Jun 2016 13:59:11 +, Ronald Steele 
>  said:

> The script’s file permissions are the same as the existing scripts.  The 
class name is defined in .../class/50-host-classes and appears in the log files 
in variables.log and fai.log (but never in shell.log).
Check if you are using the correct config space.

-- 
regards Thomas


Re: scripts don't execute

2016-06-24 Diskussionsfäden Denny Bortfeldt
Can you upload your fai.log, shell.log and an output of your scripts folder?

2016-06-24 18:48 GMT+02:00 Ronald Steele :

> Yes, it’s excitable. That was my first thought too.
> ls -l reports
> -rwxr-xr-x 1 root root …
>
> The same permissions are on the directory, which matches all the other
> script directories.
>
> Ron
>
>
> On Jun 24, 2016, at 10:16 AM, Denny Bortfeldt  wrote:
>
> Are you sure that your script in /- got chmod +x ?
> Without execution flag the script will not get executed.
>
> 2016-06-24 15:59 GMT+02:00 Ronald Steele :
>
>> I’m trying to use scripts to install application software.   The scripts
>> never get executed.
>> If I embed the same script code into to one of the existing scripts (say
>> CENTOS) the code works, however any scripts I create are never executed.
>> The script’s file permissions are the same as the existing scripts.  The
>> class name is defined in .../class/50-host-classes and appears in the log
>> files in variables.log and fai.log (but never in shell.log).
>>
>> Thanks for any ideas.
>>
>> Ron
>>
>>
>>
> --
>
> Spam
> 
> Phish/Fraud
> 
> Not spam
> 
> Forget previous vote
> 
>
>
>


Re: scripts don't execute

2016-06-24 Diskussionsfäden Ronald Steele
Yes, it’s excitable. That was my first thought too.
ls -l reports
-rwxr-xr-x 1 root root …

The same permissions are on the directory, which matches all the other script 
directories.

Ron


> On Jun 24, 2016, at 10:16 AM, Denny Bortfeldt  wrote:
> 
> Are you sure that your script in /- got chmod +x ? Without 
> execution flag the script will not get executed.
> 
> 2016-06-24 15:59 GMT+02:00 Ronald Steele  >:
> I’m trying to use scripts to install application software.   The scripts 
> never get executed.
> If I embed the same script code into to one of the existing scripts (say 
> CENTOS) the code works, however any scripts I create are never executed.
> The script’s file permissions are the same as the existing scripts.  The 
> class name is defined in .../class/50-host-classes and appears in the log 
> files in variables.log and fai.log (but never in shell.log).
> 
> Thanks for any ideas.
> 
> Ron
> 
> 
> 
> 
> Spam 
> 
> Phish/Fraud 
> 
> Not spam 
> 
> Forget previous vote 
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: scripts don't execute

2016-06-24 Diskussionsfäden Denny Bortfeldt
Are you sure that your script in /- got chmod +x ? Without
execution flag the script will not get executed.

2016-06-24 15:59 GMT+02:00 Ronald Steele :

> I’m trying to use scripts to install application software.   The scripts
> never get executed.
> If I embed the same script code into to one of the existing scripts (say
> CENTOS) the code works, however any scripts I create are never executed.
> The script’s file permissions are the same as the existing scripts.  The
> class name is defined in .../class/50-host-classes and appears in the log
> files in variables.log and fai.log (but never in shell.log).
>
> Thanks for any ideas.
>
> Ron
>
>
>


scripts don't execute

2016-06-24 Diskussionsfäden Ronald Steele
I’m trying to use scripts to install application software.   The scripts never 
get executed.
If I embed the same script code into to one of the existing scripts (say 
CENTOS) the code works, however any scripts I create are never executed.
The script’s file permissions are the same as the existing scripts.  The class 
name is defined in .../class/50-host-classes and appears in the log files in 
variables.log and fai.log (but never in shell.log).

Thanks for any ideas.

Ron




smime.p7s
Description: S/MIME cryptographic signature