in general hardcoding  tmp paths is a bad idea  especially when you consider is a pid and pid namespaces make collisions much easier  you can do something simple like trap  rm  f tmpfile exit  readonly tmpfile mktemp  