Assume following entry in crontab:
50 0 * * 0 rm -f /var/tmp/1;su - inst2 -c 'echo "connect to
t1;\\nreorg table sysibm.syssection;" >/var/tmp/1;db2 -vtsf
inst2 is the owner of an instance with a database t1 in it
When executing within crontab it fails:
connect to t1
DB21016E The Command Line Processor encountered a system error while
the command to the backend process.
Executing on a terminal the content of the file /var/tmp/1 will work
as expected, the content being:
connect to t1;
reorg table sysibm.syssection;
How to let the command line processor work in crontab?