Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-30-2004, 03:25 AM
|
#1
|
LQ Newbie
Registered: Aug 2004
Location: Bangalore
Posts: 6
Rep:
|
i need to write a program it has to execute automatically
I need to write the program it has to execute evry 1 minute even though the system has logged out.
give me some hints ? how to proceed to write the coding
Thanks
|
|
|
08-30-2004, 03:49 AM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
you can use cron. if you wish to run the script with your id, login using your id and type
crontab -e (to edit your crontab file)
*/1 * * * * /path/to/your/script
|
|
|
08-30-2004, 07:21 PM
|
#3
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.
|
|
|
08-30-2004, 07:53 PM
|
#4
|
Member
Registered: Mar 2004
Location: London
Distribution: Mandrake 10
Posts: 172
Rep:
|
Quote:
even though the system has logged out
|
Do you mean your user is logged out, or the system is shut down?? I doubt cron jobs run while you're logged out, and i'm sure they don't when your computer is shut down
|
|
|
08-31-2004, 12:48 AM
|
#5
|
LQ Newbie
Registered: Aug 2004
Location: Bangalore
Posts: 6
Original Poster
Rep:
|
hi,
Thanks for given reply.Actually my thing is , even if i shutdown the system.The program has to execute at the backend.
but i heared one command like 'nohup' command but how to use i don't know.plz help me.
Thanks
|
|
|
08-31-2004, 01:34 AM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
kiran, when you system shuts down, you cannot have any processes running. nohup command is used when you want to keep the command running after you logout.
|
|
|
All times are GMT -5. The time now is 04:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|