Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
I have some script which logs into sqlplus, execute some commands. After sql command execution, I want to execute remaining part of the script. but everytime at exit from sqlplus, it prompts bash/shell ( e.g bash-3.00$ ). here is the code-- ......... sqlplus -s sys/admin as SYSDBA <<ENDOFSQL create or replace directory dumpdir as '$pwd'; grant read,write on directory dumpdir to pms; exit; ENDOFSQL
if test $? -eq 0 then cd $ORACLE_HOME/bin expdp pms/pms123 directory=dumpdir dumpfile=$str1 else echo "Error: the SQL Plus command failed. Error code: $?" exit 1 fi ........ It never executes the lines below ENDOFSQL. any one have some idea for this issue?
Summary: I am trying to get a script to run over ssh that adds a user or can take one away by means of filemaker pro. I used the command parameter right from ssh. If I login as root through ssh it runs. If I...
Summary: Hi, I just started to learn awk/sed/grep and we need to write a shell script which will randomly choose 2 numbers and from those numbers pick words out of a dictionary file. There is more but thats wh...