we use CA V3R1 SP2.
Is there a chance to initiate a RMTCMD from a PC batch file?
i must start a CL after a certain PC program is finished.
thx for help!
marc
hth
Guillermo
Marc Logemann wrote in message <359C832E...@osnabrueck.netsurf.de>...
****************************************************************************
**
REM *** ROP upload to AS/400 ***
D:\ROP\UPLOAD\RFROMPCB D:\ROP\UPLOAD\PCPOROP0.TFR
REM *** Remote console command to start program ***
RMTCMD /I D:\ROP\UPLOAD\UPLDROP.JOB
****************************************************************************
***
The rfrompcb transfers the file(pcporop0.tfr) to the AS/400.
The RMTCMD /I tells it to use the commands found in the UPLDROP.JOB file.
Here is that file. CALL PGM(*LIBL/PCM0969)
I hope this helps.
Terry
Checking on the PC can be done via Client Access, but is more simple if
you make the PC an FTP-server. Then create a batch-FTP program on the
AS/400 to check for files, but also upload, download, delete.
Yes, You can do this easy from the PC with FTP.
Here is an example of a .BAT:
It first sends a message, then submits a job.
-lines-
ftp -n -s:c:\mylib\script.txt
-more lines-
The script.txt looks like this:
open 165.9.142.111
user as400user as400passw
quote rcmd sndmsg msg('Hi from my PC!') tousr(as400user)
quote rcmd sbmjob cmd(CALL PGM(MYLIB/MYPGM)) job(MYJOB) jobq(MYQUE)
quit
Regards,
Bengt Persson
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
ftp -n -s:c:\mylib\script.txt
In the file script.txt You put whatever commands You like.
For example:
open 111.222.333.444
user as400user as400passw
quote rcmd sndmsg msg('Starting CL-Prog Myprog!') tousr(as400user)
quote rcmd sbmjob cmd(call myprog) job(myjob) jobq(myjobq)
quit
Regards, Bengt Persson.
Question, isn't putting a user id and password in a script that sits
local on your PC a security risk? Someone could just copy the script and
have your login and password.
Just a thought.
--
Richard Knechtel
email(richard dot knechtel at eds dot com)
Centrobe
(Systems Engineer/System Administrator)
(Aspiring AS/400 GURU)
(Aspiring Linux GURU)
(Aspiring Visual Basic Programmer)
The contents of this message express only MY opinion.
This message does not necessarily reflect the policy or views of
my employer, Centrobe. All responsibility for the statements
made in this posting resides solely and completely with the
ME.
I Ex-Spaminate spammers!
See US Code Title 47, Sec.227(a)(2)(B), Sec.227(b)(1)(C)
and Sec.227(b)(3)(C).
Regards, Bengt Persson.
> Question, isn't putting a user id and password in a script that sits
> local on your PC a security risk? Someone could just copy the script and
> have your login and password.
>
> Just a thought.
>
just a thought.
In <35A2B6F7...@cura.net>, on 07/07/98
--
-----------------------------------------------------------
boo...@ibm.net
Booth Martin
-----------------------------------------------------------
I wouldn't trust a Microsoft product for security. I would just get
Apache (it's free also) and do it. You can set up a Linux partition over
a dos one and then use the Apache wed server and do the same thing, with
MUCH less security risk.