WordPress.org

Forums

Active Directory Integration
cron job example (6 posts)

  1. MiJaMu2
    Member
    Posted 1 year ago #

    I noticed that it may be possible to schedule a script to automatically sync user accounts via cron job.

    Could you give an example of what that job would look like?
    thanks.

    http://wordpress.org/plugins/active-directory-integration/

  2. MiJaMu2
    Member
    Posted 1 year ago #

    This is the best I could come up with, but it's not working. any ideas?
    thank you!

    */5 * * * * wget -qO /dev/null http://yoursite.com/bulk-import.php (or whatever the correct url is)

  3. MiJaMu2
    Member
    Posted 1 year ago #

    anyone have an idea on this? It would be much appreciated!

  4. trenee71
    Member
    Posted 1 year ago #

    Instead of wget -qO /dev/null
    Try:
    /usr/bin/wget http://blahblahblah
    (full URL of plugin bulk import link with authorization code) link is found in plugin > Bulk Import tab.

    No errors with this one yet.

    Best,
    Tiff

  5. chrisjscott
    Member
    Posted 1 year ago #

    Using wget results in file dumps in your home folder every time the cron job is run. Instead, consider using:

    lynx -dump <URL>

  6. ssergutaboselaw
    Member
    Posted 8 months ago #

    Chris, when I try the lynx -dump I get an error
    lynx: not found

    I tried just this
    lynx -dump <URL>
    and
    /usr/bin/lynx -dump <URL>
    thanks for the help

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Active Directory Integration
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.