Hi all I am tring to find or get help to wright bash script to run a program at night and the stop
I need the program to start running at 10pm and stop at 6am which i was going to run via cron I have never coded a bash script so i am lost here.
The program script lives in the home directory and needs to be excuted in directory it lives in
the program is web crawler it crawls UK sites only so I want to pass one command to the crawler between hours 10pm to 6am then the it stops then i wnat to pass another command to the crawler between the hours 7am to 9pm. then set up with cron.
I have tried this with cron but it does not work
cd /home/user/program_dir/ ./myprogram -a -c test