You are not logged in.

#1 2009-03-27 15:41:03

Hexorg
Member
Registered: 2009-02-23
Posts: 27

threads?

Good daytime to you!
I'm trying to learn programming under linux. Before I had some experience, in MustDie(windows), but not much.

I have an external LCD screen that's connected to USB, and is detected as /dev/ttyUSB0. I made my program to dispay strings on it, but when I start it, of course it take a stdin from a console.

I want, for example, to dipaly current time on that screen, without taking need to be logged in the system, and using a console to run it. My idea was to use some sort of threads... Or to write a daemon... Is there a better way to do it?

Offline

#2 2009-03-27 18:52:57

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: threads?

Yes, you want a daemon, which is just a program meant to run in the background. You could do it as a shell script, or you could modify your program to print the system time instead of reading from stdin. Then you can start it on boot.

Offline

Board footer

Powered by FluxBB