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
Post a Comment