Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Linux Help - at command

Featured Replies

I am trying to run some precise timings.  What I'd like to do is kickoff a process and then, precisely 10 minutes later, have a command run to gather performance statistics.  Then I can switch things around and repeat and have comparable results.

 

So I was playing with the "at" command.

 

If I run "at now + 1 minute", it will run on the next minute boundary - so if I start it at 12:00:50, it will run at 12:01:00, and not at 12:01:50 as I would have expected.  So the at command could wait between a second and a full minute depending on the seconds at the moment I run the command.  Am I missing something?  Is there a way I can use the "at" command to wait a specific period of time before running a command?  If not, any suggested alternatives?

 

Thanks for a quick response!

You could run a double at command.

 

Have your command wait to run the first command till the next full minutes, then another at command kicks off 10 minutes later.

 

Example:

 

Run command @ 12:01:35

 

Command waits to run until 12:02:00

 

Next command runs at 12:12:00

The lowest precision 'at' executes is on minutes. It knows nothing about seconds, so as far as it's concerned, your "12:00:50" is only "12:00".

 

The same is true for cron. It too knows nothing about seconds.

 

A hackish workaround is using 'sleep'. It takes a single argument which is the time duration. The default unit is seconds, but it can use minutes, hours, or days.

 

sleep 60s && command_to_invoke

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.