Robert P. J. Day wrote:
Yup, Just Googled it and "shell functions" also look very usefull.. Sort of a basic form of stored procedure.. :)On Sat, 21 Feb 2004, WipeOut wrote:
Jeff Vian wrote:
Well you learn something new every day.. I did not know about "alias" for complex command lines..WipeOut wrote:
Quite simple really.. I usually need to map at least 3 ports to work across the ssh link on each of the servers I am accessing.. So the command line would end up being something like this..Easy enough to either create a script or an alias per server. Then the brain does not have to remember all that each time
ssh -Cg -L xx:<ip>:xx -L yy:<ip>:yy -L zz<ip>:zz <server name>
This is a real PITA to remember or have to type out each time I want to connect..
and if it's a little too complicated for an alias (that is, it needs an argument or two), there's always shell functions.
rday
I have to say the Linux shell (specifically bash which I am getting to know fairly well in terms of commands and scrtipting) is very good.. My perl skills are rubbish but so far I have been able to do quite a lot with stratight forward bash scripts..
Later..