unix - scanning of queues cmd _error _fatal _notqtstr value <sqyd> is not a quoted string -


#!/bin/ksh line in `cat $file.txt`  do  $home/mqscmd.exe scan $line \queue_manager="sqyd" $line done 

here when introduce \queue_manager="sqyd" following error,.. need mention queue manager scan queue.

#!/bin/ksh while ifs= read -r line      "$home"/mqscmd.exe scan "$line" 'queue_manager="sqyd"'     "$line" done < file.txt 

use while-read loop demonstrated iterate on lines of file. loop show in question iterates on words of file.

it sounds mqscmd.exe program needs see literal quotes, use quoting mechanism shown: inner double quotes protected outer single quotes. alternately omit output quotes , esacape double quotes: queue_manager=\"sqyd\"


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -