The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

recommended path for CRON jobs

Discussion in 'General Discussion' started by Abu Mami, Mar 11, 2004.

  1. Abu Mami

    Abu Mami Active Member

    Joined:
    Mar 11, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I have a question about defining cron jobs under cPanel (yes, I'm a cPanel newbie)...

    Where is the best place to keep the scripts that will be run via cron jobs? How about /home/account-name/scripts? Or would /home/account-name/public_html/scripts make more sense. Does it really matter? Or am I hung up on "cosmetics"?

    Thanks.
     
  2. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    You are hung up on cosmetics, however iwth that, said your second idea is just bad...don't put it into public_html as there shouldn't be any reason from anyone in the outside world to access your script..
     
  3. Abu Mami

    Abu Mami Active Member

    Joined:
    Mar 11, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Re: Re: recommended path for CRON jobs

    Thought so.

    Well, I wasn't exactly planning on allowing access to the world. I would have protected the directory with a password. In any case, I agree, it doesn't make much sense.

    Would the best bet be /home/<account>/scripts ?
     
  4. LordJMann

    LordJMann Well-Known Member

    Joined:
    Jun 15, 2003
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Re: Re: Re: recommended path for CRON jobs

    It really does not matter where they are... you could have it in:

    /home/<account>/bob/joe/fred

    Just don't allow outside access to it. Your hung up on an issue that really does not matter. Put the scripts where-ever you want them and run them from there.
     
  5. Abu Mami

    Abu Mami Active Member

    Joined:
    Mar 11, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Re: Re: Re: Re: recommended path for CRON jobs

    You should see how long it takes for me to decide when buying clothes :) Thanks for the help.
     
Loading...

Share This Page