SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist Scheisskopf's Avatar
    Join Date
    Nov 2004
    Location
    Southampton, UK
    Posts
    537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cron job shell commands

    I have some commands i type into shell to delete a directory, and add a new one

    something like

    rm -f dir2/folder

    cp dir1/folder dir2

    i was wondering how i could get these commands and run them via cron?


    Thankyou.

  2. #2
    SitePoint Member
    Join Date
    Mar 2005
    Location
    Los Angeles, USA / London, UK
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can always put them in a script, one file, change permission on this file to be able to execute it:
    chmod 744 yourfile

    and then add to cron

    hope this helps
    Anetus Ltd. - www.anetus.com
    Web design, Joomla! CMS - custom templates, components


Bookmarks

Posting Permissions

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