The timeout tag has no usage guidance.
3
votes
3answers
36 views
Pass-through pipe with timeout
How can I implement a timeout when no data is being passed through a pipe? It would act as watchdog with following usage:
process1 | watchdog --timeout 60 | process2
When no data pipes through I ...
1
vote
0answers
27 views
FreeBSD pkg installation operation timed out error
I'm trying to install some packages in FreeBSD. I got this timed out error during installation of gnome3 also.Now I'm trying to install Firefox and again same error. Can anyone give me solution for ...
2
votes
2answers
43 views
Tcpdump - counting outgoing and incoming UDP packets
Is it possible with tcpdump to count (for some set up time) the number of outgoing and incoming UDP packets?
I don't have much experience in tcpdump, so an advice how to do that would be very helpful....
0
votes
0answers
35 views
SSH failing 9/10 times
I have a Raspberry Pi that I run headless, and up until now it has worked fine. Now, however, when I SSH in, it times out before a connection is established 9 out of 10 times. I know I am pointing to ...
3
votes
3answers
62 views
SSH-like session that survives physical network disconnection
I want my SSH login session to remain connected after the computer goes to sleep and wakes up. From what I understand TCP can survive intermittent network problems, so can I change settings so that it ...
4
votes
2answers
51 views
bash syntax - wrapping command inside sudo :: tail logs until string found with timeout using Terraform
Goal: using sudo execute a one line cmd to tail a log until a string is found and then exit 0. If the string is not found within a given timeout, exit anything but 0.
Attempted Solution 1: ...
2
votes
1answer
56 views
Return status of Busybox `timeout` command
I'm writing a shell script that's supposed to function on various different distributions, some of which are using busybox and some are not.
This script uses the timeout command to figure whether a ...
0
votes
0answers
17 views
Dell Bluetooth keyboard, keep getting 'Page Timeout'
I recently got a Dell bluetooth keyboard, and I haven't had any luck with getting it to connect. I've tried with both the Blueman manager and with the process recommended here (https://forums....
0
votes
1answer
88 views
What is default value of ServerAliveInterval?
I’m using Amazon Linux,
[davea@mymachine ~]$ uname -a
Linux mymachine.mydomein.org 4.4.35-45.83.amzn1.x86_64 #1 SMP Wed Jul 27 22:37:49 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
In my /etc/ssh/...
0
votes
1answer
55 views
Can't ssh to myself through internet?
I'm trying to connect to myself through ssh. (For testing purpose). I'm on a Ubuntu laptop. I successfully launched a ssh serveur, and "ssh localhost" works fine. If I try "ssh ", it works too. (I got ...
1
vote
1answer
41 views
SSH only works/keeps alive while ping running in background
A brand new linux box running Ubuntu 16.04.1 (LTS) Server was installed into a Citrix VM. It was set up with openSSH.
When connecting to it via, it will timeout. This happens even immediately after I ...
2
votes
0answers
24 views
NFS caches expiring unexpectedly
fellows!
I have been struggling with this challenge all day now so I was hoping someone could kindly lend me a hand here.
Goal: To build a NFS4 + CacheFilesd setup on a high latency, low throughput ...
1
vote
1answer
82 views
How to get the output of timeout command without using a shell script
I am using a ssh command executor in java which runs the command and gets the output in stderr, stdout and an integer exit value. I am trying run a command with timeout like,
timeout 5s COMMAND
...
1
vote
2answers
73 views
Cp default timeout limit [closed]
I have a script that creates and copies a file to multiple machine on a network.
Sometimes a machine or two may be down, which in turn causes the cp to take a really long time to timeout.
My ...
3
votes
1answer
74 views
Restart systemd service when output is no longer generated
Is it possible to restart a systemd service when there is no output generated for a predefined amount of time?
I have a script which apparently can hang, but that is not detected by systemd (or ...
0
votes
0answers
76 views
Linux - Cannot connect using ssh key
I used to connect normally to the website on digitalocean using ssh keys and it works normally. Currently I tried to connect and suddenly I keep getting: ssh_exchange_identification: read: Operation ...
2
votes
0answers
142 views
Is an SSH connection timeout expected when iptables is set to REJECT?
We’re setting up a firewall for a machine that should allow:
incoming SSH connections from particular IP addresses;
ICMP, except for redirect.
We’ve opted to use REJECT over DROP, at least until we’...
12
votes
1answer
277 views
POSIX equivalent for GNU timeout?
The GNU coreutils timeout command is extremely handy for certain scripting situations, allowing for using the output of a command if it is quick to run, and skipping it if it would take too long.
How ...
1
vote
2answers
2k views
How to find and edit “Apache timeout”?
I'm trying to view the default value of Apache timeout of my server, but I found nothing about that in /etc/httpd/conf/httpd.conf . So where is " timeout " supposed to be and how do I change its value ...
0
votes
0answers
199 views
How to restart script or reboot if FFMPEG / AVCONV get stuck?
I am using AVCONV to stream my webcam on Dailymotion, here is the command :
avconv -f video4linux2 -s 853x480 -i /dev/video0 -f flv -b 800k -r 14 rtmp://publish.dailymotion.com/publish-dm/xxx
I run ...
1
vote
0answers
288 views
Apache Load Balancer Timeout
We have two httpd servers running on RHEL 6 behind a hardware load balancer
We are getting timeout errors in our httpd error log.
[Fri Feb 19 15:06:49.823372 2016] [proxy_http:error] [pid 15760] (...
3
votes
2answers
393 views
How does an SSH connection become inactive?
I have setup an SSH connection to run a program on a remote server. The program prints debug information on the terminal every 10 seconds. If I leave the SSH windows open for a long time (say 10 hours)...
1
vote
0answers
29 views
timeout when initiating a sshfs connection
I have following line in /etc/fstab
192.168.1.10:/data /mnt/data fuse.sshfs rw,noauto,nosuid,nodev,noexec,_netdev
and following line in /etc/rc.local:
mount /mnt/data
During boot process, the ...
1
vote
1answer
129 views
timeout doesn't work with accumulo shell in bash script
I'm trying to check if a scan of an Accumulo table times out (to see if the table is corrupted).
#!/bin/bash
timeout -s KILL 20s accumulo shell -zi myInstance -u root -p secret -e "scan -np -t ...
0
votes
0answers
54 views
Creating a manual delay (30 seconds) on server side (VSFTPD ) - while a bash client sends to it some files using curl
I have created a shell script in ubuntu that connects to a vsftp server using curl and transfer some files.
In my testing 3 files and each file will take 0.3 seconds to get transferred (very fast to ...
2
votes
1answer
69 views
Tracking where the script stopped after timeout
I've got a shell script doing connection performance test, that I timeout if it takes too long.
Upon timeout, it logs the results of a few commands so I can make myself an idea of the system status ...
0
votes
1answer
28 views
run a programm with timeout sending multiple signals in different times
i need to run a programm with timeout with multiple time limits and different signals for the limits.
for example:
run nano with timeout sending SIGTERM after 5s and after 10s SIGKILL
0
votes
0answers
64 views
Apache keeps loading the page
If the www directory is mounted from another server through NFS and there is some problem on NFS server , ( some NFS related service is stuck or stopped) , in the mean time if some page is accessed , ...
0
votes
1answer
79 views
How to extract all links from a given url in a decent time
I'm trying to extract the links from a specified url and redirect them to a file.
At first I tried using --spider , this is my code:
wget --spider --force-html -m http://file/path 2>&1 | grep ...
3
votes
1answer
6k views
systemctl keeps timing out on service restart
I'm running CentOS 7.2; see below:
# systemctl stop firewalld
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was ...
1
vote
0answers
198 views
Postfix cannot start but dovecot is ok
My postfix service cannot start.
Here is message:
Job for postfix.service failed. See 'systemctl status postfix.service' and 'journalctl -xn' for details.
And here is service status:
postfix....
2
votes
1answer
375 views
Apache SSL timeout is not matching settings
I have a CentOS 6.7 apache Server version: Apache/2.4.7 (Unix) server with both http and https ports configured. They are configured the same, except for the SSL specific settings.
The most relevant ...
1
vote
0answers
2k views
Kali 2.0 Reaver 1.5.2 EAPOL request times out error (code: 0x02)
Hi and thanks very much in advance for any help. I am new to Kali and reaver and am encountering an issue with EAPOL requests getting stuck.
To explain the whole situation, reaver itself won't ...
0
votes
0answers
30 views
java frameworks ( tomcat, jboss ), tcpip, session expiration
We have in house linux servers from different vendors, so each server has a different distro ( rhel, centos, debian, ubuntu ) and tomcat or jboss.
With some web application, if the logged user ( ...
0
votes
1answer
88 views
Timeout procedure for using to much memory or cpu
How hard is it to create some kind of timeout procedure for using to much memory or cpu on a linux/unix server? What would you have to do to do this?
This happens WAY to often. I understand you may ...
5
votes
1answer
341 views
Give script time to execute, if exceeded, stop it
Is this possible, to give max time in seconds to script for execution?
for example, i have script, that pings some network. Usually, it takes about 10 seconds, but if execution takes more than 10 ...
18
votes
2answers
516 views
timeout, breaking pipes and wc
I had an idea to quickly benchmark some decompression programs. E.g. for gz, I would run the command:
timeout 10 zcat foo.gz | wc -c
Which would measure the amount of data the decompressor could ...
2
votes
2answers
128 views
Run and stop a monitoring command as sudo for s seconds every m minutes
I want to run sudo airodump-ng -w myfile every ten minutes or so, for m minutes. It does not matter if the running time shifts (that it, if it runs m minutes later each time).
Notice that this is a ...
1
vote
2answers
152 views
Batch timeout alternative?
What I need is an 80 seconds sleep, that I could skip by hitting a key.
Being able to see the remaining time would be a plus.
2
votes
0answers
35 views
'Unbusy' terminals which will be logged out when TMOUT is reached
I would like auto-logout some terminal sessions with a TMOUT (timeout) configuration, but in that case the users leave a program opened for which the 'unbusy' sign is the ZERO I/O between server and ...
0
votes
1answer
260 views
Silently timeout command in zsh
This is an oft-asked question:
Superuser/loop-start-program-and-kill-after-time-out
SO/bash-script-that-kills-a-child-process-after-a-given-timeout
SO/bash-run-a-process-for-limited-time-period
SO/...
9
votes
1answer
224 views
Why does oot say “hey” in usleep -o?
On a Centos 6.6 box I noticed this...
[root@abcd /]# usleep --help
Usage: usleep [microseconds]
-v, --version Display the version of this program, and exit
-o, --oot oot says hey!
...
2
votes
1answer
497 views
Huge delay in script response when using SFTP with expect
I am using a script to call SFTP service to fetch some logs from the remote server. This works fine in normal scenario but, i have noticed a very long delay of around 30 minutes or more in some of the ...
4
votes
3answers
4k views
read only TMOUT variable – workaround to disable automatically exit shell when there is no activity
We have here a read only Bash variable. I am not allowed to unset that variable.
$ echo $TMOUT
1800
As a workaround I wrote those lines (that my session don't exit)
#!/usr/bin/perl
$|++;
while (1) ...
0
votes
1answer
75 views
How to run `clear_console` in Bash when TMOUT happens?
How do I tell Bash to run a clear_console when the session is closed because of TMOUT?
1
vote
2answers
241 views
Simulate PostgreSQL query timeout
I would like to test the behaviour of a program which executes queries to a PostgreSQL server in case of a query timeout.
How could I simulate that?
2
votes
3answers
3k views
How to avoid system timeout to login screen when I make a cup of tea?
Linux Mint 17.1 (MATE) running on HP G250 Laptop and older HP desktops. It's just me and the dog at home and I like to run the computer all day, but it keeps returning to the login screen after a few ...
2
votes
2answers
2k views
Timeout function return value
I'm using the timeout function on debian to wait 5 seconds for my script.
Works great but the problem I have is that I need a return value. Like
1 for timeout and
0 for no timeout
How am I going to ...
1
vote
1answer
303 views
Using GNU timeout when redirecting stdout to file
Suppose I have a executable which for which I want to log STDOUT and STDERR to separate files, like so:
python write.py > out 2> err
When I use this command with GNU timeout, my out file is ...
2
votes
2answers
2k views
How to set Timeout for an ssh command and also get back the result of remote commands
I have a script that runs on bash, in an RHEL server that connects to thousands of nodes and returns with the values of some 5 executed commands - It collects info from RHEL Servers only.
It works ...