13
votes
at some time from now do something (and maybe also show result in console)
The correct at usage is at <timespec>, where <timespec> is the time specification. You can also use the -f option to specify the file containing the commands to execute. If -f and no ...
7
votes
at some time from now do something (and maybe also show result in console)
Run the sleep in a subshell:
(sleep 60; echo -e '\nhi') &
Note: on Linux you can give the argument to sleep in seconds or with a suffix s/m/h/d (for seconds, minutes, hours, days). On BSD the ...
6
votes
Accepted
Tc qdisc delay not seen in tcpdump recording
According to the Packet flow in Netfilter and General Networking schematic, tcpdump captures (AF_PACKET) after egress (qdisc). So it's normal you don't see the delay in tcpdump: the delay was already ...
6
votes
Accepted
at some time from now do something (and maybe also show result in console)
The "hi" stream is printed in my prompt (in the stdin) and not in my stdout
No, it's not "printed in your stdin".
If you pressed return, it wouldn't try to run hi as a command. It's just that the ...
5
votes
Accepted
bash script, check port response with bash's built-in /dev/tcp, time delay | hangs | speed up
Run this with timeout.
I put a timer varible to check the running time.
It seems you can't speed up the scritp more than 0.01.
If this scirpt is executed with 0.001, you will only see the reslut of ...
4
votes
Debian NFS wait too long when the other Debian is turned off
If automounting isn’t appropriate, you can use x-systemd.mount-timeout= to specify a shorter timeout:
machine.2.ip:/path/on/machine2/share /path/on/machine1/machine2-share nfs x-systemd.mount-timeout=...
4
votes
Accepted
How to pipeline sleep? sleep pipeline doesn't work
I think you want to separate with ; instead of |
sleep 10; echo hi; sleep 5
This will wait 10 seconds, echo hi, wait 5 seconds, then exit.
I think many of us are confused why you want to pipe the ...
3
votes
Accepted
25 second delay: "No skeleton to export"
Had exactly the same issue with Manjaro after the last updates (2023-11-28 and 2023-12-1).
I copied the /usr/share/xdg-desktop-portal/gtk-portals.conf file to ~/.config and renamed it into xfce-...
3
votes
Accepted
Huge delay in ps output from systemd in Azure Linux
My suspicion is that ps is trying to turn the numeric UID into a username, doing a lookup for that UID, then timing out. After the failed lookup, the numeric ID is displayed.
See if these two ...
3
votes
at some time from now do something (and maybe also show result in console)
That failed because you're piping the output of echo "hi", which is just hi to at, but at expects that it's input can be executed by the default system shell (usually bash, but sometimes something ...
3
votes
Accepted
error: ‘TCP_NODELAY’ was not declared in this scope
I solved the problem by adding #include <netinet/tcp.h> in above of ” evserver.cpp ” file
2
votes
Delay some localhost traffic
tc qdisc can control any ip and ports traffic:
sudo tc qdisc add dev lo root handle 1: prio bands 4
sudo tc qdisc add dev lo parent 1:4 handle 40: netem delay 200ms
sudo tc filter add dev lo parent 1:...
2
votes
Does we need a delay time between command in Linux ?
No, there’s no need to insert delays, they won’t have any effect on potential errors.
You should however check for errors — the simplest way to do so on current systems is to add
set -e
at the start ...
2
votes
at some time from now do something (and maybe also show result in console)
Combine @Peter Cordes's answer and this answer
https://stackoverflow.com/questions/23125527/how-to-return-to-bash-prompt-after-printing-output-from-backgrounded-function/23125687#23125687
The code ...
2
votes
Accepted
Boot delay due to systemd device start job timeout
How can I determine what device this is?
You can double-check this device is not present by comparing it to the list of block devices and their UUIDs. The commands you already used to list them are ...
2
votes
how to start a script with root privilege on boot?
Your ghoststart.sh script (or the cyberghostvpn thing within it) is trying to start OpenVPN by calling the openvpn executable. This executable is not found in the $PATH within the script. Use ...
1
vote
Accepted
Add a delay in git post-merge
Finally I ended up with this one line in the file .git/hooks/post-merge
#!/bin/sh
( sleep 10 ; /usr/bin/sudo systemctl restart tempcollect ) &
1
vote
Accepted
Excessively slow boot after normal shutdown, but not after forced power off
After reinstalling, I did not upgrade any packages except from the ones for Firefox (seemed to be riskless ones). Next I installed the tlp package, version 1.3 from the linrunner repository, and one ...
1
vote
sox command is automatically adding delay in the begining of mp3
This might be down to the MP3 (MPEG-1 Audio Layer III) standard:
https://lame.sourceforge.io/tech-FAQ.txt
Read the section: "Why does LAME add silence to the beginning each song?"
1
vote
Accepted
Delay in loading webpages
This is some kind of DNS problem. This can happen if you query the wrong name servers first. You can check that with tcpdump. Find out which servers are accessed first.
# assuming eth0 is your WAN ...
1
vote
Using Tail on a process causes character input delay & disruption
Running strace tail -f /proc/<PID>/fd/1 provides a clue.
The last line of the output will show that the tail command is waiting to read from the process.
read(3,
As you type into the ...
1
vote
Tc qdisc delay not seen in tcpdump recording
UPDATE:
So I finally used this solution. It is present in my solution. It worked well for me after all.
I (the topic starter) have solved my problem using Linux bridge. Here [https://www....
1
vote
delayed bash script execution after boot
After trials and errors, this is the solution I implemented.
I attached my script to a systemd service:
[Unit]
Description=Make VMs reachable from the internet
Wants=network-online.target
After=...
1
vote
Accepted
Weird I/O stalls affecting a whole desktop
Seagate Skyhawk models have a "Standby to ready" time that's 23-30 seconds long, on the 6TB model. The 1TB model had that number at 6ms; the stall went up considerably during the transition ...
1
vote
at some time from now do something (and maybe also show result in console)
Building upon the answers above, you can have the embedded command direct its output to your terminal, like so:
echo "echo hi >$(tty); kill -WINCH $$" | at now + 1 minute
The tty command returns ...
1
vote
wireshark packet capture point
Wireshark must listen on an interface and cannot see packets at the application layer.
If you really need a tool like Wireshark, you may ping from a VM or a container and (on the host) have Wireshark ...
1
vote
Run command after a certain length of time has elapsed?
Mentioning one more approach using at command.
With commands like play and notify-send it can be used to have more visible, user friendly notifications:
show notification popup with message
play ...
Only top scored, non community-wiki answers of a minimum length are eligible