alexandra123
Registered User
- Messages
- 282
Hello,
Just wondering if anyone out there has any linux experience and can help me on the below - I am actually using Ubuntu , but it should not matter a great deal.
I created a cron job.
The cron job is running a bash.sh file every couple of minutes.
I need the bash.sh file to look at a conf file and read the status of the conf file to a log file.
Bash file code
mon.conf code
How do I get the bash file to read the conf file and print the service status to the log file ????
Thanks in advance
Just wondering if anyone out there has any linux experience and can help me on the below - I am actually using Ubuntu , but it should not matter a great deal.
I created a cron job.
The cron job is running a bash.sh file every couple of minutes.
I need the bash.sh file to look at a conf file and read the status of the conf file to a log file.
Bash file code
cat 'etc/mon.conf' | more
while read line; do
echo cat "$line" >> /var/log/mon.log
done
fi
fi
mon.conf code
ps ax | grep bluetooth |grep -v grep
How do I get the bash file to read the conf file and print the service status to the log file ????
Thanks in advance