LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-02-2011, 10:52 AM   #1
ch41
LQ Newbie
 
Registered: Jan 2011
Location: medan
Posts: 10

Rep: Reputation: 0
java scheduling script


am newbie and i have problem to write a scheduling script in java, this script should do something in certain time interval... Could anybody help me, maybe give some example or source that maybe useful... I really thnx for any answer...
 
Old 03-02-2011, 11:29 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,322

Rep: Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470
Quote:
Originally Posted by ch41 View Post
am newbie and i have problem to write a scheduling script in java, this script should do something in certain time interval... Could anybody help me, maybe give some example or source that maybe useful... I really thnx for any answer...
Spell out your words and write clearly.

And yes, we can help you, but we're not going to write it FOR you. Post what you've written/tried so far, and where you're stuck, and we can assist. Otherwise, there are many Java timer examples you can easily find if you tried to look. First hit in Google:
http://www.gammelsaeter.com/programm...ample-in-java/
 
Old 03-02-2011, 12:11 PM   #3
devUnix
Member
 
Registered: Oct 2010
Location: Bengaluru, India
Distribution: RHEL 5.1 on My PC, & SunOS / Sun Solaris, RHEL, SuSe, Debian, FreeBSD and other Linux flavors @ Work
Posts: 584

Rep: Reputation: 59
Quote:
Originally Posted by ch41 View Post
am newbie and i have problem to write a scheduling script in java, this script should do something in certain time interval... Could anybody help me, maybe give some example or source that maybe useful... I really thnx for any answer...
TB0ne is right in whatever he has said.

On a Unix/Linux Box, we would, however, not need any scheduling script because crontab does it fantastically.

Google on a crontab format it will b e handy.

Example:

Code:
crontab -e
That will open your crontab which you can edit/modify. Once again, Google on the fields you need to specify and then see the result by running a mail client such as:

Code:
mutt
 
Old 06-21-2011, 01:11 AM   #4
ch41
LQ Newbie
 
Registered: Jan 2011
Location: medan
Posts: 10

Original Poster
Rep: Reputation: 0
i'm sorry for late reply, thanx for any advice from you all,
i'm just a newbie, and i'm bad in english,,
but i've found my sollution, i use library cron4j to schedule my task on script,

and again, sorry for my bad english
 
0 members found this post helpful.
  


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
Hiding internal IP address without proxy, both Java and Java script enabled studpenguin Linux - Security 12 01-08-2011 09:39 PM
scheduling a script ashishjen Linux - Newbie 2 01-18-2007 08:15 AM
LXer: Java Job scheduling with Quartz LXer Syndicated Linux News 0 11-28-2006 09:21 AM
PPPD Script problem when cron-scheduling the script andresurzagasti Linux - Networking 0 11-24-2004 03:54 PM
scheduling a Script mustang05 Linux - General 5 05-12-2004 09:20 PM

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

All times are GMT -5. The time now is 06:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration