S
Silveira Neto
Hi guys,
I'm trying to call a program by an Java programming. Like a terminal
command like "rm -rf thing" or "ls" or "firefox", and get its output.
Just that.
In C I do that with system("ls -la|grep something > somefile.txt"). I
know that I'll lose some portability if I use pipes, but I need them.
I'm trying to call a program by an Java programming. Like a terminal
command like "rm -rf thing" or "ls" or "firefox", and get its output.
Just that.
In C I do that with system("ls -la|grep something > somefile.txt"). I
know that I'll lose some portability if I use pipes, but I need them.