![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Executing a shell script from windows;script present in unix | rajneesh_kapoor | UNIX for Advanced & Expert Users | 4 | 05-08-2009 02:54 PM |
| help needed with creating challenging bash script with creating directories | I-1 | Shell Programming and Scripting | 7 | 04-29-2009 05:33 AM |
| (Urgent):Creating flat file using sql script and sqlplus from UNIX Shell Script | praka | Shell Programming and Scripting | 6 | 04-15-2009 06:09 AM |
| Accessing aliases within a shell script | cooldude | Shell Programming and Scripting | 9 | 07-18-2008 12:03 PM |
| RSH use for executing a script | frustrated1 | Shell Programming and Scripting | 6 | 10-02-2003 08:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Creating and Executing a script of aliases in AIX
hi, I am trying to create a script in AIX (5.3 I think), then run it. here's what I have:
[me@compy] /home/me $ vi first.aliases ... alias cdblah='cd /blah' alias cdho='cd /ho' alias ssr='sudo su - random' ~ ...end of first.aliases [me@compy] /home/me $ ./first.aliases [me@compy] /home/me $ ssr ksh: ssr: not found. [me@compy] /home/me $ alias ssr='sudo su - random' [me@compy] /home/me $ ssr [YOU HAVE NEW MAIL] [random@compy] /home/random $[COLOR="#738fbf"] ---------- Post updated at 03:56 PM ---------- Previous update was at 03:40 PM ---------- . ./first.aliases is how I have to run the file in order for it to work, but when I switch users, the aliases don't stick. any idea how to fix that? maybe make it run on start-up for all users? maybe put it in /.profile ? |
![]() |
| Bookmarks |
| Tags |
| aix, alias, ksh, script writing, sudo |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|