I have a root cron task that runs every day. But I want to allow normal users to request that it run immediately, if they so wish. It is a harmless process and it can run as often as needed and these normal users are actually trusted users. But I don't want to give these normal users any special permissions.
Can I allow a normal user to trigger the cron task to run immediately? If so, how? The user will be doing this via a Java app, so I'll probably be using Java's ProcessBuilder.
ProcessBuilder (Java 2 Platform SE 5.0)
I would be great if you can provide a solution with Java ProcessBuilder example code.