A few useful commands for shell.
At
This is a very useful command to be used if you want to execute a command
at a specific time in the next day (since you specify the clock time, and the
first time it hits that clock you will execute).
the at command is kind of a quick way to do a single thing at a specific point,
kind of like a slightly worse cron, but then this have its own uses, as it is
much easier to setup the command with at rather than having to fiddle with the
cron file, and it is sufficient whenever you only want to do something once.
Setting up the at job is very simple, you just say
at 15:00 <ENTER>
15:00 is an arbitrary time, and enter is just hitting enter.
this will bring up a subshell where you can type in whatever command you want to execute,
when you have entered that command finish with <C-d>, that is CONTROL + D, this will exit the
subshell, but in a way such that the program actually finishes.
Now you can view your commands with the very useful
atq
command.
In case you find that you entered a command you do not want to run at a
specific time you can remove it with
atrm
Taskspool
Taskspool is a very useful thing in the shell if you want to execute several things, one after another
it creates a queue that you can add commands to, giving you a very convenient way to execute
all the commands.
Here is a video from gotbletu on youtube, he made an excellent video on taskspool.
Once you have it setup, you basically do the very simple thing
ts <CMD>
to add a command to the queue.
Leave A few useful commands for shell. to:
Read more #linux posts
Best Posts From iobates
We have not curated any of iobates's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From iobates
- Bitcoin vs CBDC
- A quick Tactic from a game.
- Ads making a site useless
- Having Started my fitness training I was a bit sore for a few days.
- Carnivore diet 27 August 2024
- Carnivore 26 August
- Hiring practice at IBM will destroy the company.
- Carnivore 25 august
- Carnivore 24th August 2024
- Carnivore 23 August 2024
- Carnivore diary for 22nd of August 2024. Some benefits from the diet as well.
- Carnivore Diary 21st Aug
- Carnivore Diary 20th of August 2024
- A gem from a blindfold game
- Chess problem, from a game
- Tracking pill use, a simple CLI tool
- update to the unpacker, delete the archives when unpacking completes; it works but I think it has a few bugs.
- AI: Hype-train, is it finally over ?
- A Small Program to extract Archives
- Blindfold game analysis