how to execute java in specified time- urgent


 
Thread Tools Search this Thread
Operating Systems Solaris how to execute java in specified time- urgent
# 1  
Old 01-06-2009
how to execute java in specified time- urgent

Hi,
1. I want to execute a set of java files(a small appln) at specified time interval in solaris. that java uses documentum DFC calls.

2. How can i do this?

from thread i chked ppl suggest to do cron, and so.. pls provide me a details steps hence i am new to solaris..

Any help is highly appreciated

Regards
-Rk
# 2  
Old 01-07-2009
1. Write a simple shell script to run the java programs and which sets all the Java CLASSPATH variables as necessary.

2. run "man crontab" or search web for manual page of crontab to understand how to make a crontab file.

3. Run "crontab -e" to edit your user's crontab. The program to run should be the full path of the script from step 1.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to execute a unix shell script from a java program

Hi All, well , i am facing this problem.. i have tried a few sample codes but there isn't any solution . could anyone please give a sample code as of how to do this... Please see the below details...and read the details carefully. I have written some code, logic is 1)from... (4 Replies)
Discussion started by: aish11
4 Replies

2. Shell Programming and Scripting

Time taken to execute a ksh

Hi, I am executing a ksh. I want to note the time taken to execute each command that are executed in the ksh and write it in a log file. Also I want to note the total time taken to execute the ksh. How can I do that?What is the command to do that? (2 Replies)
Discussion started by: Kishore_1
2 Replies

3. Programming

Not able to execute the method based on OS in JAVA

Hi, In my application,I want to find out the OS name and based on OS I want to do some specific operations.So I write some code based on it in JAVA but I am able to get the OS name but Not able to use the method specific to OS.I write a simple code to check it and found that it is not going to... (1 Reply)
Discussion started by: smartgupta
1 Replies

4. UNIX for Advanced & Expert Users

How to execute multiple unix commands in one session from java

Hi, Iam trying to code in java and wanted to run the commands in the Unix remote servers. I have the following code to run multiple GREP commands in a single session. But when i execute this, the first command executes successfully, whereas from the next line it says "Exception Occured... (1 Reply)
Discussion started by: gravi2020
1 Replies

5. Programming

Java Compiling Help**URgent**

I am compling simple java program HelloWorld.java although /usr/bin @ this path javac is present, is there any command line wherein i can pass the this option as well lik javac -opttion(javac path) filename.java as i do not have permissions to set path. Also wht does this error, means...... (0 Replies)
Discussion started by: niceboykunal123
0 Replies

6. Shell Programming and Scripting

How to execute java program from perl

hello all how can i run the java command that can eccept N numbers of args for example : java -cp .;foo.jar myApp 1 "ww" or java -cp .;foo.jar myApp 1 2 3 "ww" or java -cp .;foo.jar myApp "args1" "args2" "args3" Thanks (1 Reply)
Discussion started by: umen
1 Replies

7. Programming

execute unix command from java eclips

Hi all, I tried to execute the command by 2 ways : 1) Java Runtime class exec method - but the problem there is that it only can execute scripts without arguments(I need with args) 2) the Jtux classs Uprocess- the problem it is not supported by windows and my eclips platform is on... (0 Replies)
Discussion started by: katzs500
0 Replies

8. Shell Programming and Scripting

time arthemetic - really urgent

guys.. i currently use this logic to calculate date and time. export day=`date +%d` export month=`date +%m` export day_len=${#day} export mon_len=${#month} export hr_min=0000 if ] || ] then month=0$month day=0$day export time_search=$month$day$hr_min else export... (5 Replies)
Discussion started by: ragha81
5 Replies

9. Shell Programming and Scripting

execute command unix with java:possible or not?

hi everybody, i have a small unix script and i want to use it with java, so how can i executte unix command with java (if it is possible): in fact i want to use some values returned by this script with java swings. is it possible (of course everything is possible) but how can i do? thank you in... (4 Replies)
Discussion started by: mips
4 Replies

10. UNIX for Dummies Questions & Answers

Urgent!! How to write a shell program to execute command to access internet?

hi, I am new ot unix. So, can i write a shell(c shell or korn shell) program to access internet? I mean if I run the program, it can access specified url and then copy the html to a file? Can anyone help me? And how can make the program runs every 1 hr? new comer (2 Replies)
Discussion started by: firebirdonfire
2 Replies
Login or Register to Ask a Question