Working script to create a file under /proc and write to it