The tag has no usage guidance.

learn more… | top users | synonyms

5
votes
1answer
869 views

Too big delay with xscreensaver on wrong password in OpenSUSE 12.2

There is too big delay when logging in with xscreensaver in OpenSUSE 12.2 --- Actual delay is 10 seconds, but not found anywhere in configs Already done: checked pam timeout in login.defs (3 ...
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 ...
40
votes
5answers
9k views

Timing out in a shell script

I have a shell script that's reading from standard input. In rare circumstances, there will be no one ready to provide input, and the script must time out. In case of timeout, the script must execute ...
3
votes
3answers
643 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
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 ...
2
votes
2answers
812 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 ...
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
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 ...
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 , ...
9
votes
4answers
4k views

How to constraint time a program runs in Linux?

I have several simulations to do, each is invoked with python simulate.py <parameter list>. The problem with these simulations is that some of them hang without quiting, which prevents me from ...
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
342 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
89 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 ...
49
votes
3answers
79k views

Does curl have a timeout?

So far I couldn't find anything really, but is it true that curl doesn't really time out at all? user@host:~# curl http://localhost/testdir/image.jpg I'm asking because I'm redirecting any request ...
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
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 ...
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 ...
0
votes
1answer
50 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 ...
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.
3
votes
1answer
241 views

Why sudo won't remember my password?

I use sudo in many systems, but I have one of them that makes me type my password each time I run sudo. All the others remember it for a while. This is debian 7.4 wheezy and sudo 1.8.5 I found this : ...
2
votes
2answers
463 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 ...
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! ...
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 ...
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 ...
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
93 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?
3
votes
4answers
14k views

TFTP configuration problems

I can not get TFTP to work properly on my system. I have set /etc/default/tftpd-hpa to /srv/tftp/ which I have set to permissions 777 like all the contents as well (and /srv/ too) however, whenever I ...
1
vote
2answers
474 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 ...
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 ...
7
votes
1answer
8k views

named does't start when using systemctl

I am having trouble getting named to start using systemd on the Fedora 18 Raspberry Pi spin. It starts, then a few moments later there is a timeout and it fails. If I run the commands in named.service ...
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 ...
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 ...
23
votes
5answers
43k views

How to introduce timeout for shell scripting?

I want to run a shell script that got a loop in it and it can go for ever which I do not want to happen. So I need to introduce a timeout for the whole script. How can I introduce a timeout for the ...
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
733 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 ...
0
votes
1answer
2k views

OTRS installation error on openSuSE

I have a fresh, text-only installation of openSuSe 13.1 (physical server, old Samsung netbook), and I'm trying to get OTRS up and running. I've installed OTRS using the below commands. I don't think ...
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 ...
3
votes
1answer
12k views

SSH connection timed out. it's not client or server…what now?

I have been using a Linux server via SSH for months, it still works from other locations but for some reason, this week, it isn't working from the office. Putty says "Connection timed out" Is there ...