Re: [Vala] Spawn Command Line more than one line



2014-03-10 15:33 GMT+07:00 Luca Bruno <lethalman88 gmail com>:

On 10/03/2014 07:51, Estu Fardani wrote:

Hi.
Im just try to use spawn_command_line_async*. But how to implement if
command have more than one line?

sample

*cp file file.oriecho "Original file" | tee file*


Spawn a bash -c yourcommand.

thanks luca
i found my problem, its not because command, but get error from gksudo
"(gksudo:3262): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL'
failed"

so what i do, i write this commad to file, make it executable and run from
spawn.
change gksudo to sudo. :D
_______________________________________________

vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list



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