in reply to Changing the title of a process
Or, if you want to exec a process and change its name:
exec {'/bin/csh'} '-sh'; # pretend it's a login shell [download]