The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 12-24-2008
caicainancy caicainancy is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 1
this is my solution:

1. for example , i have a idl runable program that is named ama, the path is /usr/local/itt/ama/

2. i create a file that is named cron.ama under /etc/

3. $ vi /etc/cron.ama,
# run ama at 12:30 everyday
30 12 * * * cd /usr/local/itt/ama/;./ama

4. $ crontab /etc/cron.ama

5. this all, you can use ps -ef to find the ama process at 12:30 , and work nomally until you kill it.

ps : $ crontab -e edit crontab
$ crontab -r rm cron which you add

Good Luck!

-------------------------------------------------------------------------------------
CHINESE HOT DRAGON
-------------------------------------------------------------------------------------