Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

socat experts?



On Jan 13, 2006, at 4:02 PM, Bob BLU wrote:

> At 03:28 PM 1/13/2006, Josh ChaitinPollak wrote:
>> Is there a way to get socat to keep trying, and
>> never say connection refused? Given the nature of UDP communications,
>> its ok if we lose packets, but I want socat to keep trying with new
>> packets.
>
> You could have another program watch socat and if it dies then  
> restart it.
>
> If you think that is a suitable approach you can do it via /etc/ 
> inittab.
>
> scat:2345:respawn:sudo -u user /path/to/script

I thought of that, or of using a while(1) loop in a shell script. The  
problem with that is the restart time. I don't know how long it would  
take, probably less than a second, but I'm concerned it might be more  
time than we can afford. I'll try it out, its a temporary solution  
anyway, until I can write my own application.

The problem with sredird and RFC 2217 is that it is TCP based, and I  
need to use UDP, at least for now.




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org