Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

./1.sh: Syntax error at line 1 : `

$
0
0
Code:

function user {
        sqlplus primeit@$ORACLE_SID/primeit <<EOF
      select user_name from test;
        EOF
        }

function gen {
        genpwdfile dec -in $1 -out $2
        echo $1
        echo $2
        }

function reset {
        sqlplus primeit@$ORACLE_SID/primeit <<EOF
        select user_name from user;
        EOF
        }

---------- Post updated at 05:28 AM ---------- Previous update was at 05:27 AM ----------

This is error i am getting when m trying to use functions such "USER" but when i am trying to access same directly on the command line it goes to sql without an issue.

Viewing all articles
Browse latest Browse all 16232

Trending Articles