Alias a command

Hi

'm executing a java program from my shell script on solaris 9 as

$JAVA_HOME\bin\java -ms32m -mx128m -classpath $CLASSPATH com.abc.fwk,abcServer.abcfwkServer $1 &

where $1 is port number

when i do ps -ef, it shows whole command , i want to give this some alias name as abcProcess, so that i can use this while monitoring, using grep
command and ps -ef shows
b_garima 25954 22952 0 19:03 pts/12 00:00:00 abcProcess 5678
instead of

b_garima 25977 1 6 19:03 pts/12 00:00:00 /usr/java/j2sdk1.4.2_15/bin/java -ms32m -mx128m -classpath ../lib/curfwk-4.20-build1.jar com.abc.fwk.abcServer.abcfwkServer 5678

i was trying to alias this command but its showing same result only not the expected one.

can anyone please help me??
Thanks in advance.

Hi

'm executing a java program from my shell script on solaris 9 as

$JAVA_HOME\bin\java -ms32m -mx128m -classpath $CLASSPATH com.abc.fwk,abcServer.abcfwkServer $1 &

where $1 is port number

when i do ps -ef, it shows whole command , i want to give this some alias name as abcProcess, so that i can use this while monitoring, using grep
command and ps -ef shows
b_garima 25954 22952 0 19:03 pts/12 00:00:00 abcProcess 5678
instead of

b_garima 25977 1 6 19:03 pts/12 00:00:00 /usr/java/j2sdk1.4.2_15/bin/java -ms32m -mx128m -classpath ../lib/curfwk-4.20-build1.jar com.abc.fwk.abcServer.abcfwkServer 5678

i was trying to alias this command but its showing same result only not the expected one.

can anyone please help me??
Thanks in advance.

First off, do not make start multiple threads for the same topic. Secondly, what are you trying to do?

If you create an alias for a command and run the alias, you won't see the alias in the 'ps' output. You will see the actual command. The alias is only at the shell level and does not hold at the OS level. When you execute the alias, the actual command is put in by the shell before calling 'exec'.

If you want to get a more managable command (for monitoring, as you mention), then put the command in a shell script and monitor the script.