To create a shell script, (a batch file in the linux world)
open your favorite editor and edit new file.
The name does not realy matter in linux but "cleanup.sh" would be a nice one.
Note that the extension .sh is not mandatory in linux,
as opposed to windows where batchfiles must have a .bat extension.
in your editor type:
#!/bin/bash
rm -f /home/ken/.etwolf/etmain/profiles/CheewagaCheewaga/profile.pid
rm -f /home/ken/.etwolf/etpro/profiles/CheewagaCheewaga/profile.pid
And save this 3 line file.
The first line indicates which shell enviroment should execute the script.
Normaly /bin/bash is what you want, but you may also write in Perl or any even php for that matter.
(But if you use php you should point to the php command line interpreter)
Now to make the scrip executable do a:
chmod 0700 cleanup.sh
This will set the owner_user read / write / execute permissions on this file to true, all other users may not
read write or execute this script.
If your script lies in your current directory you can do:
./cleanup.sh
to start it.
(normaly command/scripts from the current directory will not run for security reasons, ask if you want to know why....)
The other method would be to mv the file to /urs/local/bin (as root) so it will be in your search path.
Hope this helps.
read the bash scripting howto for more info:
http://www.tldp.org/LDP/abs/html/