Re: bash and sshd trap anomaly

2016-03-12 Thread Chet Ramey
On 3/10/16 10:07 AM, Olof Schonbeck wrote: > In a small bash script we have a trap to cleanup some files when exiting. You > run the script by ssh to the machine in question and execute the script. If > your ssh session dies the trap should trigger and clean up the files as the > script exit bu

bash and sshd trap anomaly

2016-03-10 Thread Olof Schonbeck
Hi In a small bash script we have a trap to cleanup some files when exiting. You run the script by ssh to the machine in question and execute the script. If your ssh session dies the trap should trigger and clean up the files as the script exit but this doesn't happen. I apologize that the