Find the answer to your Linux question:
Results 1 to 4 of 4
I'm trying to create a system-wide script for all users. I want all users to be able to type something like this $get-new-tasks and have the script execute. I remember ...
  1. #1
    Linux User Agent-X's Avatar
    Join Date
    May 2005
    Location
    Dimension X
    Posts
    261

    create a system-wide script for all users?

    I'm trying to create a system-wide script for all users. I want all users to be able to type something like this

    $get-new-tasks

    and have the script execute.

    I remember doing this a long time ago.
    Supposedly, I create a script.
    Afterwards, I place it somewhere.
    And I add the destination folder to a list, which is located inside of some file.

    I can't remember how to do all of this, though.

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    If you place the script in /usr/bin and grant it execute permissions it will be runnable by all users. The rest of your description is pretty vagure, can you elaborate?

  3. #3
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    You can create an alias in your .bashrc file like:

    Code:
    alias get-new-tasks='/dirname/scriptname'
    Regards

  4. #4
    Linux User Agent-X's Avatar
    Join Date
    May 2005
    Location
    Dimension X
    Posts
    261
    Quote Originally Posted by Franklin52 View Post
    You can create an alias in your .bashrc file like:

    Code:
    alias get-new-tasks='/dirname/scriptname'
    Regards
    Yeah, that's what I was talking about.
    Unfortunately, it's not showing up in the $HOME/.bashrc file.
    Where is it being added to?

    The command works, yeah, but where is it saved?
    Oh, I should add it there. I see.
    Franklin always does a good job at answering my questions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...