TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: JOHN ALDRIDGE
from: MARTIN GREGORIE
date: 2017-10-23 16:30:00
subject: Re: Auto start files on s

On Mon, 23 Oct 2017 14:32:59 +0100, John Aldridge wrote:

> In article ,
> pradeep.deepna@gmail.com says...
>>
>> Hi guys,
>>
>> I want to autostart one file(a .cs file) when i start my raspberry pi.
>> Can any of you have an idea how it can be done?
>
> Another way (not mentioned yet, I think) of getting stuff to start on
> boot is to add an
>
> @reboot 
>
> line to your crontab.

I don't think this is what the OP wants. He said "I want it to run after
the start(when it lands on the home screen)" which sounds to me as though
he wants his program C# program to be started when he logs in to his RPi
and to stop when he logs out.

So, I think a better arrangement would be to add the startup command
to .bashrc as its last line and should put a stop command, e.g. "killall
progname", as the first command in .bash_logout

This needs to be done on all the logins where his program should be
running while he's logged in.


--
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.