CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2671|Reply: 5

Unix - crontab

[Copy link]
Post time 14-11-2006 10:40 AM | Show all posts |Read mode
Nak tanya member2 yang tahu pasal Unix...macamana nak buat crontab...saya ada PL/SQL programming dah compile dan boleh run manually. so sekrg nak set dalam crontab. tapi ada masalah....masa run , system return rc =1. apa sebenarnya problem dia...??
Reply

Use magic Report


ADVERTISEMENT


Post time 14-11-2006 11:10 AM | Show all posts
Originally posted by keraklak at 14-11-2006 10:40 AM
Nak tanya member2 yang tahu pasal Unix...macamana nak buat crontab...saya ada PL/SQL programming dah compile dan boleh run manually. so sekrg nak set dalam crontab. tapi ada masalah....masa run , s ...



it helps a lot if you could post the log of where exactly rc=1 occurred while running crontab.
Reply

Use magic Report

 Author| Post time 3-1-2007 09:13 AM | Show all posts
dah tak ada error masa run tapi langsung tak generate text file yang sepatutnya program tu buat..
Reply

Use magic Report

Post time 3-1-2007 09:32 AM | Show all posts
1) cuba cek your current working directory. crontab will not run as your normal user account, so maybe dia punye tempat create file dah lari, especially bile u create guna relative path vs absolute (e.g tmp/files vs /var/tmp/files )
Reply

Use magic Report

Post time 4-1-2007 03:47 PM | Show all posts
salam.

sepatutnya, awak kena pastikan dulu arahan yg nak dilaksanakan tu berjaya dalam command prompt.

bila dah berjaya, baru pindahkan arahan tu ke dalam bentuk crontab.

dari situ, awak akan tahu, mana satu yg problem samada command tu atau pun crontab yg ada masalah.

okey.
Reply

Use magic Report

Post time 9-1-2007 05:32 PM | Show all posts
cuba check file /etc/cron.allow @ /etc/cron.deny utk pastikan user boleh guna crond @ tidak.
juga boleh cuba chmod program dulu sama ada boleh run atau tidak
Reply

Use magic Report

Follow Us
You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT


Forum Hot Topic

 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

28-12-2024 10:29 PM GMT+8 , Processed in 0.191536 second(s), 19 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list