Useful Linux commands

  1. Login web - admin SSH - root Password: Rasp4icu

  2. Read the log

logread | grep poll_api
  1. Print log in realtime

logread -f | grep poll_api
  1. Empty log

logread -c
  1. Make the file executable

chmod +x /usr/bin/poll_api.sh
  1. Restart

reboot
  1. Check for hidden extensions like .sh.txt:

ls -la /usr/bin/ | grep poll
  1. If you see ^M at the ends of lines, it's using Windows line endings — and the fix below will resolve it.

cat -A /usr/bin/poll_api.sh

  1. If there’s a syntax error early in the file, it might prevent execution. Try running:

sh /usr/bin/poll_api.sh

If this works, the file is fine but might be missing the #!/bin/sh line.

  1. Remove extra characters Run this command to clean the file:

Last updated