home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.sybase
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!lbertoli
- From: lbertoli@magnus.acs.ohio-state.edu (Lawrence E Bertolini)
- Subject: Re: Hiding a password while dumping
- Message-ID: <1992Nov9.132919.28336@magnus.acs.ohio-state.edu>
- Sender: news@magnus.acs.ohio-state.edu
- Nntp-Posting-Host: bottom.magnus.acs.ohio-state.edu
- Organization: The Ohio State University
- References: <1688@anagld.analytics.com>
- Date: Mon, 9 Nov 1992 13:29:19 GMT
- Lines: 19
-
- To supply a password to isql, without coding it on the command line, try:
-
- isql -Usa -Sservername << !
- `cat .x`
- `cat $1`
- !
-
- where ".x" contains your password, and $1 is the name of the file
- containing your dump database command.
-
- The "<< !" is called a "here document", and redirects to stdin everything
- until the "!" is found in column 1. The two cat commands are enclosed in
- grave's, so that the output of the cat commands (i.e. the contents of the
- files .x and $1) are part of the "here document".
- --
- +-----------------------+-------------------------------------------------+
- | Larry Bertolini | "Patriotism is your conviction that this country|
- | Ohio State University | is superior to all other countries because |
- | University Systems | you were born in it." - George Bernard Shaw |
-