Sahibcore - A Command Line Utility Created By Sahib Himself

Discussion in 'General Off-Topic' started by Sahib, Jul 30, 2015.

  1. Sahib

    Sahib Member

    Joined:
    May 10, 2015
    Messages:
    61
    Likes Received:
    82
    [​IMG]
    SahibCore - The command line utility for the masses!
    So I was bored on my computer, played some Minecraft, and then I was thinking: "Hey! I know how to make Java programs take arguments. And I always wanted a command line application. How about I make one?" And so I did.
    What is SahibCore?
    SahibCore is a command line utility, which means you run it from your Command Prompt or terminal.
    It has a variety of uses. It creates random numbers. It finds the square root of integers (and gives an integer, so no decimal square roots). It squares integers. And it even repeats what you say. You might think that isn't a lot, but this is only version 1. Out of like, 200.
    How do I open the Command Prompt or Terminal?
    On Windows, open up your Start Menu (or Start Screen) and search "cmd". Click the one that shows a black window with a white C:/ on it.
    How do I use SahibCore?
    Where you have saved SahibCore, use Command Prompt to go there.
    (For example, if you saved it in C:/Users/Sahib/Downloads, type "cd C:/Users/Sahib/Downloads" into Command Prompt and hit Enter. For Linux, do the same thing. If you saved it into /usr/sahib/downloads, type "cd /usr/sahib/downloads" and hit ENTER.)
    Then, type "sahibcore help" and hit ENTER. It will show you a bunch of stuff. You type that after sahibcore. For example, it says "randomint [min int] [max int]". Ints (Integers) are numbers without decimals, so if you type "sahibcore random 1 100" into Command Prompt or Terminal and hit ENTER, it will show a random number without decimals between 1 and 100. Seems complex, but it really isn't.
    How did you create SahibCore?
    I coded it in Java 8, and compiled it with Excelsior JET (excelsiorjet.com). I got the beta version (which is an evaluation).
    Where can I get SahibCore?
    You can get SahibCore here:
    https://dl.dropboxusercontent.com/u/28315077/sahibcore.exe
    What do I need to use SahibCore?
    On Windows, you simply need Java 8.
    On Linux, you need Java and something that will allow you to run .exe files on Linux. Wine is a good choice.
     
    #1 Sahib, Jul 30, 2015
    Last edited: Apr 11, 2016
  2. DeadLocked

    DeadLocked Active Member

    Joined:
    Sep 19, 2014
    Messages:
    125
    Likes Received:
    53
  3. Sahib

    Sahib Member

    Joined:
    May 10, 2015
    Messages:
    61
    Likes Received:
    82
    cool cool
     
  4. flubbyfluffer

    flubbyfluffer Well Known Member

    Joined:
    Jan 17, 2014
    Messages:
    71
    Likes Received:
    310
    cool cool cool
     
  5. DeadLocked

    DeadLocked Active Member

    Joined:
    Sep 19, 2014
    Messages:
    125
    Likes Received:
    53
    Cool cool cool cool
     
  6. Sahib

    Sahib Member

    Joined:
    May 10, 2015
    Messages:
    61
    Likes Received:
    82
    not cool
     
  7. flubbyfluffer

    flubbyfluffer Well Known Member

    Joined:
    Jan 17, 2014
    Messages:
    71
    Likes Received:
    310
    :c
     
  8. Gamer

    Gamer Active Member

    Joined:
    Jul 21, 2013
    Messages:
    94
    Likes Received:
    157
    >:c
     
  9. Sahib

    Sahib Member

    Joined:
    May 10, 2015
    Messages:
    61
    Likes Received:
    82
    -> ends comment chain
    KK EVERYTHING IS FINE
    PLZ DON'T RESTART
    PLZ
     
  10. flubbyfluffer

    flubbyfluffer Well Known Member

    Joined:
    Jan 17, 2014
    Messages:
    71
    Likes Received:
    310
  11. Fred

    Fred Active Member

    Joined:
    Aug 5, 2015
    Messages:
    127
    Likes Received:
    111
    Cool cool :p
     
  12. Sahib

    Sahib Member

    Joined:
    May 10, 2015
    Messages:
    61
    Likes Received:
    82
    Cool cool cool cool cool.
     
  13. Fred

    Fred Active Member

    Joined:
    Aug 5, 2015
    Messages:
    127
    Likes Received:
    111
    Cool beans.
     
  14. livetree84

    livetree84 Member

    Joined:
    Mar 8, 2015
    Messages:
    30
    Likes Received:
    6
    can i make a .sh installer for this? The idea is that it will add sahibcore to /bin so you can run sahib core simply by entering sahibcore in the terminal. It could also keep it up to date.
     
    #14 livetree84, Jun 13, 2016
    Last edited: Jun 13, 2016
  15. Sahib

    Sahib Member

    Joined:
    May 10, 2015
    Messages:
    61
    Likes Received:
    82
    Code:
    #!/bin/bash
    if [-E /usr/bin/sahibcore]; then
       sudo rm /usr/bin/sahibcore
       sudo wget https://initializesahib.github.io/binaries/sahibcore -o /usr/bin/sahibcore
    else
        sudo wget https://initializesahib.github.io/binaries/sahibcore -o /usr/bin/sahibcore
    fi
    what, you mean like this?
     
  16. livetree84

    livetree84 Member

    Joined:
    Mar 8, 2015
    Messages:
    30
    Likes Received:
    6
    Yes, except more safisticated (updates, checks, etc..)
     
  17. Sahib

    Sahib Member

    Joined:
    May 10, 2015
    Messages:
    61
    Likes Received:
    82
    That script already updates to the newest version, no ckecks needed. I don't see how sophistication will improve on it. Anyways, go ahead.
     

Share This Page