Scheduling scripts without cron or at
- Kalium_Puceon
- Posts: 492
- Joined: Sun Oct 14, 2012 2:53 am
- Gender: Other
- Sexual preference: Bi
- Species: Duiker!
- Region: Western Cape
- Location: Heck Avenue
- Mastodon: pleroma.site/kalium
- Contact:
Scheduling scripts without cron or at
I'm trying to schedule a script to run on a shell server every three hours, but the server has disabled it's at and cron services because of... some kind of security problem. I've started looking into using systemd timers for controlling the script, but what other ways exist for me to schedule a script politely, i.e. no long-running or hungry processes.
"You never get over the desire to do stupid things. You simply have to overrule your stupid urges with an acquired sense of fear."
-Dr. Richard Weisiger
Contact Me!
My Github! | My Twitter! | My Tumblr | Hit me up as Kalium on foonetic IRC!
-Dr. Richard Weisiger
Contact Me!
My Github! | My Twitter! | My Tumblr | Hit me up as Kalium on foonetic IRC!
- vakie
- Posts: 64
- Joined: Sat Feb 06, 2016 3:46 am
- Gender: Male
- Sexual preference: Straight
- Species: Fox
- Region: Gauteng
- Location: Stellenbosch
Re: Scheduling scripts without cron or at
Maybe you could use a service like integromat to send an http request to a web server you're running that could trigger the script? It's difficult to come up with ideas without knowing the context.
-Something profound-
- Valerion
- Alpha Wolf
- Posts: 2803
- Joined: Fri Apr 11, 2008 8:50 pm
- Gender: Male
- Sexual preference: Gay
- Species: Werewolf
- Region: Gauteng
- Location: ::1
- Contact:
Re: Scheduling scripts without cron or at
If you want to be polite, you can do long-running. Create a script that will never end, but put it to sleep so it doesn't affect the server as much.
Without at and cron there really is no way to do scheduling locally.
You can have another server, then use ssh to launch your process on the server without cron, but that's ... cumbersome.
Without at and cron there really is no way to do scheduling locally.
Code: Select all
#!/bin/bash
while true
do
sleep 30
<Perform action here>
done