Operating System - HP-UX
1830855 Members
2454 Online
110017 Solutions
New Discussion

Strange dtaction behaviour

 
Keith Bourdon
Occasional Contributor

Strange dtaction behaviour

Hi all;

HP-UX 10.20

Try this...

ACTION NewUserAndExecuteAction
{
LABEL NewAction
TYPE COMMAND
ARG_COUNT 0
WINDOW_TYPE NO_STDIO
EXEC_STRING /usr/bin/ksh -c " /usr/bin/X11/xhost +; /usr/dt/bin/dtaction -user userB FinalAction"
DESCRIPTION Log in as other user and run action
}

ACTION FinalAction
{
LABEL LastAction
TYPE COMMAND
WINDOW_TYPE NO_STDIO
EXEC_STRING /usr/bin/ksh -c " /usr/bin/X11/xhost +; /usr/bin/remsh otherMachine -n "/home/me/first -display mymachine:0" "
DESCRIPTION Run process on otherMachine and export it's display to
mymachine
}

When you exit the process "first" you will get an orphaned process running under userB (dtaction...).

Any ideas why?