I am trying to write a script that redirects the date and time when eth0 comes up. Here's the line with problem
up date '+UPTD %d-%m-%y/%H:%M' >> /home/abpit/network.log
But it doesn't write a single thing in the file! What am I doing wrong?
ubuntu version: 12.04 File has now RWX permission, but still it doesn't have a single line in it. Also, eth0 is configured automatically .