Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm new to set up server settings and to the whole unix thing so maybe this is simple.

I'm trying to start crontab with curl in but it doesn't work. I want it go to file and send email every 30 minutes.

If just writing

curl http://webaddress.com/controller/action

in the terminal everything works just fine and it will send out mail as I want.

But when I trying to do it with crontab it never "kicks". In the crontab -e I have write

0,30 * * * * curl http://webaddress.com/controller/action

I have also tried

0,30 * * * * /usr/bin/curl http://webaddress.com/controller/action

nothing with result.

Anyone have any clue what can be wrong?

SOLVED

It was some PAM related bug on the server. To fix it I wrote:

aptitude reinstall libpam-modules libpam0g cron
share|improve this question

migrated from stackoverflow.com Nov 16 '11 at 10:09

This question came from our site for professional and enthusiast programmers.

    
try add -v option to see details? –  Kit Ho Aug 10 '11 at 13:30

1 Answer 1

Check that everything for PAM is installed. ;-)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.