![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | ||
buzzbob
Newbie
Joined: January 05 2005 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: Scripts to connect mvbase serversPosted: January 05 2005 at 8:23am |
|
|
I would like to run a script at my corporate site that would RUN FTBP FTPICK in receive mode, then open a telnet session to one of our other sites (using VPN), run a BASIC program that would run FTPICK multiple times to send data back to the corporate site. When completed the script would then connect to the next site .... until all sites have been processes. I just need some inital guidance on getting started.
|
||
![]() |
||
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: January 12 2005 at 10:32am |
|
|
Hi Bob -
This is a fairly complex problem. Here is how I would approach it. First, create a session file that you can use for each of the remote sites and save it. Then, on each remote machine, create a special user ID for this function. Use a logon PROC to run the FTPICK send function, using STON or DATA statements to feed the FTPICK prompts. The logon PROC can automatically log off when FTPICK is done. On the local site, create the connection script in a BASIC program and execute it using the escape sequence for running scripts. See one of the sample programs in ...\Atwin\Samples\Pickbp for an example. The program would be something like:
You will need to customize the login sequence, but you should get the idea from the sample code. Next, EXECUTE "FTPICK" and use DATA statements to initiate the receive function on the local machine. When done, use another script to close the remote session:
When you get this working, could you post the results? Thanks, Pete |
||
![]() |
||
buzzbob
Newbie
Joined: January 05 2005 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: January 28 2005 at 2:02am |
|
|
Pete,
So far this is progressing well. However, I cannot get FTPICK in receive mode to terminate after the file has been transferred without my intervention. All the calls to FTKERMIT pass a '0' to inhibit this. I guess what I'm asking is if the latest version passes the 'ONESHOT' variable to allow for control. |
||
![]() |
||
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: February 15 2005 at 5:01am |
|
|
Hi Bob -
The sending machine can use a small script to terminate the FTPICK receive mode. Use:
Thanks, Pete |
||
![]() |
||
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |