ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Tags
    3. scripts
    Log in to post
    • All categories
    • Dashrender

      script to download and extract MicroSip portable
      IT Discussion • dashrender scripts • • Dashrender

      15
      0
      Votes
      15
      Posts
      334
      Views

      Dashrender

      @jaredbusch said in script to download and extract MicroSip portable:

      @dashrender chocolatey can easily run as non-admin. The question is whether or not the application installs can handle that. Of course your centralized scrips for keeping things up-to-date would not get that use your space one you have to have a script to keep the user space chocolatey package up-to-date also

      Yeah, I'll have to look at it - but only after someone else actually picks ownership of the package back up. The current maintainer has stated he's no longer maintaining it.

    • JaredBusch

      FreePBX Extension status
      IT Discussion • freepbx scripts • • JaredBusch

      1
      3
      Votes
      1
      Posts
      213
      Views

      No one has replied

    • EddieJennings

      Organization of sample code
      Developer Discussion • sourcecode code management scripts code repository • • EddieJennings

      13
      0
      Votes
      13
      Posts
      886
      Views

      dafyre

      @dafyre said in Organization of sample code:

      I just shutdown my GOGS server and have all my important bits over on GitLab now.

      https://gitlab.com/dafyre

    • NerdyDad

      If I was a batch scripter, I'd starve...
      IT Discussion • batch scripts scripting script • • NerdyDad

      2
      2
      Votes
      2
      Posts
      504
      Views

      Dashrender

      Here are some instructions I found.

      http://www.instructables.com/id/How-to-make-flash-drive-that-copys-users-files-si/

    • DustinB3403

      Newb question - Running a script from the root directory
      IT Discussion • scripts centos centos7 linux education • • DustinB3403

      29
      0
      Votes
      29
      Posts
      2163
      Views

      scottalanmiller

      @stacksofplates said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @stacksofplates said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @stacksofplates said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @stacksofplates said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @scottalanmiller said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @stacksofplates said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @danp said in Newb question - Running a script from the root directory:

      Is the directory in your path? What do you get from echo $PATH?

      echo $PATH
      /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/opt/scripts/:/root/opt/scripts

      I've added it (twice).

      Well first off you had /root/opt/scripts not /opt/scripts. Second you either have to log out and back in or tell your user to use the new path with something like

      source ~/.bash_profile

      I used ````~/opt/scripts``` initially, as I wasn't aware of just adding my scripts into one of the existing locations. (everything said just add a new directory).

      By simply moving the script into an already existing path, I am able to update with just "script.sh".

      When you are root and your home is /root and you put ~/opt/scripts that is /root/opt/scripts.

      Remember that ~ is a shortcut to your home directory, which is /root

      So by adding ```/opt/scripts/```` this would've worked, but would've added complexity for no reason.

      No that still isn’t a default location. In the OP you said you put the script in /opt/scripts. Where did you actually put it?

      Originally I created the directory /opt/scripts and put the script in there so the Directory looks like

      /opt/scripts/script.sh

      I went back and change the script location to be in /usr/local/bin

      So in /usr/local/bin I now have script.sh

      This now works without issue, and /opt/scripts no longer exists.

      Ok ya that’s where the problem was. /opt/scripts is different than /root/opt/scripts. If you would have had that in your .bashrc or .bash_profile (or whichever shellconfigure you’re using) it would have worked. But you still have to let the user know of the PATH change.

      I'm the user in this case, but I never really create / save my own scripts. I just got tired of running a set of commands, every other day.

      Thus the need to figure out how I could run the script, without having to jump into the exact directory from which the script was saved.

      I mean you have to let the user you are logged in as Know if the change. Either by logging out and back in or by temporarily sourcing the config.

      I've logged out, what do you mean "sourcing the config" ?

      If you change your PATH while you’re logged on the user account doesn’t know of that change. You have to either log out and log in again or temporarily do something like

      source ~/.bashrc

      Or the non-aliased version...

      . ~/.bashrc
    • NerdyDad

      Inactive Users Report with PowerShell
      Self Promotion • scripts powershell users office 365 office365 o365 exchange nerdydad ps scripts • • NerdyDad

      1
      1
      Votes
      1
      Posts
      996
      Views

      No one has replied

    • NerdyDad

      Disable a User on O365 with PowerShell
      Self Promotion • scripts powershell o365 office 365 office 365 administration users nerdydad ps scripts • • NerdyDad

      1
      1
      Votes
      1
      Posts
      1178
      Views

      No one has replied

    • NerdyDad

      Disable an Exchange User without O365 with PowerShell
      Self Promotion • powershell exchange scripts users nerdydad ps scripts • • NerdyDad

      1
      1
      Votes
      1
      Posts
      873
      Views

      No one has replied

    • NerdyDad

      Creating New User without O365 with PowerShell
      Self Promotion • powershell scripts active directory users nerdydad ps scripts • • NerdyDad

      4
      4
      Votes
      4
      Posts
      1403
      Views

      NerdyDad

      Inserted a new line of code at line 82 & 87 to read as follows:

      icacls \\<server>\d$\Users\$un\* /grant $un:F /inheritance:e /T

      This line grants the new employee full access to their network folder and subfolders and items.

    • NerdyDad

      NerdyDad's PowerShell Scripts
      Self Promotion • powershell scripts nerdydad ps scripts • • NerdyDad

      10
      14
      Votes
      10
      Posts
      1482
      Views

      NerdyDad

      @kelly said in NerdyDad's PowerShell Scripts:

      If you aren't putting this out on a blog somewhere you're probably losing some valuable publicity. These are good scripts that people would love to be able to find.

      That's on my to-do list.