LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 08-30-2004, 03:25 AM   #1
ykirankumar
LQ Newbie
 
Registered: Aug 2004
Location: Bangalore
Posts: 6

Rep: Reputation: 0
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
 
Old 08-30-2004, 03:49 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
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
 
Old 08-30-2004, 07:21 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 08-30-2004, 07:53 PM   #4
BluePyre
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 10
Posts: 172

Rep: Reputation: 30
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
 
Old 08-31-2004, 12:48 AM   #5
ykirankumar
LQ Newbie
 
Registered: Aug 2004
Location: Bangalore
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 08-31-2004, 01:34 AM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
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.
 
  


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
Execute an application automatically after startx gilan Debian 6 03-24-2005 11:34 PM
CRON Process Won't Execute Automatically Transition Linux - General 5 01-14-2005 04:51 PM
execute php script automatically? brandnewbie Linux - Newbie 1 08-14-2004 06:42 AM
how to execute automatically a program/script after login mule Linux - General 8 12-13-2003 03:44 PM
How do I have X-apps automatically execute on startup of the X-server? jtX Slackware 13 08-07-2003 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:23 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
Open Source Consulting | Domain Registration