Running a program automatically


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Running a program automatically
# 1  
Old 03-07-2002
Running a program automatically

How can I make a program run automatically at a certain time of day?

My problem is I need to make a small backup program that will back up a few files every day?
# 2  
Old 03-07-2002
If you are using any type of UNIX, then a cron job would be one answer. Check out the man page on crontab and at. Either one may be what you are looking for.
thehoghunter
# 3  
Old 03-08-2002
Hi
U have got the proper path previuosly.I shall just elaborate on that.I think crontab will be good for you if you have to back up daily.U can write in a file a time and cp *.c ./cbackup and give "crontab file" command.This way back-up will happen every-day(say 0 0 * * * cp *.c ./cbackup)at midnight.
Hope elaboaration helps u.

Last edited by Shobhit; 03-08-2002 at 10:16 AM..
# 4  
Old 03-12-2002
absolute path in contab?

i execute a cript1 in a certain time using crontab. that script1 call another script (say script2). do i have to put absolute path in script1 and crontab?
do i have to use absolute path in crontab? i tried, it seems like that. why?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Scheduled job not running automatically in crontab

i have a job scheduled in crontab. The problem is, it is not running automatically as per the time scheduled. But runs when executed manually. What would be the problem? Help me with this please. (6 Replies)
Discussion started by: Santhosh CJ
6 Replies

2. UNIX for Advanced & Expert Users

How to keep program running after logout

Hello everyone. I am logged into a computer through ssh. I would like to run a program and have it keep running after I log out without screen (i forgot to run it). For example: ssh server user/comp~$ top & 12021 exit after that: ssh server user/comp~$ (something, maybe shell... (5 Replies)
Discussion started by: lepetal
5 Replies

3. Shell Programming and Scripting

Running script automatically when threshold limit met in one of the field in oracle database

Hi Guys, Need you help in one point! I am working on one shell script which takes following steps : 1. Taking one query result from oracle database 2. Exporting that result to Xls file 3. Mailing that file to my own mail ID Now, I want to give a threshold limit to one of the column... (0 Replies)
Discussion started by: Agupte
0 Replies

4. UNIX for Dummies Questions & Answers

search history without result running automatically

Hi I want to search the history of commands. for the last use of eg.$ service httpd reload $history = brings up the full list $!serv = runs service httpd reload, if thast was the last command used with the string $!?serv? = does the same as above I do not want to run the command... (1 Reply)
Discussion started by: dunsta
1 Replies

5. Shell Programming and Scripting

Help with Running More than One Program

Folks, I'm really new to scripting and was wondering if you could help me out. I have the following script that I inherited: #!/bin/bash # # Usage # From the agent directory: # ./run-any-agent AgentName # TAC_AGENT_HOME=`pwd` LIB=${TAC_AGENT_HOME}/lib CLASSPATH=.... (17 Replies)
Discussion started by: DTriniWay
17 Replies

6. UNIX for Dummies Questions & Answers

Automatically Running Scripts

Can someone advise me how to get started automatically running scripts? I believe it has something to do with cron? (4 Replies)
Discussion started by: jeffreydavisjr
4 Replies

7. Shell Programming and Scripting

How can I make a program start up automatically after the computer restart/startup?

hi all How can I make a program start up automatically after the computer restart/startup in fedora? something like: ... Establish a shell then run some of command code. Thanks for Help!! (1 Reply)
Discussion started by: munna_dude
1 Replies

8. Shell Programming and Scripting

Running shell scripts automatically without using Batch or at commands

I have been trying to run a unix script which contains many sql statements.I need to run this script every monday morning. I tried to run on command prompt, it works fine. But while I run it via batch or at command., it returns with library module could not be loaded (libcompat.1.o could not be... (3 Replies)
Discussion started by: ritzwan0
3 Replies

9. UNIX for Dummies Questions & Answers

Running a program on boot!

Hi there! I tried to search for something like this here but couldn't find anything. I need to run a specific program when linux starts up. I need to run it after the rp-pppoe has started because this prog needs internet connection. I start the program by entering ./dynix start (its in my home... (4 Replies)
Discussion started by: D-Lexy
4 Replies

10. UNIX for Dummies Questions & Answers

Running a program

Hi.Iam new to Linux.i got linux 7.0 pro and dont know how to run programs. I want a perl interputer and i know i installed one but how do i run it ??? Also how do i run a C or C++ editor ?and how do i run cron ? (3 Replies)
Discussion started by: perleo
3 Replies
Login or Register to Ask a Question