NGPriest: Cron Jobs

Ξ December 12th, 2013 | → 0 Comments | ∇ Author: NGPriest |

Cron Jobs

Dear bloggie…?
(You may have seen me using this before…?)

I was asked by a client to send them a daily email (more like spam? :p) and thought cron job would be easiest?
I was planning on using

0 12 * * */home/username/public_html/filename.php

to run the cron job, but ended up with this error

/usr/local/cpanel/bin/jailshell: /home/username/public_html/filename.php: Permission

I read somewhere that i needed to type my username in, so that became attempt 2…?

0 12 * * * username /home/username/public_html/filename.php

And because this post hasn’t finished yet, you guessed it, another error…

/usr/local/cpanel/bin/jailshell: username: command not found

So, back to the drawing board, how do we get the script to run from jailshell?
Let’s try a different approach? Since the script runs using the mail() function, we just need to call the page?

So, our last attempt…

0 12 * * * /usr/bin/wget http://www.client.tld/filename.php

And to test it?

–2013-12-11 10:36:01–  http://www.client.tld/filename.php
Resolving www.client.tld127.0.0.1
Connecting to www.client.tld|127.0.01|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 270
Saving to: “filename.php”

0K                                                       100% 34.7M=0s

2013-12-11 10:36:03 (34.7 MB/s) – “filename.php” saved [270/270]

As for a normal cron job, i’ll still need to look how to work around jailshell… :S

Source Article from



Name (required)

Email (required)


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Share your wisdom


    Welcome to

    NGPriest's Blog

    There are 6,861 posts and 303 comments so far. Feel invited to browse the archives, read the about or comment on the latest post.


    • BananaStatio is 23/M/KL, KL, Malaysia
    • ChambyT is 1x/F/Sungai Bakap, Penang, Malaysia
    • chingyi1807 is 1x/F/Malaysia
    • CopyCatty is 1x/M/Hong Kong
    • crazymango is 15/F/Malaysia
    • Eliteratty is ??/M/???
    • HolySprings is 18/M/Sungai Bakap, Penang, Malaysia
    • jaigralia is unknown...
    • Jykur0 is 14/M/Indonesia
    • MakoJr is 1x/M/Singapore
    • NGPriest is 19/M/Brisbane, QLD, Australia
    • PoringCat098 is 1x/F/Malaysia
    • Saphira is 15/F/George Town, Penang, Malaysia
    • shiningthrust is 13/M/Singapore
      shiningthrust is Single
    • sianzxd is 18/M/George Town, Penang, Malaysia
    • Swifty13 is 1x/M/United Kingdom
    • WingzOfChaos is 15/M/Singapore

Random stuff!

  • Loved by Some,
    Hated by Many,
    Envied by Most,
    Yet Wanted by Plenty
  • 10% luck
    20% skill
    15% concentrated power of will
    5% pleasure
    50% pain
    100% reason to remember the name!
  • I write your name in my breath on the window, Sit and watch as it fades away
  • Hi honey.
    Guess what I did at work today?
    I wore a bomb.
    A nuclear bomb in a field of flowers.
    I could get lucky.
    Tomorrow I could have a bigger bomb.
    I could kill more people.
    Maybe they'll be innocent people.
    Children, maybe.
  • "You are like a plague, John Crichton,
    and you have ruined my life . . .
    and yet
    I just keep coming back."
  • I'll watch the night turn light blue
    But it's not the same without you
    Because it takes two to whisper quietly
    The silence isn't so bad
    Till I look at my hands and feel sad
    Cause the spaces between my fingers
    Are right where yours fit perfectly


%d bloggers like this: