I am working on a program that can upgrade itself by install a new package.  In order to accomplish this, I am using the at command to specify that a shell script should be run one minute in the future and the shell script, in turn, will install the package.  I would really like this to execute sooner than one minute into the future but that appears to be the best that I can do based upon what I have read in the man page for at.  Is there a way to do this with tighter resolution?
Faster delayed execution than 1 minute?
shell;scheduling;sleep
It would be easier to simply launch the program directly and have it run the update immediately (or it could sleep for some small delay if you really needed it to).If this is in a script itself (eg, bash), simply call the update script directly (likely redirecting the output):update-my-thingy < /dev/null > /dev/null 2>&1If it's in a program, you can always use the system() call to do the same thing:system(update-my-thingy < /dev/null > /dev/null 2>&1);