You can't "pipe" a sudo, gotta use tee instead. But disabling ptrace limiting is a bad idea, since it decreases security. Instead, just add an exception for wine.
First, re-enable ptrace scoping if you disabled it:
echo 1 | sudo tee /proc/sys/kernel/yama/ptrace_scope;
sudo sed -i 's/kernel.yama.ptrace_scope = 0/kernel.yama.ptrace_scope = 1/' /etc/sysctl.d/10-ptrace.conf;
Install libcap2:
sudo apt-get install libcap2-bin
Then, add an exception for Crossover:
sudo setcap cap_sys_ptrace=eip /opt/cxoffice/bin/wineserver;
sudo setcap cap_sys_ptrace=eip /opt/cxoffice/bin/wine-preloader;
Finally, add its libraries to ld.so.conf:
echo /opt/cxoffice/lib/ | sudo tee /etc/ld.so.conf.d/crossover.conf
sudo /sbin/ldconfig
More at:
http://www.codeweavers.com/support/wiki/linux/faq/ubuntu1204
http://askubuntu.com/questions/146160/what-is-the-ptrace-scope-workaround-for-wine-programs-and-are-there-any-risks/153970#153970