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

hi Alexander ,

I dont have permission to use the cron job

Thanks Kshitij
  • Comment on Re^2: Scheduling a shell script to run every wednesday at 10 AM with perl without cron

Replies are listed 'Best First'.
Re^3: Scheduling a shell script to run every wednesday at 10 AM with perl without cron
by stevieb (Canon) on Sep 09, 2018 at 19:04 UTC

    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?

Re^3: Scheduling a shell script to run every wednesday at 10 AM with perl without cron
by hippo (Archbishop) on Sep 09, 2018 at 21:51 UTC

    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.

Re^3: Scheduling a shell script to run every wednesday at 10 AM with perl without cron
by marto (Cardinal) on Sep 09, 2018 at 19:05 UTC

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