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 ...
- 10-22-2007 #1
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.
- 10-22-2007 #2Linux 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?
- 10-22-2007 #3Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
You can create an alias in your .bashrc file like:
RegardsCode:alias get-new-tasks='/dirname/scriptname'
- 10-24-2007 #4
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


Reply With Quote
