in reply to Scheduling a shell script to run every wednesday at 10 AM with perl without cron

I dont want to use crontab or cronjob here.

Why? That's EXACTLY what cron is for.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re: Scheduling a shell script to run every wednesday at 10 AM with perl without cron

Replies are listed 'Best First'.
Re^2: Scheduling a shell script to run every wednesday at 10 AM with perl without cron
by kshitij (Sexton) on Sep 09, 2018 at 18:29 UTC
    hi Alexander ,

    I dont have permission to use the cron job

    Thanks Kshitij

      What does your script do? I presume it doesn't do anything root-level, or you wouldn't have permission to use those things either.

      Every Unix user has their own crontab; you don't need to use system cron (which would in fact require root level permissions).

      Personally, if this is for work and you absolutely require permissions to run cron as root, I'd be speaking to management as to why they require the extra work on your behalf when something built-in and wholly reliable already exists. Get the permissions you need, or perhaps rethink your ambitions. What is it you're trying to do, anyway?

      If you don't have permission to run a cron job then you probably also don't have permission to run effectively the same thing from perl - seeing as how there's no real difference. If your problem is an adminstrative one then you'll need to find an adminstrative solution.

      Is there some reason you can't ask your systems administrator to review the script abs setup the cron job?