Hi,
I connected the pi (e.g. 192.168.0.1) with my ubuntu server (e.g. 192.168.0.2), and now it's able to use the website hosted by the ubuntu to perform tasks, such as turn on & off led/ read data from sensors.
I want to ask, is it possible to read the data inputted by user and modify the cron job, so that user can create & delete/ enable & disable scheduled one-time or repetitive tasks?
Thanks all!
Re: Run input from U.I. and create cron job
Cron definitely allows users to edit cron jobs to start and stop running programs and do scheduled tasks based on scripts. The best approach is to use from the command line but that requires that you choose and use a text based editor such as nano. "Gnome schedule" is a GUI
means of editing cron jobs if you are command line adverse. Cron takes a bit of study to get the times and commands parsed properly but it is worth the trouble.
Code: Select all
crontab -e
means of editing cron jobs if you are command line adverse. Cron takes a bit of study to get the times and commands parsed properly but it is worth the trouble.
Re: Run input from U.I. and create cron job
I know cron job can perform the scheduling task features. However, can users modify the cron job file via the user interface (e.g. the website hosted by the ubuntu server 16.04 which is connected to the pi) instead of using putty or other command lines.
Re: Run input from U.I. and create cron job
http://lifepluslinux.blogspot.de/2017/0 ... ry-pi.html
Google keywords : "crontab webinterface". Note that cron is a quite powerful tool. Exposing it via a webserver should be always done carefully.
ghans
Google keywords : "crontab webinterface". Note that cron is a quite powerful tool. Exposing it via a webserver should be always done carefully.
ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org