Skip to main content

Which folder should contain my bash scripts

Comments

7 comments

  • cPanelMichael
    Hello, Could you provide more information about what the bash script does? Is it purely for account-specific tasks or does it require the manipulation or use of system-level files that only the "root" user has access to? Thank you.
    0
  • genesearch
    Hello, Could you provide more information about what the bash script does?

    Thanks account specific tasks, which is why I place the bash script in the relevant home directory. i have a few different ones but one is for emailing a log file and then delete that file. No action on system files and no root required
    0
  • torrent4all
    YOu can place bash scripts in your home folder /home/your_username. That is good option
    0
  • iso99
    If it's a script executed by a non-root user, /home/username is a good place.
    0
  • genesearch
    so do you all agree that placing bash scripts in home/username/public_html/ is not recommended?
    0
  • aanbar
    public_html should only contain files you want to serve to people; everything else should be outside public_html Anything you want to access through command line or cron should not be in public_html directory
    0
  • genesearch
    Thanks, thats what I have been telling tech support. Just needed someone to confirm I was on the right track
    0

Please sign in to leave a comment.