Thanks for replying! It does have the correct shebang, and runs fine from the command line. If I could include spaces in the file url, then I could run "/usr/bin/sh /path/to/my/script.sh". But I I don't know how to do that in a url line without converting to to %20 , which the OS wouldn't understand.
On Saturday, January 23, 2021 at 10:04:23 AM UTC-8 jwd wrote: > What you may be looking for is the correct "Shebang > <https://en.wikipedia.org/wiki/Shebang_(Unix)>" line at the top of the > script that determines the interpreter to use (assuming the executable bit > has been set.) > > Typically I would use something like > #!/usr/bin/env bash > or, if you want to be specific > #!/path/to/your/systems/bash > > The former will use the bash executable found first in the PATH of the > environment of the TiddlyDesktop process; the latter would be preferred > unless the script might run on systems where the path to the interpreter my > differ, e.g., Macs have an old version of bash by default; while different > Linux distributions' bash may be in /bin or /usr/bin. > > HTH > On Friday, January 22, 2021 at 5:14:22 AM UTC-5 TiddlyTweeter wrote: > >> Ciao Mark S. >> >> I really looked into it. TBH I can't truthfully reply to your simple >> question. >> >> Background: I using (mainly) Timimi to launch from TW (it is fairly >> complex & now retired in the recent version); TiddlyDesktop (fussy, mainly >> because it is Chrome inside?); BobEXE (very flexible on scripting; best of >> the batch; but overkill for most of my limited needs). >> >> Outcome: too many variants to address your basic query simply. >> >> Best wishes >> TT >> On Monday, 18 January 2021 at 19:30:32 UTC+1 Mark S. wrote: >> >>> I don't suppose you remember if there was a way to insert spaces? A sh >>> script should always know to run itself, but if I could specify >>> "/usr/bin/bash ....myshellscript.sh " that should force the system to >>> invoke it correctly. >>> >>> Thanks! >>> >> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8d4555d4-77c4-4cfa-9d7e-26553a6e2d4dn%40googlegroups.com.

