Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-04-2024, 02:36 PM   #1
madtsu
Junior Member
madtsu began at the beginning.
 
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?
madtsu is offline   Reply With Quote
Old 08-05-2024, 06:10 AM   #2
madtsu
Junior Member
madtsu began at the beginning.
 
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
madtsu is offline   Reply With Quote
Old 08-05-2024, 10:32 AM   #3
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,675
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Anything interesting in the script?
Frenzie is offline   Reply With Quote
Old 08-06-2024, 07:52 AM   #4
galax
Enthusiast
galax began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Sep 2023
Device: none
Quote:
Originally Posted by Frenzie View Post
Anything interesting in the script?
I am curious too, what's the script about it?

And how did you correct the 'cd' command in the script? Do you mind sharing a snippet?
galax is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute a script on wakeup Kindleschokolade Kindle Developer's Corner 0 01-30-2022 08:06 PM
K3 execute script when (un)plugged logpig Kindle Developer's Corner 1 03-07-2021 02:13 PM
Can calibre run a bash script when it's started? Suffolk Punch Calibre 4 04-03-2015 03:55 PM
PRS-T1 Factory reset - possible to execute via script? bookler Sony Reader Dev Corner 1 07-04-2012 01:48 PM
Is it possible to execute a bash script from the SD card? godel10 iRex 25 06-25-2009 04:55 PM


All times are GMT -4. The time now is 03:53 PM.


MobileRead.com is a privately owned, operated and funded community.