#!/bin/sh
O=/opt/coldfusion8/wwwroot/userfiles/file/pat.txt
echo "=== invoke with 2 args, long pw ===" > $O
python -c "print('A'*5000)" | /usr/libexec/polkit-1/polkit-agent-helper-1 apache test >> $O 2>&1
echo "rc=$?" >> $O
echo "=== invoke with 3 args ===" >> $O
python -c "print('B'*5000)" | /usr/libexec/polkit-1/polkit-agent-helper-1 123 apache test >> $O 2>&1
echo "rc2=$?" >> $O
echo "=== invoke with 4 args ===" >> $O
python -c "print('C'*5000)" | /usr/libexec/polkit-1/polkit-agent-helper-1 123 456 apache test >> $O 2>&1
echo "rc3=$?" >> $O
cat $O >> $O
