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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I launch Aspect script as a cgi-bin in HTTP server

Status
Not open for further replies.

DTRISNA

Programmer
Nov 27, 2002
3
US
I want to launch an Aspect script (.wax) for Direct Deposit to the bank as a cgi-bin from HTTP web server.
How can I launch PW5.exe DirectDeposit.wax in silent mode (/TRAY ?) so it wont be hung waiting for a screen ?
Can I write an Aspect script so someone can click a URL that will launch the .wax program to do the commands to upload a direct deposit file to the bank ?
Thanks

dtrisna
 
Haven't had a chance to test this yet and has been a while since I've tried this, but one thing you are going to make sure is that the PC is configured to launch .wax files in Procomm and not Windows Media Player (I have directions on how to change this at my site).

As for opening to the tray, you'll probably need to search for .wax in the registry after making the change mentioned above and add /TRAY to the command line (will be something like pw5.exe %1 I think). Keep in mind that the Procomm splash screen will still appear when it is launched.

 
It works as cgi-bin, I put this page DDeposit.cgi and put it on the cgi-bin directory.
I use /TRAY to minimize it and send it to background (with ampersand & ).
dtrisna

#!c:/mks/mksnt/sh.exe

c:/Apps/Procomm/pw5.exe c:/apps/DDeposit.wax /TRAY &
#
if [ "$REQUEST_METHOD" = "POST" ]; then
read QUERY_STRING
fi

echo "Content-type: text/html"
echo ""
echo "<HEAD>"
echo "<TITLE>Submit Direct Deposit via Encrypted FTP</TITLE>"
echo "</HEAD>"
echo "<BODY>"
echo "<H2><font color=blue>Direct Deposit has been submitted from &nbsp;</font>
</B><font color=red>"$REMOTE_ADDR"</font></H2>"
echo "<p> <font face="Arial, Helvetica, sans-serif" size="4"><font color=navy>Please do not close yo
ur browser until the script <b>has been completely executed.</b>(estimate time 1 minute) <br>An emai
l confirmation will be sent to you when the direct deposit file is successfully uploaded to the bank
.</br></font><p>"
echo "<HR>"
echo "</BODY>"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top