My Perl script(test.pl) is now running in crontab as
* * * * * perl test.pl >/dev/null 2>&1
I wish to run my script every 1 minute inteval without using crontab. I will not have access to write cron jobs into /etc/cron.d/, so need to find an another solution
Is there any way to do this?
while :; do perl test.pl >/dev/null 2>&1; sleep 60s; done
? - devnullcron
that you wish to avoid? Typically running something on a schedule requires a scheduling system outside of the thing that's running. So devnull's suggestion is a long-running shell script that you could stop and start interactively. I cannot tell from your question whether this is enough - perhaps you want the script to run each minute for a few hours at a time, and wish to avoid editing crontabs in order to switch it on and off? - Neil Slater