The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: alias creation
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-31-2002
randyreese randyreese is offline
Registered User
 

Join Date: Jan 2002
Location: Buffalo, NY
Posts: 2
alias creation

I am trying to set up an alias called "fire" that will allow me to pass an argument(s) along with the command.

#fire program1 restart

the fire alias should resolve to "/etc/rc.d/init.d/" and then stick the "program1" immediatly after the trailing slash so it appears as one command with one argument.

#/etc/rc.d/init.d/program1 restart

I would like to put this alias in my .cshrc file but can't get the alias working?

Thanks.
Forum Sponsor