Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Terminal mode from FTP mode?

Status
Not open for further replies.

EDHills

Programmer
Jan 24, 2007
35
US
I've been digging, but maybe someone knows a shortcut

The goal:
In the middle of iterating through a list of phone #s, creating capture files and then FTPing them to an FTP server

The current situation:
I have it ftping the files over and now, I'm ready to process the next phone number and Procomm is in FTP mode. The script pauses at that point. If I click on the "Data Terminal" button, the script then continues.

The heart of the question:
Does anyone know how to programmatically switch from FTP mode to Data Terminal mode?

Work around IS available:
I can just ftp the files after the entire list is processed, but that slows down the whole automation process significantly.

thanks in advance

As always, if I find it, I'll post the answer here myself


 
Here is a example from Procom Help, unfortulatly it don't work for me. If I am in Telnet mode and run the below script or run "pwmode 0" from within a script nothing changes ?


pwmode

Places Procomm Plus into one of six execution modes.

TERMINAL A keyword which places Procomm Plus into Terminal mode.
FTP A keyword which places Procomm Plus into FTP mode.
MAIL A keyword which places Procomm Plus into Internet Mail Client mode. If there is no mail serveraddress specified in Setup, a switch to Mail mode will result in a dialog prompt.
NEWS A keyword which places Procomm Plus into News Reader mode. If there is no news serveraddress specified in Setup, a switch to News mode will result in a dialog prompt.

TELNET A keyword which places Procomm Plus into Telnet mode.
integer A value from 0 (zero) to 5 which places Procomm Plus into the associated mode, listed above.

Example

proc main
if $PWMODE ; if Procomm Plus is in a mode other than data terminal
pwmode 0 ; switch to data terminal mode
endif
endproc

$PWMODE

An integer value that contains the current execution mode of Procomm Plus. Possible values are:

0 Procomm Plus is in Terminal mode.
1 Procomm Plus is in FTP mode.
2 Not used anymore.
3 Procomm Plus is in MAIL mode.
4 Procomm Plus is in NEWS mode.
5 Procomm Plus is in TELNET mode.

 
Pwmode got broken somehow in 4.8, but below is a workaround I came up with a while back:

With version 4.8 of Procomm Plus, it is not possible to switch to FTP, terminal, or telnet mode using the pwmode command. As a workaround for this issue, you can use menuselect PWMENU 500 to switch to terminal mode, menuselect PWMENU 321 to switch to telnet mode, and menuselect PWMENU 322 to switch to FTP mode.

 
thanks, I finally looked for a work around solution, and that is I ftp a file at a time using a batch file.. bummer that Aspect doesn't wait for the command to return, but I've come up with a work around for that also..

Aspect.. the language of work arounds ;)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top