Erm, why not just write a script which does what you want (perl or sh) and then use sudo to let it run as root (or whomever) without prompting for a password rather than mucking with su in the first place?
In reply to Re: Faster way to do su
by Fletch
in thread Faster way to do su
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |