LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-29-2010, 01:35 AM   #1
gsvsmanyam
LQ Newbie
 
Registered: Jun 2009
Location: Hyderabad
Distribution: Suse (rarely Redhat & Fedora)
Posts: 14

Rep: Reputation: 0
How to add a job to start up as a user?


Hi,
I need to start a service(which is not a system default service, an installed software it is)at every reboot as a USER only. Could any one suggest how to do it?

Thank you
 
Old 12-29-2010, 02:13 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

You could add it to that user's crontab and set @reboot for time indication like this:
Code:
@reboot /usr/local/yourcommand
The crontab will get executed even when the user is not logged in, so the program should start after every reboot.

Hope this helps.

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] BASH: Add cron job to run hourly worm5252 Programming 9 03-26-2010 10:36 AM
add a job to cron.daily pbxuser911 Linux - Server 9 10-29-2009 12:30 AM
Unable to Start Cron Job kwidya Linux - General 4 07-10-2009 07:07 AM
How to add a crontab job in Debian Linux LotharIrausquin Linux - Distributions 2 11-25-2008 06:09 AM
Can you start a job without getting the job number spit back out? BrianK Linux - General 5 12-13-2007 08:09 PM

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

All times are GMT -5. The time now is 06:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration