in reply to System call doesn't recognise '>'
system('sh', '-c', 'foo > file');
or the equialent
system('foo > file');
The latter is also suitable for Windows.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: System call doesn't recognise '>'
by Lauras (Initiate) on Dec 10, 2008 at 21:52 UTC | |
by Corion (Patriarch) on Dec 10, 2008 at 21:58 UTC | |
by Lauras (Initiate) on Dec 11, 2008 at 09:10 UTC | |
by Corion (Patriarch) on Dec 11, 2008 at 09:15 UTC | |
by Lauras (Initiate) on Dec 11, 2008 at 09:25 UTC | |
by ikegami (Patriarch) on Dec 10, 2008 at 22:55 UTC |