From: "Brian Hancock" Subject: DOSEMU, CGI, Perl, Apache Date: Tue, 15 Nov 2005 16:15:41 +1100 Message-ID: <020c01c5e9a3$9fffa700$6401a8c0@brianx> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; format="flowed"; charset="us-ascii"; reply-type="original" To: linux-msdos@vger.kernel.org Hi, I am new to this mailing list. I am wanting to revitalise an old DOS application for use as a web application. I can run the application under DOSEMU as a normal user, but am not sure how to run it from a CGI script. I am using Perl and as a simplifcation I am trying the following: system("dosemu.bin -D-a -I 'keystroke \"\rlredir d: /home/web1/cgi-bin/dos\rd:\rmyprog.exe\rexitemu\r\'"") or something very similar... Firstly I am using lredir to create a d: drive mapped to a Linux folder, change to that drive, run myprog.exe and then exitemu. When I access the script from a remote browser I get the " The Linux DOSEMU, Copyright (C) 2003 the 'DOSEMU-Development-Team'. This program is distributed ... Enter 'yes' to confirm/continue: " message and that is all.. There is no output from myprog.exe. So I know the dosemu is trying to execute... The server log file shows an error: can't create local /home/www/web1/.dosemu directory and can't create local /home/www/web1/.dosemu/run directory How do you run DOSEMU and DOS applications under CGI? Thanks Brian