create script to run in /etc/init.d on debian that execute other script in /home/user dir
$50 USD
Ukończony
Opublikowano ponad 8 lat temu
$50 USD
Płatne przy odbiorze
1 - I have several shell scripts, each with a different function, which are in a common user directory; ( I use Debian 8.1 )
2 - I need that after the system boot, the /et/init.d call a main shell script, so that it starts to rotate a loop
3 - All scripts run in the user directory
4 - These shells scripts have several internal commands such as cat, grep, bc, etc ....,
5 - These scripts work with text cleaning, then create several temporary files, always within the same user directory.
6 - I tried to make a Calls in /etc/init.d, but the first script to fires, but it seems that the system does not
runs within the user's directory, not creating temporary files, and not calling scripts (includes) that are
listed on the main shell.
Work: I need help to create a /etc/init.d/[login to view URL] entering into the user directory, activate the master script,
which will be running as an endless loop, so that he can call the side scripts that are in the directory.
added a script below it sure is wrong, it does not run in the user directory.
I have more than 20 years experience into shell scripting and won many awards from my previous employers for best automations and ideas for IT process improvement.
To whom it may concern,
I have many yrs experience in Linux, especially LFS and Debian.
I can solve your problem but some further answers from you are needed. Especially why use init.d if cron would be more suitable for this?
Regards,
Daniel
Hello,
Please let me help with with setting up your Debian script to run at boot from init.d hassle free.
I have had over 10 years experience of administrating Linux Debian servers so I will be glad to help you with your problem and I am available to start right now and finish it in 1 hour.
I can see the problem in your script that should be fixed and is probably the problem why it does not run in the user's directory.
Thank you,
Alex