Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7103 > unrolled thread
| Started by | cph <cloudpresshosting@gmail.com> |
|---|---|
| First post | 2012-09-23 16:14 -0700 |
| Last post | 2012-09-27 10:23 -0700 |
| Articles | 12 on this page of 52 — 14 participants |
Back to article view | Back to comp.lang.php
Only Allow exec in CLI cph <cloudpresshosting@gmail.com> - 2012-09-23 16:14 -0700
Re: Only Allow exec in CLI gordonb.1zi9u@burditt.org (Gordon Burditt) - 2012-09-23 20:06 -0500
Re: Only Allow exec in CLI cph <cloudpresshosting@gmail.com> - 2012-09-23 18:30 -0700
Re: Only Allow exec in CLI Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-23 22:26 -0400
Re: Only Allow exec in CLI "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-09-24 13:07 +0200
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-24 12:43 +0100
Re: Only Allow exec in CLI Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-09-24 14:08 +0200
Re: Only Allow exec in CLI Michael Vilain <vilain@NOspamcop.net> - 2012-09-24 10:45 -0700
Re: Only Allow exec in CLI Michael Fesser <netizen@gmx.de> - 2012-09-24 23:57 +0200
Re: Only Allow exec in CLI "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-09-24 14:16 +0200
Re: Only Allow exec in CLI Tim Streater <timstreater@greenbee.net> - 2012-09-24 13:19 +0100
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-24 13:54 +0100
Re: Only Allow exec in CLI Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-09-24 16:04 +0200
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-24 15:14 +0100
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-24 16:09 +0100
Re: Only Allow exec in CLI Tim Streater <timstreater@greenbee.net> - 2012-09-24 19:07 +0100
Re: Only Allow exec in CLI crankypuss <no@email.thanks> - 2012-09-25 02:47 -0600
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-25 11:00 +0100
Re: Only Allow exec in CLI crankypuss <no@email.thanks> - 2012-09-25 04:35 -0600
Re: Only Allow exec in CLI Tim Streater <timstreater@greenbee.net> - 2012-09-25 11:44 +0100
Re: Only Allow exec in CLI crankypuss <no@email.thanks> - 2012-09-25 05:31 -0600
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-25 12:27 +0100
Re: Only Allow exec in CLI Tim Streater <timstreater@greenbee.net> - 2012-09-25 12:41 +0100
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-25 12:52 +0100
Re: Only Allow exec in CLI Tim Streater <timstreater@greenbee.net> - 2012-09-25 14:23 +0100
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-25 14:46 +0100
Re: Only Allow exec in CLI Tim Streater <timstreater@greenbee.net> - 2012-09-25 15:55 +0100
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-25 16:13 +0100
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-25 15:05 +0100
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-25 15:05 +0100
Re: Only Allow exec in CLI crankypuss <no@email.thanks> - 2012-09-25 12:16 -0600
Re: Only Allow exec in CLI Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-25 08:10 -0400
Re: Only Allow exec in CLI Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-25 07:45 -0400
Re: Only Allow exec in CLI Anders Wegge Keller <wegge@wegge.dk> - 2012-09-25 14:57 +0200
Re: Only Allow exec in CLI Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-25 09:03 -0400
Re: Only Allow exec in CLI Anders Wegge Keller <wegge@wegge.dk> - 2012-09-25 15:37 +0200
Re: Only Allow exec in CLI Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-25 12:10 -0400
Re: Only Allow exec in CLI Anders Wegge Keller <wegge@wegge.dk> - 2012-09-25 18:25 +0200
Re: Only Allow exec in CLI Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-25 14:24 -0400
Re: Only Allow exec in CLI crankypuss <no@email.thanks> - 2012-09-25 12:38 -0600
Re: Only Allow exec in CLI Anders Wegge Keller <wegge@wegge.dk> - 2012-09-25 20:45 +0200
Re: Only Allow exec in CLI Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-25 16:08 -0400
Re: Only Allow exec in CLI Michael Fesser <netizen@gmx.de> - 2012-09-25 15:12 +0200
Re: Only Allow exec in CLI Anders Wegge Keller <wegge@wegge.dk> - 2012-09-25 15:39 +0200
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-25 14:35 +0100
Re: Only Allow exec in CLI megazzorro <megazzorro.5jed61@no-mx.httppoint.com> - 2012-09-24 08:22 -0400
Re: Only Allow exec in CLI crankypuss <no@email.thanks> - 2012-09-25 02:39 -0600
Re: Only Allow exec in CLI Martin Leese <please@see.Web.for.e-mail.INVALID> - 2012-09-25 09:10 -0600
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-25 16:17 +0100
Re: Only Allow exec in CLI crankypuss <no@email.thanks> - 2012-09-25 12:20 -0600
Re: Only Allow exec in CLI The Natural Philosopher <tnp@invalid.invalid> - 2012-09-25 19:32 +0100
Re: Only Allow exec in CLI Ryan <rbilesky@gmail.com> - 2012-09-27 10:23 -0700
Page 3 of 3 — ← Prev page 1 2 [3]
| From | Anders Wegge Keller <wegge@wegge.dk> |
|---|---|
| Date | 2012-09-25 20:45 +0200 |
| Message-ID | <87haqm2b7j.fsf@huddi.jernurt.dk> |
| In reply to | #7160 |
crankypuss <no@email.thanks> writes: > On 09/25/2012 12:24 PM, Jerry Stuckle wrote: > > On 9/25/2012 12:25 PM, Anders Wegge Keller wrote: > >> Jerry Stuckle <jstucklex@attglobal.net> writes: > >> > >>> script1; script2; script3; script4 > >> > >> Said the guy who're too afraid to use the php classloader, because he > >> is afraid someone will make a mess of it. > >> > > > > Ah, trolling again? What's the difference between calling script1 in > > the cron job - or in a script which is called by the cron job? Answer: > > nothing. > > Actually there'd be a tiny bit of added overhead due to the nested > script processor if you called it in a script called by the cron job, > so not /exactly/ nothing (but real close). Actually, with the intellectual capabilities Mr. Stuckle ascribes to himself in other advanced contexts, none of the four programs would execute, if he tried to string them together in the same cron job. If the miniscule overhead is of importance, theree are other problems that should be adressed first. -- /Wegge Leder efter redundant peering af dk.*,linux.debian.*
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2012-09-25 16:08 -0400 |
| Message-ID | <k3t304$gqg$1@dont-email.me> |
| In reply to | #7162 |
On 9/25/2012 2:45 PM, Anders Wegge Keller wrote: > crankypuss <no@email.thanks> writes: > >> On 09/25/2012 12:24 PM, Jerry Stuckle wrote: >>> On 9/25/2012 12:25 PM, Anders Wegge Keller wrote: >>>> Jerry Stuckle <jstucklex@attglobal.net> writes: >>>> >>>>> script1; script2; script3; script4 >>>> >>>> Said the guy who're too afraid to use the php classloader, because he >>>> is afraid someone will make a mess of it. >>>> >>> >>> Ah, trolling again? What's the difference between calling script1 in >>> the cron job - or in a script which is called by the cron job? Answer: >>> nothing. >> >> Actually there'd be a tiny bit of added overhead due to the nested >> script processor if you called it in a script called by the cron job, >> so not /exactly/ nothing (but real close). > > Actually, with the intellectual capabilities Mr. Stuckle ascribes to > himself in other advanced contexts, none of the four programs would > execute, if he tried to string them together in the same cron job. > > If the miniscule overhead is of importance, theree are other problems > that should be adressed first. > Once again you have your head up your anal orifice. http://team.macnn.com/drafts/crontab_defs.html It works fine. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Michael Fesser <netizen@gmx.de> |
|---|---|
| Date | 2012-09-25 15:12 +0200 |
| Message-ID | <9bb368526ac8lcs1fsiekfi4q6hjq3i5pg@mfesser.de> |
| In reply to | #7131 |
.oO(Anders Wegge Keller) >Jerry Stuckle <jstucklex@attglobal.net> writes: > >> Why would you even set up a shell script to run the four programs >> from cron? Why not just set cron up to run them itself? > > Can you answer that question yourself? I can think of several >situations where it makes sense. If you cannot see any of those, you >shouldn't comment on this subject. The point was: For just calling several progams you don't need any script - a single one-liner can do that. Micha -- http://mfesser.de/ Fotos | Blog | Flohmarkt
[toc] | [prev] | [next] | [standalone]
| From | Anders Wegge Keller <wegge@wegge.dk> |
|---|---|
| Date | 2012-09-25 15:39 +0200 |
| Message-ID | <87y5jy2pe2.fsf@huddi.jernurt.dk> |
| In reply to | #7133 |
Michael Fesser <netizen@gmx.de> writes: > .oO(Anders Wegge Keller) > > >Jerry Stuckle <jstucklex@attglobal.net> writes: > > > >> Why would you even set up a shell script to run the four programs > >> from cron? Why not just set cron up to run them itself? > > > > Can you answer that question yourself? I can think of several > >situations where it makes sense. If you cannot see any of those, you > >shouldn't comment on this subject. > > The point was: For just calling several progams you don't need any > script - a single one-liner can do that. That would make for one hell of an error-prone crontab. -- /Wegge Leder efter redundant peering af dk.*,linux.debian.*
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-09-25 14:35 +0100 |
| Message-ID | <k3sbun$n7n$1@news.albasani.net> |
| In reply to | #7131 |
Anders Wegge Keller wrote: > Jerry Stuckle <jstucklex@attglobal.net> writes: > >> Why would you even set up a shell script to run the four programs >> from cron? Why not just set cron up to run them itself? > > Can you answer that question yourself? I can think of several > situations where it makes sense. If you cannot see any of those, you > shouldn't comment on this subject. > The actual reason was that its slightly easier to edit a script than a series of cron entries, and I wanted them to definitely happen one after the other, as one connects and stores the data which the next ones process It could have been one larger C file, but in practice splitting it into smaller ones made testing and debugging more 'decoupled' and simplified error handling. -- Ineptocracy (in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.
[toc] | [prev] | [next] | [standalone]
| From | megazzorro <megazzorro.5jed61@no-mx.httppoint.com> |
|---|---|
| Date | 2012-09-24 08:22 -0400 |
| Message-ID | <megazzorro.5jed61@no-mx.httppoint.com> |
| In reply to | #7108 |
Hello. [image: http://s-tubers.info/drinks.gif] ------------------------------------------------------------------------ megazzorro's Profile: http://www.httppoint.com/member.php?userid=20774 View this thread: http://www.httppoint.com/showthread.php?t=64465 Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).
[toc] | [prev] | [next] | [standalone]
| From | crankypuss <no@email.thanks> |
|---|---|
| Date | 2012-09-25 02:39 -0600 |
| Message-ID | <k3rqja1n6g@news3.newsguy.com> |
| In reply to | #7108 |
On 09/24/2012 05:43 AM, The Natural Philosopher wrote: > M. Strobel wrote: >> Am 24.09.2012 01:14, schrieb cph: >>> For security I am looking to add exec() and similar commands to the >>> disable functions setting in php.ini but I do have a need to execute >>> command line commands within a >> cron job I am writing in PHP. >> >> The answer is highly dependent on your system setup, as has been said >> already. >> I would start with a check to see if different .ini files for web >> server and CLI are >> in place already. >> >> /Str. > > I cant imagine why anyone would put PHP in a cron job to start with. > > Shell script or C, or both... I can't imagine why anyone would write a shell script when PHP is available.
[toc] | [prev] | [next] | [standalone]
| From | Martin Leese <please@see.Web.for.e-mail.INVALID> |
|---|---|
| Date | 2012-09-25 09:10 -0600 |
| Message-ID | <k3shgv$hdn$1@dont-email.me> |
| In reply to | #7120 |
crankypuss wrote: > On 09/24/2012 05:43 AM, The Natural Philosopher wrote: >> I cant imagine why anyone would put PHP in a cron job to start with. >> >> Shell script or C, or both... > > I can't imagine why anyone would write a shell script when PHP is > available. Stop whining and use Perl. -- Regards, Martin Leese E-mail: please@see.Web.for.e-mail.INVALID Web: http://members.tripod.com/martin_leese/
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-09-25 16:17 +0100 |
| Message-ID | <k3shtg$4pf$2@news.albasani.net> |
| In reply to | #7142 |
Martin Leese wrote: > crankypuss wrote: > >> On 09/24/2012 05:43 AM, The Natural Philosopher wrote: > >>> I cant imagine why anyone would put PHP in a cron job to start with. >>> >>> Shell script or C, or both... >> >> I can't imagine why anyone would write a shell script when PHP is >> available. > > Stop whining and use Perl. > Pluperfectly Egregious Religious Language -- Ineptocracy (in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.
[toc] | [prev] | [next] | [standalone]
| From | crankypuss <no@email.thanks> |
|---|---|
| Date | 2012-09-25 12:20 -0600 |
| Message-ID | <k3ssm621k2p@news3.newsguy.com> |
| In reply to | #7142 |
On 09/25/2012 09:10 AM, Martin Leese wrote: > crankypuss wrote: > >> On 09/24/2012 05:43 AM, The Natural Philosopher wrote: > >>> I cant imagine why anyone would put PHP in a cron job to start with. >>> >>> Shell script or C, or both... >> >> I can't imagine why anyone would write a shell script when PHP is >> available. > > Stop whining and use Perl. I have a superstitious belief that it's bad luck to argue with morons.
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-09-25 19:32 +0100 |
| Message-ID | <k3stc4$vmb$1@news.albasani.net> |
| In reply to | #7155 |
crankypuss wrote: > On 09/25/2012 09:10 AM, Martin Leese wrote: >> crankypuss wrote: >> >>> On 09/24/2012 05:43 AM, The Natural Philosopher wrote: >> >>>> I cant imagine why anyone would put PHP in a cron job to start with. >>>> >>>> Shell script or C, or both... >>> >>> I can't imagine why anyone would write a shell script when PHP is >>> available. >> >> Stop whining and use Perl. > > I have a superstitious belief that it's bad luck to argue with morons. > s'all right. No one is arguing with you. -- Ineptocracy (in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.
[toc] | [prev] | [next] | [standalone]
| From | Ryan <rbilesky@gmail.com> |
|---|---|
| Date | 2012-09-27 10:23 -0700 |
| Message-ID | <6722b470-b251-42d8-82dc-cd4ab8762c38@googlegroups.com> |
| In reply to | #7108 |
On Monday, September 24, 2012 4:43:34 AM UTC-7, The Natural Philosopher wrote: > M. Strobel wrote: > > > Am 24.09.2012 01:14, schrieb cph: > > >> For security I am looking to add exec() and similar commands to the disable functions > > >> setting in php.ini but I do have a need to execute command line commands within a > > > cron job I am writing in PHP. > > > > > > The answer is highly dependent on your system setup, as has been said already. > > > I would start with a check to see if different .ini files for web server and CLI are > > > in place already. > > > > > > /Str. > > > > I cant imagine why anyone would put PHP in a cron job to start with. > > > > Shell script or C, or both... > > > > -- > > Ineptocracy > > > > (in-ep-toc’-ra-cy) – a system of government where the least capable to > > lead are elected by the least capable of producing, and where the > > members of society least likely to sustain themselves or succeed, are > > rewarded with goods and services paid for by the confiscated wealth of a > > diminishing number of producers. idk about the OP but if its me I'm a PHP developer not a C developer, I wouldn't know what to do in C. I'm not even all the good at shell script for that matter.
[toc] | [prev] | [standalone]
Page 3 of 3 — ← Prev page 1 2 [3]
Back to top | Article view | comp.lang.php
csiph-web