Today's article tells ya how to time a command.

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
11,809
Reaction score
10,376
Credits
97,674
It's straightforward and easy, along with some examples.


It was on the old site, but less dense and with different formatting.
 


Bit of a Freaky Friday for me yesterday.

I was running a job with a recalcitrant Fedora that took forever, and I thought "Should have run time on this".

Then you produce the above.

Do you think I was transmitting my thoughts, or I was receiving yours? ;)

Whacked The Mole for 5 anyway

Avagudweegend

Chris
 
Do you think I was transmitting my thoughts, or I was receiving yours?

I wrote the article on the 31st of October, so probably nothing of the sort.

I write 'em ahead of time and schedule them. That's my 'secret' so that I am able to have an article every other day.

LOL Thanks for whacking that mole!
 
I write 'em ahead of time and schedule them.
Code:
echo "wp-publish $HOME/docs/time-command.html" | at 2021-11-05
...Unless it's a full on crontab setup...

*I have no idea what the Wordpress API is like nor the CLI commands. Likely not "wp-publish <path/to/doc" but still, lol.
 
*I have no idea what the Wordpress API is like nor the CLI commands. Likely not "wp-publish <path/to/doc" but still, lol.

It uses it's own 'cron'. Which, of course, uses regular cron.

 
That,,, is awesome!

If you know the command(s) executed, you can disable certain WP features and schedule them with regular cron. You can even do so right from cPanel. (Most folks aren't all that fluent in cPanel, so I figured I'd share.)

Selection_018.png
 

Members online


Latest posts

Top