LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2011, 08:55 PM   #1
dexter.gdv
Member
 
Registered: Jul 2010
Location: Vadodara, Gujarat, India
Distribution: ubuntu
Posts: 33

Rep: Reputation: 0
to continue a program after reboot


I am a newbie python programmer and a linux learner.
I am working on a project that is an initial configuration tool for new users of linux as me. I want my program to reboot the computer after performing some task and then the same program should be started up from on the next reboot.

What shell programming is to be done ?
Hoping to get an early reply.
Thank you.
 
Old 04-11-2011, 11:02 PM   #2
Walter.Stroebel
LQ Newbie
 
Registered: Apr 2011
Location: Arnhem, The Netherlands
Distribution: CentOS
Posts: 19

Rep: Reputation: 6
Firstly: there should be little need to reboot in the middle of an install. Linux, like all U*ix'ses, only should be rebooted if the kernel is updated or new non-plug&play hardware was installed

Having said that, some cases do exist and you probably want to look at /usr/bin/firstboot as an example... it could be you don't have it, unsure if it is a Redhat-only program. You might have to Google for it.

Also study how /etc/init.d and /etc/rc0.d through /etc/rc6.d work.

Finally, have a look at /etc/inittab and /etc/rc.sysinit.

Happy coding,
Walter.
 
  


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
reboot system and continue from where it left csegau Programming 2 03-22-2010 08:51 PM
how to continue to run a program after logging off ? nkd Linux - Newbie 12 11-28-2008 02:22 PM
Continue DHCP lease after reboot pymehta Linux - Networking 4 11-21-2005 04:16 PM
any way to continue using the terminal while any program is being run? g_srinivas Linux - Newbie 6 07-20-2005 08:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:57 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