I have a weird situation here... two out of three of my servers refuse to give any output to the command ls -1tr | tail -1
There are definitely files in the directory but it gives no output what so ever (returns nothing and goes back to the prompt)... simply typing ls or ls -c works but not ls -1tr | tail -1
x2 Server 2003
x1 Server 2008
Only one of the Server 2003 gives the correct response to the command.
I have put the /bin directory in the windows environmental path field so I don't think that is the problem.
Any suggestions?
ls -1tr | tail -n 1work? – p.vitzliputzli Mar 13 '11 at 18:03