Re: [Vala] Terminal output in a text file



2013/3/29 Evan Nemerson <evan coeus-group com>:

The > is actually a bash thing, and Process.spawn_command_line_sync
doesn't support that.  See

Then I think you can spawn bash/sh to do the job like this:

spawn_command_line_sync ("sh -c \"ls > text.txt\"");

--
Best regards,
Trung "Chin" Ngo


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]