Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: hca on August 09, 2011, 07:43:02 AM

Title: [Solved] where to put bash scripts? there in ls but not found for execution?
Post by: hca on August 09, 2011, 07:43:02 AM
Sorry if this is dopey, but i have searched with no joy.


I have 2 TC devices, both thin clients, one has TC in the flash DOM, the other in a usb stick.
I have a installed couple of apps to do the job i require running. all good from command line.

I have them persistent, they are there ok after boot, but where and how to put an executable bash script?

I put the executable 777 bash script to start them in /user/local/sbin as root, but system reports file not found, I try it in /home/tc with the same result, they are there in ls and editable with midnight commander, but i cant get them to run??

Full path ie /usr/local/sbin/xyz or ./xyz report not found.

Do I need to some how make them on loops?



reg, hc. ???

Title: Re: where to put bash scripts? there in ls but not found for execution??javascript:r
Post by: curaga on August 09, 2011, 09:12:12 AM
Sounds like you don't have bash installed.
Title: where to put bash scripts? there in ls but not found for execution??javascript:r
Post by: hca on August 09, 2011, 09:45:21 AM
Curaga,

many thanks, Well I said dopey, never crossed my mind it was not there.

BTW this is a real slick little distro!
Title: Re: [Solved] where to put bash scripts? there in ls but not found for execution?
Post by: Lee on August 09, 2011, 10:25:55 AM
Does your script actually need bash?  If it can run under the default shell (busybox ash) then you can avoid the dependency on bash by changing the shebang to  #!/bin/sh

A quick look in appbrowser tells me that bash weighs in at a half MB so you might not care about that.  For some reason I'd thought it was heavier than that.
Title: Re: [Solved] where to put bash scripts? there in ls but not found for execution?
Post by: hca on August 09, 2011, 11:17:33 AM
yes shell is fine, just habit of using bash all the time.  Its only a kick off script.