From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076340321787.tru64-unix-managers.marc@archive.invalid> From: Guy Dallaire Date: Fri, 25 Oct 1996 00:11:03 +0000 To: tru64-unix-managers Subject: INFO Requested: How does polycenter scheduler 3.0 submit jobs ? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076340321787 Does anyone know how the scheduler agent submits jobs under Digital UNIX ? I looked in the documentation and saw no valuable information. For example, when I have the piprod account run a job in the lpprod account, here is what I get in a ps -ef listing (excerpt) What bugs me is the "- -c /var/sched/sched_agent_job_script.ksh (sh)" entry. What is the '-' process ? What command could have triggered such a process ? I understand that the scehduler agent probably run under the name of root and starts the processes in the target user acount but how can it arrange to have the targets .profile to be processed ? The rsh command does not seem to source the profile.... USER PID PPID %CPU STARTED TTY TIME COMMAND root 21230 1 0.0 Oct 23 ?? 12:58.13 /var/sched/sched_agent root 23812 1 0.0 Oct 23 ?? 0:09.44 /opt/dcelocal/bin/rpcd root 23862 23885 0.0 Oct 23 ?? 0:46.15 sqlexec sched_db dgeux1 root 23864 1 0.0 Oct 23 ?? 1:04.50 /var/sched/sched_listener root 23870 1 0.0 Oct 23 ?? 0:15.19 /var/sched/sched_txm root 23884 23870 0.0 Oct 23 ?? 0:26.23 sqlexec sched_db dgeux1 root 23885 1 0.0 Oct 23 ?? 0:27.96 /var/sched/sched_engine root 26488 27325 0.0 09:03:14 ?? 0:00.01 sh -c /usr/bin/X11/dxconsole piprod 29562 29586 0.0 17:26:30 ?? 0:00.01 sh -c /usr/bin/X11/dxconsole piprod 29576 29580 0.0 17:26:29 ?? 0:00.02 sh /usr/var/X11/xdm/Xsession lpprod 30271 30556 6.0 19:26:37 ?? 1:52.47 lp921c lpprod 30544 21230 0.0 19:26:33 ?? 0:00.02 - -c /var/sched/sched_agent_job_script.ksh (sh) lpprod 30556 30569 0.0 19:26:36 ?? 0:00.10 ksh /var/sched/sched_agent_job_script.ksh lpprod 30569 30544 0.0 19:26:33 ?? 0:00.03 ksh /var/sched/sched_agent_job_script.ksh oracle 30573 30271 51.0 19:26:37 ?? 14:17.95 oraclelpprod (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq))) lpprod 29238 30310 0.0 18:55:58 ttyp2 0:00.34 -ksh (ksh) piprod 28860 29587 0.0 17:26:34 ttyp5 0:00.33 - (ksh) Does it use su, rsh or what ? I'm wondering which mechanism is used. This is a low priority request, answer my question only if you have the time to do so, I'm just curious... Another question: Suppose a user does not set the PATH in it's .profile (assuming he uses the Bourne or Korn Shell). Who sets the default path to /bin:/usr/bin ? Looking at the /etc/profile only shows that the PATH variable is exported but NEVER set. Does the "login" program set a default PATH to /bin and /usr/bin (which on my system are the same) ? Many thanks Guy Dallaire dallaire@total.net "God only knows if god exists"