Ok, got the other USB stick to work after some fiddling, probably connector issue (I said it was old). So USB stick is more flaky than webOS USB implementation in this case ;-)
Originally Posted by Wheel_nut
Downloaded the scripts again after I deleted the old ones and went to the whole procedure again and did the chmod for both files without errors.
Both scripts come back with the same message:
Line 1: Can't open !doctype: No such file
Line 1: html: not found
Line 2: can't open html: no such file
Line 3: syntax error: unexpected new line
and then it returns to command prompt.
It looks like a parsing problem.
This is what I did:
I downloaded the files on the TP in the default /media/internal/download
Renamed the files in Gemini as Internalz doesn't let you rename files in the same folder
Copied files with Internalz to /usr/bin
Applied chmod on both files
Tried to start your script which returned above error.
I'm not too fuzzy about it because either way you need to open xterm and enter commands, your scripts are somewhat more intuitive though.
As another user mentioned it should be possible to launch some scripts from the GUI/webOS, I did some digging. xterm seems to have the ability to execute a file when started. Not sure whether that also would start a script, but I guess it would. Other question is whether this functionality is ported to webOS. Let's assume for a sec.
According to xterm helpfile you can use the -e program [arguments]. If we can create another GUI line in Xecutah besides the 'Start xterm' which not only starts xterm but xterm with -e mountusb [arguments]. Not sure how easy/difficult it is but it's worth asking. Maybe we need some assistance from the Xecutah devs for this. Just my thoughts.