On May 28, 2019 3:14 PM, Carlos Aguilar <capagp@gmail.com> 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
Have you tried using rc.local? May be easier.
No comments:
Post a Comment