Hi,
I wrote a KSH script and running it on HP-UX machine
I am running one script in background.
My script is at location
$HOME/myScript/test/background_sh
When I view my script in background with psu commend
> psu | grep background_sh
I see following output
UID PID PPID C STIME TTY TIME COMMAND
<user> 1234 1 9 19:50:04 pts/7 0:00 /usr/bin/ksh /abc/def/myScript/test/background_sh
Now If i move this script to different location say
$HOME/myScript/newDir/background_sh
and execute script again and try to see it in background with same psu command, i see following output
UID PID PPID C STIME TTY TIME COMMAND
<user> 4321 1 9 19:58:04 pts/7 0:00 /usr/bin/ksh /abc/def/myScript/newDir/background_sh
Basically, i don't want to see the full path when i use psu commend to see my script in background, and i want to see my script something like following
UID PID PPID C STIME TTY TIME COMMAND
<user> 4321 1 9 19:58:04 pts/7 0:00 background_sh
How i can achieve this?