cancel
Showing results for 
Search instead for 
Did you mean: 

cron job : how to run scripts as cron job

ashish_vikas
Active Contributor
0 Kudos

Hi friend,

Sorry one very small question ..

Can someone tell me how can i run scripts as cron job .. on HP UX.

thanks

ashish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ashish,

open one telnet session.

crontab -e

then give the periodicity day and time

like below

05 00 * * 1-6 /usr/local/bin/database_backup.sh

and now create the script file with the command or script to execute.

Regards

Ashok Dalai

Answers (4)

Answers (4)

Former Member
0 Kudos

type crontab -e set the timing,Day,Month of script then give Path of ur script which it has stored. one very important thing make sure the user and permission of that file or directory from that script will be running.

Thanks

Presu

Former Member
0 Kudos

check out

[http://aplawrence.com/Basics/bbcronbasics.html]

former_member204746
Active Contributor
0 Kudos

it is important to use "crontab -e" command while logged in with proper user.

you will want to start backup with user ora[sid], so, do the same to run crontab command.

sunny_pahuja2
Active Contributor
0 Kudos

Hi Ashish,

Check below link:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626124721317956028353475&threadId=39275

Thanks

Sunny