LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2017, 12:44 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post Run a program when logging to Linux.


Hello.
I use Debian 8.6 x64 and I want to run a program when logging to my Linux. How can I do it?
I mean is something like Windows OS startup.


Thank you.
 
Old 05-29-2017, 04:51 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
I think it was already discussed several times, so you only need to look for those threads.
But actually it is explained on the man page of bash, look for invocation of interactive shell
 
Old 05-29-2017, 06:40 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
find -type d -name autostart
Honestly, https://www.linuxquestions.org/quest...1/#post5714708
 
1 members found this post helpful.
Old 05-29-2017, 09:10 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by Habitual View Post
Code:
find -type d -name autostart
Honestly, https://www.linuxquestions.org/quest...1/#post5714708
I must put my shortcut to "./.config/autostart" ?
 
Old 05-29-2017, 09:18 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by hack3rcon View Post
I must put my shortcut to "./.config/autostart" ?
If that's what the documentation says, what do you think?
 
Old 05-30-2017, 07:45 AM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
I assume by "logging" you mean "logging in", but you still need to clarify further. GUI login? Local console login? SSH login? All of the above? Just the first login after boot or all of them?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to continue to run a program after logging off ? nkd Linux - Newbie 12 11-28-2008 02:22 PM
What to do AFTER logging in via ssh to a cluster. How do I run a program? bjb133 Linux - Newbie 3 09-18-2008 08:08 PM
i cant run c program in linux anyone can help me? amit_linux Linux - Software 10 05-31-2007 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration