On Thu, 2013-03-28 at 19:45 +0100, Christian Capasso wrote: > Hi, i am new in Vala Programation. > I have a problem using the comand "Process.spawn_command_line_sync" : when > i try to set a comand similar to " ls > text.txt" the program doesn't > create the txt file requested. > I will post u an example code to make this clearer to you. > > [CCode (instance_pos = -1)] > public void on_combobox2_changed (ComboBox source){ > Process.spawn_command_line_sync ("ls > text.txt"); > } > > Why the txt file is not generated.can you explain it to me please? > Thank you for the time you are spending on my request of help.
The > is actually a bash thing, and Process.spawn_command_line_sync doesn't support that. See http://valadoc.org/glib-2.0/GLib.Shell.parse_argv.html (which is linked to from the spawn_command_line_sync documentation). -Evan _______________________________________________ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list