Hi all,
I've been trying to set up my first permanent alias and I'm running into a problem now that Im not sure what to do about. For some reason when I want to start my vpn software I have to use this series of commands (my system admin set it up), rather than the gui interface. This is fine but I'd like to use an alias for it.
The commands are:
And then I type in my password and the program runs.
I want to set up an alias for this so I put this in my .bash_aliases file:
[/code]
When I try to use my new alias it asks me for my password for sudo but then gives me this error:
Why does this command not work inside the alias but works fine when I do it by hand?
Thanks
I've been trying to set up my first permanent alias and I'm running into a problem now that Im not sure what to do about. For some reason when I want to start my vpn software I have to use this series of commands (my system admin set it up), rather than the gui interface. This is fine but I'd like to use an alias for it.
The commands are:
Code:
$ cd /opt/cisco/vpn/bin $ sudo ./vpnui
I want to set up an alias for this so I put this in my .bash_aliases file:
Code:
[code]alias vpn='cd /opt/cisco/vpn/bin | sudo ./vpnui'
When I try to use my new alias it asks me for my password for sudo but then gives me this error:
Code:
./vpnui: command not found
Thanks
Comment