And the command "ls > text.txt" does work if you run it directly in console? What happens if the file is existing, when the program is executed?
// Kris 2013/3/28 Christian Capasso <capasso...@gmail.com> > 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. > _______________________________________________ > vala-list mailing list > vala-list@gnome.org > https://mail.gnome.org/mailman/listinfo/vala-list > _______________________________________________ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list