On Tue, May 28, 2019 at 03:14:58PM -0500, Carlos Aguilar wrote:
> Hi,
> 
> I am having lots of problems to execute a shell script at boot time.
> 
> My crontab is as follows;
> >>
> SHELL=/bin/ksh
> 
> @reboot         $HOME/bin/app-ferre
> <<
> My shell script is as follows:
> >>
> #!/bin/ksh
> 
> lua=/usr/local/bin/lua53
> 
> for f in $(ls /home/alberto/app/service-*.lua) ;do
>     echo 'Initializing' $f '\n'
>     $lua $f &
> done
> >>
> 
> Thanks for any help or advice,
> 
> // Carlos

I'm noticing that you don't actually mention what the problem is, or
what your Lua scripts do.

Do you get an error message?

BTW, note that it's safer to use

    #!/bin/ksh

    PATH=$PATH:/usr/local/bin

    for f in /home/alberto/app/service-*.lua; do
        printf '%s\n' "$f"
        lua53 "$f" &
    done

-- 
Kusalananda
Sweden

Reply via email to