Blank Space problem in unix [message #140426] |
Tue, 04 October 2005 03:29 |
muralish
Messages: 2 Registered: October 2005
|
Junior Member |
|
|
Hi,
This my query
TMP_FILE=/export/home/test.txt
`sqlplus -s username/password@instance <<EOF > ${TMP_FILE}
SET TRIMSPOOL OFF
select sysdate||' ' from dual;
exit
EOF`
The above Script works fine (with correct number of spaces succeeding the sysdate )in my colleague's machine working in a different database on UNIX environment.When it is tried in my machine with SUN Solaris OS V5.8 the space suceeding the sysdate is ignored.Iam unable to move the cursor after the sysdate.This has been checked using vi editor.
NOTE: The script produces exact number of spaces when run using TOAD,Sqlplus etc.,
Number of spaces 8..
Please help
TIA,
Murali
[Updated on: Tue, 04 October 2005 03:31] Report message to a moderator
|
|
|
|
|