Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3371  / 3 Years ago, sun, october 24, 2021, 5:20:18

I am trying to get a command to execute from within my MythTV interface on a Mythbuntu computer.



When I try a test command, touch /home/mythbuntu/test, it doesn't work, and I see this entry in /var/log/mythtv/mythbackend.log:



Jul 19 14:29:35 mythbuntu mythbackend[1863]: W SystemEvent mythsystemevent.cpp:55 (run) MythSystemEventHandler: Command 'touch /home/mythbuntu/test' returned 1


I assume returned 1 means some kind of error status, but a Google search didn't result in anything I could understand.



What does returned 1 mean, and what does it tell me about the command I'm trying to run?


More From » mythbuntu

 Answers
2

It is not in the Ubuntu manpage for touch but the exit status for touch are:




  • 0 The touch utility executed successfully and all requested changes were made.

  • >0 An error occurred. The touch utility returned the number of files for
    which the times could not be successfully modified.



So the 1 is the amount of times touch failed to execute. Most likely you are not using the correct user or group to issue this command with so check user and group permissions of the file you are trying to modify with



ls -l /home/mythbuntu/test


If it is user:group mythtv:mythtv you need to add your user to group mythtv for touch to work.


[#36749] Sunday, October 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dicatandyca

Total Points: 486
Total Questions: 108
Total Answers: 121

Location: Greenland
Member since Wed, Jan 18, 2023
1 Year ago
dicatandyca questions
;