The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
9 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, ...
1
vote
1answer
35 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
25 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
63 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
18 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
14 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
32 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 ...
2
votes
1answer
335 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
75 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: ...
1
vote
0answers
40 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 ...
0
votes
0answers
88 views

xauth : timeout in locking authority file .Xauthority

I am trying to run the xterm using a particular user. However its giving the below error: xauth: timeout in locking authority file /oracle/user/.Xauthority I used the strace xauth list command. ...
1
vote
0answers
638 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
16 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
49 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
191 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 ...
16
votes
2answers
421 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
51 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
67 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.
0
votes
0answers
28 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
105 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 ...
9
votes
1answer
201 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
168 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 ...
3
votes
3answers
642 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 ...
0
votes
1answer
45 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
92 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
2answers
461 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 ...
1
vote
2answers
473 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
104 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
810 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 ...
6
votes
1answer
3k views

How to change timeout in systemctl

When I boot on my debian, startup hangs for approx 2 minutes on the line: Loading, please wait... [ 5.191043] systemd-fsck[129]: /dev/mmcblk0p2: clean, 234192/873120 files, 2335263/3491328 blocks ...
0
votes
2answers
113 views

Simple http server from the command line that will always cause a timeout

Regarding the question Simple command line http server I would like to know, what is the simplest method for creating a http server listening on a specified port that will always cause timeout (it ...
0
votes
0answers
35 views

timout command is not timing out

I have a timeout command that is not timing out. user@db:~$ ps aux | grep 'timeout' user 4979 0.0 0.0 4440 628 pts/144 S+ 18:52 0:00 sh -c timeout 16 mycommand user 4980 0.0 ...
2
votes
1answer
302 views

How to specify ConnectTimeout for dropbear?

I'm trying to use the Dropbear SSH and in the previous version of SSH I used, you could add the argument -o ConnectTimeout=10 to cause an attempted connection to timeout if unsuccessful after ten ...
0
votes
1answer
214 views

timeout pipeline

I want to execute these two timeout command on the same command but with a different time and instructions. So timeout --signal=SIGINT 5s command timeout --signal=SIGKILL 10s command How to append ...
2
votes
0answers
558 views

Increase SSH ConnectTimeout greater than 60 seconds

I don't seem to be able to increase the SSH connection timeout much beyond a minute: $ date; ssh home-qnap -o ConnectTimeout=7200; date Wed 14 Jan 2015 15:23:32 AEDT ssh: connect to host home-qnap ...
5
votes
2answers
728 views

IPv6 connections timeout

I'm having issues with IPv6 connections. Only with those. They timeout roughly every 10 minutes (due to address renewal i suppose). Happens with every debian based flavour of linux i tried in a year ...
3
votes
1answer
2k views

Can the hard drive timeout be disabled in Linux (attempting task abort)

Unfortunately, when a hard drive (usually a virtual drive) is slow, Linux aborts requests to that drive after a timeout, possibly causing data corruption. Last time this happened to me, I had 2 vms ...
3
votes
1answer
149 views

Why are these connections not classified as “established” under conntrack?

I have the following rule for iptables: -A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT such that outgoing connections not classified as established will be logged. Occasionally, the ...
0
votes
1answer
1k views

SNMP Timeout: No Response from 127.0.0.1

I recently cloned a centos 6.5 virtual machine from one location to another. In the process, the IP and netmask of the system changed. For awhile after the clone everything seemed to work fine, and ...
0
votes
0answers
179 views

VNC connection times out

I have a VNC server running on a box but can't connect to it over the internet and I don't know why. Here's what I have: on server $ ps ax | grep Xvnc 21304 ? S 0:00 Xvnc4 :1 -desktop ...
2
votes
4answers
2k views

Set timeout for web page response with curl

I use a tool to monitor if the web-page is up and running. The tool uses curl command internally to fetch the output. However, when a web-page takes longer time to respond, it results back with a ...
0
votes
1answer
96 views

Other Programs Cannot Connect To MySQL

So just recently when installing php-fpm, I had installed a few MySQL packages with it (I believe). I already had mysql installed. However now when any of my programs attempt to access the database, ...
1
vote
1answer
91 views

Can Linux programs be sent a SIGXXX command they can respond to in the UI?

I am trying out the timeout command and would like to know if there is a kill signal that a GUI program, whether a graphics desktop or a terminal program will treat as the user terminating the program ...
3
votes
2answers
2k views

change tty login timeout - ArchLinux

By default when I login to my Arch linux box in a tty, there is a timeout after I type my username but before I type my password. So it goes like this Login: mylogin <enter> Password: (+ 60 ...
2
votes
0answers
79 views

Last data traffic time for a TCP socket

Is it possible, to find out when was the last time there was any traffic on an opened TCP socket? Keepalive and timeout timers are based on this statistic, so I guess it has to be stored somewhere. ...
1
vote
1answer
2k views

How to display a .jpg file using fbi in a bash script for set amount of time and then execute the next command in the script

I am trying to use fbi in a bash script to display a series of .jpg images. But once fbi begins its process, it continues to cycle through the images and I only want to display each image once for a ...
0
votes
0answers
468 views

Timeout a service

Is there a way to have systemd stop a service after it has been running for X amount of seconds? I looked at just wrapping ExecStart with timeout, however I believe it might not work if my service is ...
6
votes
1answer
241 views

How to make gksudo or gksu sessions last longer in Linux

Every time I want to open a GUI program that needs root permissions, I have to put my password. For example, I open synaptic and put my password then close it and a second later decide to reopen it it ...
11
votes
2answers
17k views

How to make a TCP socket time out

For network catastrophe simulations of our server environment, we are looking for a way to intentionally timeout a TCP socket. Are there any simple ways for existing sockets? Also, little C test-case ...
4
votes
3answers
207 views

How to send SIGKILLs to entire pipeline?

while true; do # process substitution instead of usual pipeline to avoid waiting for all programs handle_input_with_timeout < <( prog1 | prog2 | prog3 ) echo "Data stopped flowing. ...