|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
[OpenBSD] bash script in bin folder like CentOS
how i can run script by typing name of file in console like CentOS?
CentOS example : Code:
root# mkdir 600 ~/bin root# vi bin/mycmd echo "$@" root# mycmd arg1 arg2 arg3 argN |
|
||||
Add ~/bin to the user's PATH by placing this stanza in ~/.profile:
Code:
# set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi
__________________
Are you infected with Wetiko? |
|
|||
thanks to Head_on_a_Stick and jggimi.
worked. |
Tags |
bash, bin, script, shell |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
bash script to resize and optimize images using ImageMagick and jpegoptim | demifiend | Programming | 17 | 1st November 2017 07:41 PM |
Bash script cannot execute - Is a directory | guitarscn | Programming | 8 | 6th November 2010 10:25 PM |
[Solved] How to make 2 separate arguments in 1 bash script? | guitarscn | Programming | 1 | 31st August 2010 09:12 PM |
Mounting six CentOS iso images on OpenBSD | J65nko | Guides | 6 | 25th November 2009 10:58 PM |
Is bash included in OpenBSD? | bsdnewbie999 | OpenBSD General | 21 | 2nd August 2008 02:57 AM |