× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Rexec <hostas400> -l username "wrksyssts"

-----Original Message-----
From: Angela Wawrzaszek [mailto:awawrzaszek@xxxxxxxxxxxxxxx] 
Sent: Tuesday, September 28, 2004 7:50 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Remote Command


Can you give me an example of how to run the rexec.ece command?   I have
rexec started as a tcp server function.  

Angela Wawrzaszek
Programmer/Analyst
awawrzaszek@xxxxxxxxxxxxxxx
(315) 258-4205
-----Original Message-----
From: Condon, Mike [mailto:M1C@xxxxxxxxxxxxxxxxx] 
Sent: Monday, September 27, 2004 4:18 PM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Remote Command

As a test, what happens if you try to run version 1 & version 2 using
Rexec.exe from a 2000/XP machine?

-----Original Message-----
From: Angela Wawrzaszek [mailto:awawrzaszek@xxxxxxxxxxxxxxx] 
Sent: Monday, September 27, 2004 3:11 PM
To: RPG programming on the AS400 / iSeries
Subject: Remote Command


     We have an application that sits on our mail server.   I am able to
use runrmtcmd to connect to this server and kick off the executable for
it.   All seems fine,  until we just had a new version of this created.
It resides in a different folder and a different .exe name so that we
can have them both run at the same time  while bugs are worked out.   I
can sign on to the mail server and start the job no problem.   However
if I run a cl program to start the job it hangs up.  It is sitting there
on TIMW on the connection string.   

 

   The big difference between the verson 1 and version 2 is that version
2 was made generic and used the registry keys to point to where the
data, log and help files of the app are located,  where version 1 they
were located in a direct path name.   Would this be something that would
confuse the runrmtcmd from beign able to run?  

 

   Can anyone think of any other things I can check to determine why I
cannot run this command remotely?   As I said I can sign on directly to
the machine so I do not believe it is a security issue.  

 

Version 1:

 

         

CHGVAR     VAR(&CMD) VALUE('"\\ServerName\ZANY +     

             ZOFTWARE\NUCOR CONNECT\NUCORCONN.EXE" +  

             /JC:NUTRUCK-R')                          

 

 

RUNRMTCMD  CMD(&CMD) RMTLOCNAME('xxx.xxx.x.xxx' *IP) + 

             RMTUSER(USER) RMTPWD('PASSWORD')      

 

 

 

Version 2:

 

         

CHGVAR     VAR(&CMD) VALUE('"\\ServerName\ZANY +     

             ZOFTWARE\NUCOR CONNECT2\NC2.EXE" +  

             /JC:NUTRUCK-R')                          

 

 

RUNRMTCMD  CMD(&CMD) RMTLOCNAME('xxx.xxx.x.xxx' *IP) + 

             RMTUSER(USER) RMTPWD('PASSWORD')      

 

 

 

 

 

 

 

 

Angela Wawrzaszek

 

 

 

Programmer/Analyst

awawrzaszek@xxxxxxxxxxxxxxx <mailto:awawrzaszek@xxxxxxxxxxxxxxx> 

(315) 258-4205

 

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.