Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Posts
    13

    Unanswered: passing unix output into a sql varible

    Good morning all,

    I want to be able to take a unix output and pass it into a sql varible.

    the unix output is the value of the 'tput cols' and 'tput lines' and placing those output into the set linesize XXX and set pagesize XXX repectively

    Any ideas?

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    Code:
    COLS=`tput cols1
    LINES=`'tput lines` 
    sqlplus <<EOF
    / 
    set linesize ${COLS} and set pagesize ${LINES}
    SELECT...
    exit
    EOF
    It is called a "here script"
    Last edited by anacedent; 07-16-08 at 15:11.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Jul 2007
    Posts
    13
    What about in an active sqlplus session

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •