Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £129! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £179! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

[Mut@nt] HD51 Auto Change Channel Before Going on Standby

  • Thread starter Thread starter ess2k
  • Start date Start date
I am leaving all the text in it as is when i run the file.View attachment 56283
That's a DOS text file.
IF you've copied that back to your PC by FTP to attach it to the email, please do it again but using a binary transfer, so that I get an exact copy of what is on the box.

It's also missing the "#!/bin/sh" line at the start (which won't actually stop it running, but does make it more obvious that it's an actual shell script).
 
That's a DOS text file.
IF you've copied that back to your PC by FTP to attach it to the email, please do it again but using a binary transfer, so that I get an exact copy of what is on the box.

It's also missing the "#!/bin/sh" line at the start (which won't actually stop it running, but does make it more obvious that it's an actual shell script).

Hi I am sure that is binary transfer, Please see image:
bin.webp

I removed the "#!/bin/sh" myself, as in one of my other scripts that was preventing it from running, having said that, i have tried this script with and wthout "#!/bin/sh" and the results are the same.
 
.... so you've confirmed the file on your hd51 is DOS format, not unix.

Notepad++ ..... Use option Edit/EOL conversion to sort it out.

nb very last line has no EOL at all.
 
.... so you've confirmed the file on your hd51 is DOS format, not unix.

Notepad++ ..... Use option Edit/EOL conversion to sort it out.

nb very last line has no EOL at all.

Thank youuu!!! @css and @birdman

I am sure i have mentioned before that i am exploring new territory with all this. You were right it was a dos file (as the windows option was grayed out) converted it unix and sent to box and now it runs with no error whats so ever!

@birdman
That would remove the last two error lines (but leave you with an empty outfile file).

will these files be overwritten every time the script runs? or will they accumulate?

Thank you so much guys, i think i am almost done!
 
.... you'll only ever have one copy of each file.
 
I removed the "#!/bin/sh" myself, as in one of my other scripts that was preventing it from running, having said that, i have tried this script with and wthout "#!/bin/sh" and the results are the same.
Well all scripts should start with a "#!" line, as the rest of that line says which interpreter to use to run the script. Historically there only was /bin/sh, so that gets used by default (or if it starts with ": ", which is actually the comment character is sh).
 
will these files be overwritten every time the script runs? or will they accumulate
They are deleted after creating the output file. Which is why you need to ensure you create empty ones at the start, since their absence may cause an error.
 
Well all scripts should start with a "#!" line, as the rest of that line says which interpreter to use to run the script. Historically there only was /bin/sh, so that gets used by default (or if it starts with ": ", which is actually the comment character is sh).

The reason i was getting an error on my other script with "#!/bin/sh" at the beginning, was because it was a dos file and not a unix file. I converted both to unix files and have added "#!/bin/sh" to the beginning and they work fine now.

Thank you for your patience with me, I have learnt a lot.
 

OpenViX Feeds Status

Back
Top