Hi there ,
I use sqsh for querying database .
If I run a command in sqsh ,
sp_help SomeTableName ; | /usr/myself/myscript
This works fine, means the output of sp_help is redirected to one of my scripts, /usr/myself/myscript and I get the output.
What I want to do is define a alias or something similier which will do it like ,
SomeAlias SomeTableName
and the same task is achived.
How can I define the alias ? what should be the exact syntax I can mention in .sqshrc file ? what other options do I have ?
Please help .
Regards
I use sqsh for querying database .
If I run a command in sqsh ,
sp_help SomeTableName ; | /usr/myself/myscript
This works fine, means the output of sp_help is redirected to one of my scripts, /usr/myself/myscript and I get the output.
What I want to do is define a alias or something similier which will do it like ,
SomeAlias SomeTableName
and the same task is achived.
How can I define the alias ? what should be the exact syntax I can mention in .sqshrc file ? what other options do I have ?
Please help .
Regards