As was previously mentioned, problems starting services from services can
probably be attributed
to some sort of privilege problem with logging the service on from the local
system account.
The easiest way to determine if this is what is causing the problem is to
have the scheduler
service logon to the same interactive account which is able to successfully
run the command
file.
Also, can you verify that the command file is actually getting executed ?
Note that the command file itself must reside in the system32 directory or
the service won't find it
because no search path is present.
I notice that you are redirecting the output of your command file, can you
please post this output when
the failure occurs ?
Pete Tanenhaus, ADSM NT Client Development
---------------------- Forwarded by Pete Tanenhaus/San Jose/IBM on 08/24/98
4/98
05:07 PM ---------------------------
ADSM-L AT VM.MARIST DOT EDU on 08/24/98 01:45:27 PM
Please respond to ADSM-L AT VM.MARIST DOT EDU
To: ADSM-L AT VM.MARIST DOT EDU
cc:
Subject: Re: Pre and Post Schedules
Here are the files..
<<postsched.cmd>> <<presched.cmd>>
They are simple... but do not run..
David Beardsley
Sr. Technical Programmer
Winn Dixie Stores Inc.
WWW.WINNDIXIE.COM <http://WWW.WINNDIXIE.Com>
"Good judgment comes from experience, and a lot of that comes from bad
judgment."
-----Original Message-----
From: Pete Tanenhaus [mailto:tanenhau AT US.IBM DOT COM]
Sent: Monday, August 24, 1998 4:35 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: Pre and Post Schedules
Please post (or send to me directly) the command file
you are trying to execute
from the
scheduler service and I'll take a look.
Pete Tanenhaus, ADSM NT Development
---------------------- Forwarded by Pete Tanenhaus/San
Jose/IBM on 08/24/98
04:18 PM ---------------------------
ADSM-L AT VM.MARIST DOT EDU on 08/24/98 01:11:24 PM
Please respond to ADSM-L AT VM.MARIST DOT EDU
To: ADSM-L AT VM.MARIST DOT EDU
cc:
Subject: Re: Pre and Post Schedules
I have fully qualified names.. I am wondering where to
check the admin
for a null character in these options. According to what
I have found
out that could cause this problem also... and what would
I put in there
so that the clients that need schedules can run them and
the ones that
do not will not error.?
David Beardsley
Sr. Technical Programmer
Winn Dixie Stores Inc.
WWW.WINNDIXIE.COM <http://WWW.WINNDIXIE.Com>
"Good judgment comes from experience, and a lot of that
comes from bad
judgment."
-----Original Message-----
From: Pete Tanenhaus
[mailto:tanenhau AT US.IBM DOT COM]
Sent: Monday, August 24, 1998 3:46 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: Pre and Post
Schedules
Also keep in mind that when a service
runs under the
local system account there
is no
environment, and therefore PATH isn't
defined, so any
file or pathnames
referenced in
the pre/post schedule command must be
fully qualified.
This can lead to some confusion because
a command file
which runs under an
interactive account may not necessarily
run under the
local system account.
You can also get around these problems
by having the
service logon as an
interactive account.
Pete Tanenhaus, ADSM NT Client
Development
---------------------- Forwarded by Pete
Tanenhaus/San
Jose/IBM on 08/24/98
03:29 PM ---------------------------
ADSM-L AT VM.MARIST DOT EDU on 08/24/98
12:20:52 PM
Please respond to ADSM-L AT VM.MARIST DOT EDU
To: ADSM-L AT VM.MARIST DOT EDU
cc:
Subject: Re: Pre and Post Schedules
we are not using the pre and post. I
have used these
command with other
backup utilities. You need to verify the
account has the
privelige to start
and stop the services. Check what
accounts can do this
in the control panel
under services. if you can login as the
adsm client try
adn run them from
the command line.
|