Is there anyway to run a dml script from cron?
|
|
0
|
|
|
|
Reply
|
mark.goudie (4)
|
5/20/2005 2:06:23 PM |
|
On 20 May 2005 07:06:23 -0700, mark.goudie@gmail.com <mark.goudie@gmail.com> wrote:
> Is there anyway to run a dml script from cron?
Would you like to give _any_ details at all about what you're talking
about and what system this is on, or are we supposed to guess?
|
|
0
|
|
|
|
Reply
|
Dave
|
5/20/2005 2:54:19 PM
|
|
On Fri, 20 May 2005 07:06:23 -0700, mark.goudie wrote:
> Is there anyway to run a dml script from cron?
If you can run it from a shell, then yes. 'man 5 crontab' or 'man -k
crontab' should shed some light on the subject.
--
If at first you don't succeed,
read the manual......
|
|
0
|
|
|
|
Reply
|
Liam
|
5/20/2005 3:06:24 PM
|
|
In comp.unix.admin Dave Hinz <DaveHinz@spamcop.net>:
> On 20 May 2005 07:06:23 -0700, mark.goudie@gmail.com <mark.goudie@gmail.com> wrote:
>> Is there anyway to run a dml script from cron?
> Would you like to give _any_ details at all about what you're talking
> about and what system this is on, or are we supposed to guess?
LOL...
Looks like the OP already did a great job with his single
sentence question. He really can't be bothered to give any more
details. People will have to figure it out from guessing...
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 213: Change your language to Finnish.
|
|
0
|
|
|
|
Reply
|
Michael
|
5/21/2005 10:44:13 AM
|
|
Le Fri, 20 May 2005 07:06:23 -0700, mark.goudie a �crit�:
> Is there anyway to run a dml script from cron?
If you're refferring to "Dynamic Markup Language" ?
Then yes, why not, though what for, provided you cleanly
set the full path of engines and shell protections in case
the paths of objects are funny.
But, really, what the heck for ???
|
|
0
|
|
|
|
Reply
|
Loki
|
5/22/2005 6:45:50 PM
|
|
On Sun, 2005-05-22 at 20:45 +0200, Loki Harfagr wrote:
>
> > Is there anyway to run a dml script from cron?
>
> If you're refferring to "Dynamic Markup Language" ?
> Then yes, why not, though what for, provided you cleanly
> set the full path of engines and shell protections in case
> the paths of objects are funny.
I believe the OP is referring to Data Manipulation Language" or similar.
In the relational database world, any construct that will alter data in
a database, but I may well be wrong.
And of course it's possible, as stated elsewhere in this thread.
--
You can't run away forever,
But there's nothing wrong with getting a good head start.
-- Jim Steinman, "Rock and Roll Dreams Come Through"
|
|
0
|
|
|
|
Reply
|
S
|
5/22/2005 7:03:47 PM
|
|
On Sun, 22 May 2005 20:45:50 +0200, Loki Harfagr <loki@DarkDesign.free.fr> wrote:
> Le Fri, 20 May 2005 07:06:23 -0700, mark.goudie a �crit�:
>
>> Is there anyway to run a dml script from cron?
>
> If you're refferring to "Dynamic Markup Language" ?
> Then yes, why not, though what for, provided you cleanly
> set the full path of engines and shell protections in case
> the paths of objects are funny.
One could always run a wrapper from cron that calls whatever the
heck it wants to, to keep the crontab syntax from getting messy.
I've seen people try to write shell scripts within a crontab
entry, which makes you ask...
> But, really, what the heck for ???
....that...
By the way, great name, Mr. Harfagr. Are you a descendant by any
chance?
|
|
0
|
|
|
|
Reply
|
Dave
|
5/23/2005 2:38:25 PM
|
|
Le Mon, 23 May 2005 14:38:25 +0000, Dave Hinz a �crit�:
> On Sun, 22 May 2005 20:45:50 +0200, Loki Harfagr <loki@DarkDesign.free.fr> wrote:
>> Le Fri, 20 May 2005 07:06:23 -0700, mark.goudie a �crit�:
>>
>>> Is there anyway to run a dml script from cron?
>>
>> If you're refferring to "Dynamic Markup Language" ?
>> Then yes, why not, though what for, provided you cleanly
>> set the full path of engines and shell protections in case
>> the paths of objects are funny.
>
> One could always run a wrapper from cron
Thats fair enough but I pre-supposed writing such wrapping scripts
was a bit overscope to someone asking if the cron could launch scripts ;-)
> that calls whatever the
> heck it wants to, to keep the crontab syntax from getting messy.
Which is not an easy task !-)
> I've seen people try to write shell scripts within a crontab
> entry, which makes you ask...
Uh, I thought I've had seen pretty horrors but it seems you
had your share of frantic visions :D)
Was this is a server for trainees or what ?
>> But, really, what the heck for ???
>
> ...that...
eh eh :-)
<OT>
> By the way, great name, Mr. Harfagr. Are you a descendant by any
> chance?
Thanks a lot but I fear it's just my 'stage name' from the times I
still made loads of electrical noises without a Cat-5 cable ;-)
Though, it's been said in my family we were related to the Plantagenet
(like, I imagine, million people by now) but I have no detail
about good old Harald :-)
</OT>
|
|
0
|
|
|
|
Reply
|
Loki
|
5/24/2005 2:38:39 PM
|
|
On Tue, 24 May 2005 16:38:39 +0200, Loki Harfagr <lars.hummigeret@yahuu.no> wrote:
> Le Mon, 23 May 2005 14:38:25 +0000, Dave Hinz a �crit�:
>
>> that calls whatever the
>> heck it wants to, to keep the crontab syntax from getting messy.
>
> Which is not an easy task !-)
Well, the crontab should be blisteringly obvious in function.
Comment above, call to wrapper in entry. The script can handle all
the logic. Calling "at -time now" or whatever from within a crontab
entry is gratuitously stupid, yet our domain (was) full of it.
>> I've seen people try to write shell scripts within a crontab
>> entry, which makes you ask...
>
> Uh, I thought I've had seen pretty horrors but it seems you
> had your share of frantic visions :D)
Words cannot begin to describe. Trust me.
> Was this is a server for trainees or what ?
Not intentionally. Let's just say that there were many easy targets
to improve the environment when I got here.
><OT>
>
>> By the way, great name, Mr. Harfagr. Are you a descendant by any
>> chance?
> Though, it's been said in my family we were related to the Plantagenet
> (like, I imagine, million people by now) but I have no detail
> about good old Harald :-)
I've got a solid line back to the 1330's, (helps when the farm is still
owned by the same family - the current occupants are 17th cousins of
mine. From there, it's allegedly another 15 or so generations back
to Fairhair, through 7 separate lines. But, the complicating factor is
that he may or may not have been an individual; there's reasonble
thought that he's a conglomeration of 3 separate Norse kings named
Harold. Kind of like King Arthur...
|
|
0
|
|
|
|
Reply
|
Dave
|
5/24/2005 3:09:52 PM
|
|
|
8 Replies
175 Views
(page loaded in 0.137 seconds)
|