The output of this echo is not passed on to the next command using pipe.
echo 'set foreign_key_checks = 0; truncate table saurabh.bus_services;' |
mysqldump --compact --no-create-info -h192.168.950.180 -uroot -p live pnlbus |
more
I want the set and truncate commands followed by the dump output.