What I want to do is call the ls command in Unix and have the output piped into a file? It won't work however, can anyone tell me why or if there is another way other than the one below (that doesn't work) to do it?

system ("ls -author >>tmp.txt");

Thanx

Nicola

:confused:

What I want to do is call the ls command in Unix and have the output piped into a file? It won't work however, can anyone tell me why or if there is another way other than the one below (that doesn't work) to do it?

system ("ls -author >>tmp.txt");

Thanx

Nicola

:confused:

mmm... .....................

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.