sybase - Print sql output messages to a file in shell script -


i need run sql scripts , wanted capture output log file. trying access sybase using isql , below sample file, though echo messages getting printed in log file.

command running on windows box this:

./test.sh > $jobsroot/test/scripts/logtest/test.log 2>&1  #!/bin/sh #ident "%w%"  # echo "trying print"  isql_eod="$isql -s $db_server -u $db_drmsuser -p $db_drmspass -w999"  cd ${jobsroot}/test/scripts/logtest/ echo "echo prints"  $isql_eod  << adde set nocount on  select 'a housekeeper job'  set nocount off adde 

first time doing hence wrong anywhere in this, please me understand , find out faulty line.

seems command missing go in isql, commands executed issuing go on it's own line.

set nocount on  select 'emea vpe vot morning housekeeper job'  set nocount off  go 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -