2014-03-10 15:33 GMT+07:00 Luca Bruno <[email protected]>:

> 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
> [email protected]
> https://mail.gnome.org/mailman/listinfo/vala-list
>
_______________________________________________
vala-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to