in reply to Changing the title of a process

Modify $0.

Or, if you want to exec a process and change its name:

exec {'/bin/csh'} '-sh'; # pretend it's a login shell
(Taken directly from exec).