#!/bin/sh
O=/opt/coldfusion8/wwwroot/userfiles/file/pat2.txt
LONG=$(python -c "print('M'*5000)")
echo "=== long message arg (2 args) ===" > $O
python -c "print('A'*100)" | /usr/libexec/polkit-1/polkit-agent-helper-1 apache "$LONG" >> $O 2>&1
echo "rc=$?" >> $O
echo "=== long user arg ===" >> $O
LONGU=$(python -c "print('U'*5000)")
python -c "print('A'*100)" | /usr/libexec/polkit-1/polkit-agent-helper-1 "$LONGU" test >> $O 2>&1
echo "rc2=$?" >> $O
cat $O >> $O
