Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default Looking any reference to everything in /scripts

    Hi, some patches and new utilities are often stored in /scripts folder. I usually know what are some of them for because I have been advised to use it in order to correct some error states. But there is still much of those scripts I don't know what are there for, and even if some of them may help me to do any task more easily.
    So I ask if there is any reference page or README file that explains what are all they for.

  2. #2
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default

    Most are undocumented, what I do is come here and do a search on the exact script name and look for the results and then note them in a text file on my work machine. I have figured out almost all of them doing it that way.

    If you have any coding background you can also just pico/vi look into them and get an idea.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  3. #3
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Yep, that's the hard way, but after doing one more search I found these interesting resources. This is a small portion of what I talk about.

    http://www.cpanel.net/docs/whm/Scripts.htm

    http://forums.cpanel.net/showthread.php?t=49719

    Last edited by Kent Brockman; 04-12-2008 at 05:15 PM.

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Some (I don't know the percentage) are older and haven't been maintained in a while. Before running a script, check the first few lines for the copyright date. If the script doesn't have a copyright date, chances are it may not work properly on a cPanel 11 install. If possible, run the script on a test machine, or one with very good backups you made recently. That way if some goes amiss, the problems can be mitigated rapidly (usually).

    If you are familiar with Perl, reading the script itself can often give you an idea what it is supposed to do.

  5. #5
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Recent scripts generally provide a message via --help.

  6. #6
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Yep, I see. By now, the only way I have to distinguish between code being maintained/updated/added is to see if the lastmodified date has changed since last cPanel upgrade. I already know that those scripts are a mixed repository of current internal processes, test utilities, and very outdated scripts. The problem is that not every cPanel admin may know that, and they should be able to know what are these scripts for, without the need to inspect every code to discover what is it for or even if its outdated or not (which may not always be easily infered by reading the code). By simply leaving at the beginning of those scripts an internal comment with the release date and purpose of that release, would simplify investigation thru countless discussions at the forums, providing users with an implicit knowledge base, decentralized, although unquestionable and always present. I think that would be a good practice to start implementing for future scripts. I love cPanel and just want to make it easier for the daily user; everybody may benefit from this.

Similar Threads & Tags
Similar threads

  1. Not a HASH reference
    By VeyronZA in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-13-2011, 02:15 PM
  2. JSP Pages work unless they reference classes
    By DarkMatter2010 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-16-2010, 02:53 PM
  3. 2 domains reference same files
    By squid44th in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-24-2008, 05:56 AM
  4. Plugin Guide/Reference
    By bamnet in forum cPanel Developers
    Replies: 1
    Last Post: 02-20-2008, 09:38 AM
  5. top command reference question
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-02-2005, 03:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube