I want to put my program's output into a file. I keyed in the following :

```
./prog > log 2>&1

```

But there is nothing in the file **"log"**. I am using the Ubuntu 11.10 and the default shell is bash. 

Anybody know the cause of this AND how I can debug this?