1

I like the at and batch commands for scheduling long running tasks I do not plan to stick around to see. But my longest running tasks share resources other than just the CPU (databases, free disk space, and resident memory are all an issue).

I want to specify what resources a task would need and then have them run whenever all their resources become available. It sounds like this must already exist, but what command does that?

1

You could run a cron task which is scheduled "frequently" (whether once a minute or hour depends on what you need). In the task, you could then make those checks, and go ahead and run it when the conditions are met.

If this is a one-time task, your task could (since it runs with your permissions) update the crontab to remove itself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.