Script for to kill the process Ids when restarting the unix server

Hi,

I need a script to kill the process Ids for the user ABC.
I prepared the following script after that while logging with user therough script i am not sure how to pass the user name and password.Can ou modify the script and help me out.

#!/bin/bash
for filesize in $(ls -ltr | grep username | awk '{print $2}')
do
echo  `su -a ABC`
echo
done

Im sure there are alternatives:
What is you are trying to avoid?
What is this specific user? (a software ?)
Are are these processes?
killing at reboot is not "standard", Not letting such user connect or process to run till... is more...

I just want to kill the process ids through script for the user ABC.
I wrote the script until selecting the process Ids for the user
But i am logging with some other user other than ABC.
While kill the process ids i have to login with the User respectively and killing when maually doing.
For example my user is : myadm i want to kill the process id of the user ABC.
So in script itself i have to switch the user respectively and killing process IDS.
This is my requirement.

If my script is not correct atleast some extend can you please modify the script and please let me know.

Thanks in advance.

Is the command killall available on your system?
The following command should do what your script intends to do:

killall -u username

Like vbe, it is not clear to me what you try to accomplish...

I checked not available.
Is there any way to kill all the process IDs for the specific user at a time?