Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2008
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to delete it?

    now i know how to make a cron job in php

    PHP Code:
    exec("echo '* * * * * /usr/local/bin/php -f /home/survey/public_html/john/cron/snd2.php' | crontab -"); 
    i want now to know how to delete this cron job from cpanel but also using my php code..

    any help??
    Last edited by john_zakaria; 12-23-2010 at 02:27 PM.

  2. #2
    Supreme Master coder!
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    10,216
    Thanks
    10
    Thanked 1,168 Times in 1,159 Posts
    echo exec('crontab -r') ??

    See this ...
    http://stackoverflow.com/questions/4...e-crontab-jobs


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •