![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Aug 2024
Device: kobo clara colour
|
how to execute a bash script in koreader
I am developing a program that runs on the kobo, from terminal I can execute it without any problem so I made a little script with the `#!/bin/sh` ad the top to make it easier to launch it with the correct arugments, with koreader I see the option to launch it but it stops with code 127, do you know what does it mean and how can I fix this?
|
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Aug 2024
Device: kobo clara colour
|
I figured it out, I dont' know why I thought the code 127 was about koreader, it was obviously the "command not found" code, so I added a cd command to the correct directory and now it works
|
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,658
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Anything interesting in the script?
![]() |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Sep 2023
Device: none
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to execute a script on wakeup | Kindleschokolade | Kindle Developer's Corner | 0 | 01-30-2022 07:06 PM |
K3 execute script when (un)plugged | logpig | Kindle Developer's Corner | 1 | 03-07-2021 01:13 PM |
Can calibre run a bash script when it's started? | Suffolk Punch | Calibre | 4 | 04-03-2015 02:55 PM |
PRS-T1 Factory reset - possible to execute via script? | bookler | Sony Reader Dev Corner | 1 | 07-04-2012 12:48 PM |
Is it possible to execute a bash script from the SD card? | godel10 | iRex | 25 | 06-25-2009 03:55 PM |