FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 07-16-2012, 09:11 PM
Les Mikesell
Default timeout vs. winexe

I use the winexe (a samba-based tool like psexec) to run a command
remotely on windows targets. The problem is, sometimes it hangs until
interrupted and I'd like to put it in a cron job. So I added a
'timeout 80' on the command line that starts a shell script that
invokes winexe with the needed parameters. This does prevent the
hang, but now every run takes the full 80 seconds to return where it
should average 5 or 10 seconds on a normal execution - and it seems to
trap normal interrupts until its own timeout is reached.

Timeout seems to return immediately when other commands exit. Am I
missing something obvious that might make it wait in this scenario?

Strace show a loop of these filling the time after I think it has completed:
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig -icanon echo
...}) = ? ERESTARTSYS (To be restarted)
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---

Les Mikesell
CentOS mailing list

Thread Tools

All times are GMT. The time now is 10:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org