Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem in SQSH

Status
Not open for further replies.

parbhani

Technical User
Jul 3, 2002
125
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top