Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.


Topics - Benaal

Pages: [1]
1
General Help & Advice / running own C file in crontab
« on: May 05, 2014, 09:35:31 pm »
Hi all,

again, top line apologies for noobish questions.

I have taken up programming C, in linux, and have written a C file that basically does some calculations then runs a system(); command to open a file through shellscript.

I have used GCC to compile update.c -o ./runupdate

I have also set up a cron job /10 * * * * bash -c "/home/programs/runupdate"

However, the cron job fires with no output from the executable. I think I might be missing something in the way cron is executing the file?

Advice would be much appreciated. Thanks.

2
Hi all,

Been working with Linux for about a month now - Got my Pi a couple of weeks back and have just about got the hang ofit. I'm now looking to expand the application of the Pi into the business world.

As a brief introduction, our plant has 24 work areas, working 24 hours a day, 365 days a year. Each work area has its' own budget and KPIs.

At present, I construct 24 PPT Presentations, containing KPI Graphs and information - Then save them down as JPG images. Then, because our contractor-managed network utilises symantec endpoint encryption to automatically encrypt anything being saved to USB, Ihave to virtualise Ubuntu, connect to a network share on the host, connect the USB device through Virtualbox, and save to USB stick - Then I have to go round each TV and plug the USB sticks back into the TVs and set the presentation running. It pretty much takes up my entire day.

What I would like to do is run a Pi on each TV, and on each Pi have a cron which initiates a shell script. This shell script, in my mind, would then stop any presentations ongoing, look to my own Ubuntu server on the same network, update it's own apt repository (download the latest slides), then run libreoffice --show /home/slide/slides.odp

Am I thinking along the right lines?

Pages: [1]

SimplePortal 2.3.3 © 2008-2010, SimplePortal