|
From my pc:
From th i:RUNRMTCMD CMD(' net time') RMTLOCNAME('\\winserver' *IP) either with my network login or without, I get the following:
RunRmtCmd should work. You need to do a "net start [servicename]"
I've also used Aaron Bartell's RPG2DeskTop utility to kick off jobs on a Win PC.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry C. Adams
Sent: Tuesday, June 07, 2011 9:48 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Network task
John,
By "nudged" it sounds like you want to restart the service. I forget what
it's called on Windows systems, but would something like RUNRMTCMD work for
you?
Jerry C. Adams
IBM i Programmer/Analyst
"I've had a perfectly wonderful evening. But this wasn't it." -Groucho Marx
--
A&K Wholesale
Murfreesboro, TN
615-867-5070
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of jmmckee
Sent: Tuesday, June 07, 2011 10:56 AM
To: Midrange Systems Technical Discussion
Subject: Network task
From a DOS command line, I can perform some simple tasks on anothercomputer. One, for example, is net time \\computername
Is there a way of doing this on the i?
We have a service on a Windows server that needs to be nudged at apparently
random intervals. On that specific server, a service is stopped and
restarted. We have a program on the i that can indicate whether the remote
computer service needs to be nudged. What I would like to do is have that
program be able to do that nudging. But, that appears to be based on
understanding what happens when a net time \\computername is performed. Is
that command using a networking function that the i does not have?
John McKee
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.