HP3000-L Archives

September 2002, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Matteson, Todd" <[log in to unmask]>
Reply To:
Matteson, Todd
Date:
Mon, 23 Sep 2002 15:50:36 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (105 lines)
We had these requirements - mission critical application on HP3000 needs to
go to a PC based software package with input file for the PC software
package.  Package processed data, produced output file and we wanted the
HP3000 to retain control of the whole process (FTP-PUT, RCMD, GET).  We
didn't want to pass trigger files-too dependant on timing, etc.

We set up a PC that has the PC software package loaded.  We FTP the file to
the PC server and use a 3rd party FTP product that supports the RCMD
command.  This allowed our HP3000 to control the running of the PC process.

That said, you do leave security holes on the PC with the FTP software
loaded on it.  I imagine someone could issue the del *.* command through FTP
software if they really wanted to.

MS FTP doesn't support the RCMD command, as far as I could tell---maybe with
an add on disk that we didn't have.  The network guys finally bought into
this solution when we set up a separate PC with just this FTP and packaged
software on it.

Hope that helps!

Todd



-----Original Message-----
From: Tracy Pierce [mailto:[log in to unmask]]
Sent: Monday, September 23, 2002 3:09 PM
To: [log in to unmask]
Subject: Re: [HP3000-L] Is it possible to execute a BAT file from the
HP3000?


and in case it hasn't already been mentioned, via Reflection...

:print r1hp2pc.obj
parm AppName="c:\winnt\notepad.exe",ParmOrFName="c:\autoexec.bat"
option nolist
comment R1PCRUN invokes a program on your PC via Reflection
setvar esc,chr(27)
echo !ESC&oG                                     > vbacmd
echo sub main                                    >> vbacmd
comment echo application.msgbox "in 3rd command file!"   >> vbacmd
echo application.shell "!AppName","!ParmorFName" >> vbacmd
echo end sub                                     >> vbacmd
echo !ESC&oH                                     >> vbacmd
print vbacmd

which by default shows your autoexec file via notepad; in case not perfectly
clear, you can invoke this via
:r1hp2pc.obj
or with parms as you like...
:r1hp2pc.obj "c:\temp\magic.html"
...which will bring up <whatever browser> and load magic.html

Tracy Pierce




> -----Original Message-----
> From: Derek [mailto:[log in to unmask]]
> Sent: Monday, September 23, 2002 11:44 AM
> To: [log in to unmask]
> Subject: Is it possible to execute a BAT file from the HP3000?
>
>
> This would seem to be the poor man's version of setting up
> the batch file.
> At least there is nothing to buy to make this work.
>
> You can set up a permanantly running batch file on the pc with the
> following.  It will only process a file once the HP has FTP'd
> it and then
> will wait until a file is again FTP'd.
>
> This batch file can also be set up as a "service" on the pc
> so that it will
> start automatically each time the pc is re-booted.
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;Q243486
>
>
> @echo off
> :start
> if exist download.dat goto :dowork
> goto :start
> :dowork
> echo starting to process downloaded file
> ...
> put in your processed to run here
> ...
> echo finished doing work
> goto :start
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2