Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7738 > unrolled thread
| Started by | Fastian <abdulbasit.fast@gmail.com> |
|---|---|
| First post | 2012-12-06 20:53 -0800 |
| Last post | 2012-12-07 07:13 -0600 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.php
How to Prevent Apache Server From Hanging while running a batch file? Fastian <abdulbasit.fast@gmail.com> - 2012-12-06 20:53 -0800
Re: How to Prevent Apache Server From Hanging while running a batch file? Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-06 23:59 -0500
Re: How to Prevent Apache Server From Hanging while running a batch file? Fastian <abdulbasit.fast@gmail.com> - 2012-12-06 22:07 -0800
Re: How to Prevent Apache Server From Hanging while running a batch file? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-12-07 09:33 +0100
Re: How to Prevent Apache Server From Hanging while running a batch file? Robert Heller <heller@deepsoft.com> - 2012-12-07 07:13 -0600
| From | Fastian <abdulbasit.fast@gmail.com> |
|---|---|
| Date | 2012-12-06 20:53 -0800 |
| Subject | How to Prevent Apache Server From Hanging while running a batch file? |
| Message-ID | <39b1ef22-9d4c-4499-8c4b-c227ade150d5@googlegroups.com> |
I am using xampp on Windows platform.I am running a batch file with exec() command from my php script. It works well when user gives correct input and batch file completes its execution properly. But if the user give some wrong input and batch file remains unable to complete its execution, apache server hangs. Then I have to restart the server. I want that the apache should not hang and it should not be dependent on the execution of the batch file. Just I should be able to correct my input instead of restarting the xampp. Can anyone help?
[toc] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2012-12-06 23:59 -0500 |
| Message-ID | <k9rt3o$sn$1@dont-email.me> |
| In reply to | #7738 |
On 12/6/2012 11:53 PM, Fastian wrote: > I am using xampp on Windows platform.I am running a batch file with exec() command from my php script. It works well when user gives correct input and batch file completes its execution properly. But if the user give some wrong input and batch file remains unable to complete its execution, apache server hangs. Then I have to restart the server. > > I want that the apache should not hang and it should not be dependent on the execution of the batch file. Just I should be able to correct my input instead of restarting the xampp. > > Can anyone help? > Fix your batch file so it completes execution whether or not the input is correct. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Fastian <abdulbasit.fast@gmail.com> |
|---|---|
| Date | 2012-12-06 22:07 -0800 |
| Message-ID | <45aaa074-04f5-43b5-b276-b45b007db52f@googlegroups.com> |
| In reply to | #7739 |
On Friday, December 7, 2012 9:59:31 AM UTC+5, Jerry Stuckle wrote: > On 12/6/2012 11:53 PM, Fastian wrote: > > > I am using xampp on Windows platform.I am running a batch file with exec() command from my php script. It works well when user gives correct input and batch file completes its execution properly. But if the user give some wrong input and batch file remains unable to complete its execution, apache server hangs. Then I have to restart the server. > > > > > > I want that the apache should not hang and it should not be dependent on the execution of the batch file. Just I should be able to correct my input instead of restarting the xampp. > > > > > > Can anyone help? > > > > > > > Fix your batch file so it completes execution whether or not the input > > is correct. > > > > -- > > ================== > > Remove the "x" from my email address > > Jerry Stuckle > > JDS Computer Training Corp. > > jstucklex@attglobal.net > > ================== Ok. My batch file is as follows: latex 1.tex dvipng 1.dvi copy 11.png question-preview The first command do not runs successfully due to invalid input. Can you please suggest that how can I fix this batch file so that it should work independent of the input.
[toc] | [prev] | [next] | [standalone]
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Date | 2012-12-07 09:33 +0100 |
| Message-ID | <aidnubFb8enU1@mid.uni-berlin.de> |
| In reply to | #7740 |
Am 07.12.2012 07:07, schrieb Fastian: > On Friday, December 7, 2012 9:59:31 AM UTC+5, Jerry Stuckle wrote: >> On 12/6/2012 11:53 PM, Fastian wrote: >> >>> I am using xampp on Windows platform.I am running a batch file with exec() command from my php script. It works well when user gives correct input and batch file completes its execution properly. But if the user give some wrong input and batch file remains unable to complete its execution, apache server hangs. Then I have to restart the server. >> >>> >> >>> I want that the apache should not hang and it should not be dependent on the execution of the batch file. Just I should be able to correct my input instead of restarting the xampp. >> >>> >> >>> Can anyone help? >> >>> >> >> >> >> Fix your batch file so it completes execution whether or not the input >> >> is correct. >> >> >> >> -- >> >> ================== >> >> Remove the "x" from my email address >> >> Jerry Stuckle >> >> JDS Computer Training Corp. >> >> jstucklex@attglobal.net >> >> ================== > > Ok. My batch file is as follows: > > latex 1.tex > dvipng 1.dvi > copy 11.png question-preview > > The first command do not runs successfully due to invalid input. Can you please suggest that how can I fix this batch file so that it should work independent of the input. > Ask the latex people. In the default configuration, on error latex switches to an input prompt to ask the user to correct it. /Str.
[toc] | [prev] | [next] | [standalone]
| From | Robert Heller <heller@deepsoft.com> |
|---|---|
| Date | 2012-12-07 07:13 -0600 |
| Message-ID | <tZmdnZO6W-YedlzNnZ2dnUVZ_hWdnZ2d@giganews.com> |
| In reply to | #7740 |
At Thu, 6 Dec 2012 22:07:57 -0800 (PST) Fastian <abdulbasit.fast@gmail.com> wrote:
>
> On Friday, December 7, 2012 9:59:31 AM UTC+5, Jerry Stuckle wrote:
> > On 12/6/2012 11:53 PM, Fastian wrote:
> >=20
> > > I am using xampp on Windows platform.I am running a batch file with exe=
> c() command from my php script. It works well when user gives correct input=
> and batch file completes its execution properly. But if the user give some=
> wrong input and batch file remains unable to complete its execution, apach=
> e server hangs. Then I have to restart the server.
> >=20
> > >
> >=20
> > > I want that the apache should not hang and it should not be dependent o=
> n the execution of the batch file. Just I should be able to correct my inpu=
> t instead of restarting the xampp.
> >=20
> > >
> >=20
> > > Can anyone help?
> >=20
> > >
> >=20
> >=20
> >=20
> > Fix your batch file so it completes execution whether or not the input=20
> >=20
> > is correct.
> >=20
> >=20
> >=20
> > --=20
> >=20
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >=20
> > Remove the "x" from my email address
> >=20
> > Jerry Stuckle
> >=20
> > JDS Computer Training Corp.
> >=20
> > jstucklex@attglobal.net
> >=20
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> Ok. My batch file is as follows:
>
> latex 1.tex
> dvipng 1.dvi
> copy 11.png question-preview
>
> The first command do not runs successfully due to invalid input. Can you pl=
> ease suggest that how can I fix this batch file so that it should work inde=
> pendent of the input.
>
Try prepending the 1.tex file with '\batchmode'.
--
Robert Heller -- 978-544-6933 / heller@deepsoft.com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web