The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Starting a batch file from a webpage...



Ross/Justin,

I've tried both directions, but the batch file takes 10mins to run, so the
webpage times out, which I think kills the run.
I've looked around and tried a few things but I can't get it to fork a
seperate process and return a 'job started page'.

Any ideas?
-----Original Message-----
From: Ross McKillop [mailto:home@xxxxxxx]
Sent: 06 December 2003 12:21
To: ukha_d@xxxxxxx
Subject: Re: [ukha_d] Starting a batch file from a webpage...


Alternatively, with PHP
<?php
system('mybatchfile.bat');
?>

if you want the output to be visible
<?php
echo system('mybatchfile.bat');
?>

Ross

--
Ross McKillop
On 6 Dec 2003, at 09:18, Justin wrote:

> You should be able to place a batch file in your CGI folder and run it
> from a link etc.
>
> Justin.
>
> Quoting mailinglists@xxxxxxx:
>
>> I'd like to kick off a dos batch file from a button/link on a
>> webpage, this
>> has been discussed before using ASP, but as I don't run IIS/ASP,
I'd
>> like
>> to
>> do the same from Apache maybe using PHP/Perl ???
>> Any ideas?
>>
>> Cheers,
>> Lee


[Non-text portions of this message have been removed]



Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.