This file is indexed.

/usr/share/gtk-doc/html/cutter/GCutProcess.html is in cutter-testing-framework-doc 1.1.7-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>External command</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="Cutter Reference Manual">
<link rel="up" href="writing-test.html" title="Writing test">
<link rel="prev" href="cutter-Convenience-test-data-API.html" title="Convenience test data API">
<link rel="next" href="GCutEgg.html" title="External command (deprecated)">
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="cutter-Convenience-test-data-API.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="writing-test.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Cutter Reference Manual</th>
<td><a accesskey="n" href="GCutEgg.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GCutProcess.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#GCutProcess.description" class="shortcut">Description</a>
                   | 
                  <a href="#GCutProcess.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#GCutProcess.properties" class="shortcut">Properties</a>
                   | 
                  <a href="#GCutProcess.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry" title="External command">
<a name="GCutProcess"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GCutProcess.top_of_page"></a>External command</span></h2>
<p>External command — Convenience API for using external
command.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="GCutProcess.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">#define             <a class="link" href="GCutProcess.html#GCUT-PROCESS-ERROR:CAPS" title="GCUT_PROCESS_ERROR">GCUT_PROCESS_ERROR</a>
                    <a class="link" href="GCutProcess.html#GCutProcess-struct" title="GCutProcess">GCutProcess</a>;
                    <a class="link" href="GCutProcess.html#GCutProcessClass" title="GCutProcessClass">GCutProcessClass</a>;
enum                <a class="link" href="GCutProcess.html#GCutProcessError" title="enum GCutProcessError">GCutProcessError</a>;
<span class="returnvalue">GQuark</span>              <a class="link" href="GCutProcess.html#gcut-process-error-quark" title="gcut_process_error_quark ()">gcut_process_error_quark</a>            (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       <a class="link" href="GCutProcess.html#gcut-process-new" title="gcut_process_new ()">gcut_process_new</a>                    (<em class="parameter"><code>const <span class="type">gchar</span> *command</code></em>,
                                                         <em class="parameter"><code>...</code></em>);
<a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       <a class="link" href="GCutProcess.html#gcut-process-new-command-line" title="gcut_process_new_command_line ()">gcut_process_new_command_line</a>       (<em class="parameter"><code>const <span class="type">gchar</span> *command_line</code></em>);
<a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       <a class="link" href="GCutProcess.html#gcut-process-new-va-list" title="gcut_process_new_va_list ()">gcut_process_new_va_list</a>            (<em class="parameter"><code>const <span class="type">gchar</span> *command</code></em>,
                                                         <em class="parameter"><code><span class="type">va_list</span> args</code></em>);
<a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       <a class="link" href="GCutProcess.html#gcut-process-new-argv" title="gcut_process_new_argv ()">gcut_process_new_argv</a>               (<em class="parameter"><code><span class="type">gint</span> argc</code></em>,
                                                         <em class="parameter"><code><span class="type">gchar</span> **argv</code></em>);
<a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       <a class="link" href="GCutProcess.html#gcut-process-new-strings" title="gcut_process_new_strings ()">gcut_process_new_strings</a>            (<em class="parameter"><code>const <span class="type">gchar</span> **command</code></em>);
<a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       <a class="link" href="GCutProcess.html#gcut-process-new-array" title="gcut_process_new_array ()">gcut_process_new_array</a>              (<em class="parameter"><code><span class="type">GArray</span> *command</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GCutProcess.html#gcut-process-set-flags" title="gcut_process_set_flags ()">gcut_process_set_flags</a>              (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">GSpawnFlags</span> flags</code></em>);
<span class="returnvalue">GSpawnFlags</span>         <a class="link" href="GCutProcess.html#gcut-process-get-flags" title="gcut_process_get_flags ()">gcut_process_get_flags</a>              (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GCutProcess.html#gcut-process-set-env" title="gcut_process_set_env ()">gcut_process_set_env</a>                (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
                                                         <em class="parameter"><code>...</code></em>);
<span class="returnvalue">gchar</span> **            <a class="link" href="GCutProcess.html#gcut-process-get-env" title="gcut_process_get_env ()">gcut_process_get_env</a>                (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="GCutProcess.html#gcut-process-run" title="gcut_process_run ()">gcut_process_run</a>                    (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">GPid</span>                <a class="link" href="GCutProcess.html#gcut-process-get-pid" title="gcut_process_get_pid ()">gcut_process_get_pid</a>                (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">gint</span>                <a class="link" href="GCutProcess.html#gcut-process-wait" title="gcut_process_wait ()">gcut_process_wait</a>                   (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> timeout</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="GCutProcess.html#gcut-process-kill" title="gcut_process_kill ()">gcut_process_kill</a>                   (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> signal_number</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="GCutProcess.html#gcut-process-write" title="gcut_process_write ()">gcut_process_write</a>                  (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *chunk</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> size</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">GIOStatus</span>           <a class="link" href="GCutProcess.html#gcut-process-flush" title="gcut_process_flush ()">gcut_process_flush</a>                  (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">GString</span> *           <a class="link" href="GCutProcess.html#gcut-process-get-output-string" title="gcut_process_get_output_string ()">gcut_process_get_output_string</a>      (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">GString</span> *           <a class="link" href="GCutProcess.html#gcut-process-get-error-string" title="gcut_process_get_error_string ()">gcut_process_get_error_string</a>       (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">GIOChannel</span> *        <a class="link" href="GCutProcess.html#gcut-process-get-input-channel" title="gcut_process_get_input_channel ()">gcut_process_get_input_channel</a>      (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">GIOChannel</span> *        <a class="link" href="GCutProcess.html#gcut-process-get-output-channel" title="gcut_process_get_output_channel ()">gcut_process_get_output_channel</a>     (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">GIOChannel</span> *        <a class="link" href="GCutProcess.html#gcut-process-get-error-channel" title="gcut_process_get_error_channel ()">gcut_process_get_error_channel</a>      (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">GInputStream</span> *      <a class="link" href="GCutProcess.html#gcut-process-get-output-stream" title="gcut_process_get_output_stream ()">gcut_process_get_output_stream</a>      (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">GInputStream</span> *      <a class="link" href="GCutProcess.html#gcut-process-get-error-stream" title="gcut_process_get_error_stream ()">gcut_process_get_error_stream</a>       (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">guint</span>               <a class="link" href="GCutProcess.html#gcut-process-get-forced-termination-wait-time" title="gcut_process_get_forced_termination_wait_time ()">gcut_process_get_forced_termination_wait_time</a>
                                                        (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GCutProcess.html#gcut-process-set-forced-termination-wait-time" title="gcut_process_set_forced_termination_wait_time ()">gcut_process_set_forced_termination_wait_time</a>
                                                        (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> timeout</code></em>);
<a class="link" href="GCutEventLoop.html" title="Abstracted event loop"><span class="returnvalue">GCutEventLoop</span></a> *     <a class="link" href="GCutProcess.html#gcut-process-get-event-loop" title="gcut_process_get_event_loop ()">gcut_process_get_event_loop</a>         (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GCutProcess.html#gcut-process-set-event-loop" title="gcut_process_set_event_loop ()">gcut_process_set_event_loop</a>         (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GCutEventLoop.html" title="Abstracted event loop"><span class="type">GCutEventLoop</span></a> *loop</code></em>);
</pre>
</div>
<div class="refsect1" title="Object Hierarchy">
<a name="GCutProcess.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GObject
   +----GCutProcess
</pre>
</div>
<div class="refsect1" title="Properties">
<a name="GCutProcess.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GCutProcess.html#GCutProcess--command" title='The "command" property'>command</a>"                  <span class="type">gpointer</span>              : Read / Write
</pre>
</div>
<div class="refsect1" title="Signals">
<a name="GCutProcess.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="GCutProcess.html#GCutProcess-error" title='The "error" signal'>error</a>"                                          : Run Last
  "<a class="link" href="GCutProcess.html#GCutProcess-error-received" title='The "error-received" signal'>error-received</a>"                                 : Run Last
  "<a class="link" href="GCutProcess.html#GCutProcess-output-received" title='The "output-received" signal'>output-received</a>"                                : Run Last
  "<a class="link" href="GCutProcess.html#GCutProcess-reaped" title='The "reaped" signal'>reaped</a>"                                         : Run Last
</pre>
</div>
<div class="refsect1" title="Description">
<a name="GCutProcess.description"></a><h2>Description</h2>
<p>
<a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> encapsulates external command execution,
communication and termination. <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> reports an error
as <span class="type">GError</span>. It can be asserted easily by
<a class="link" href="cutter-Assertions-with-GLib-support.html#gcut-assert-error" title="gcut_assert_error ()"><code class="function">gcut_assert_error()</code></a>.
</p>
<p>
External command is specified to constructor like
<a class="link" href="GCutProcess.html#gcut-process-new" title="gcut_process_new ()"><code class="function">gcut_process_new()</code></a>, <a class="link" href="GCutProcess.html#gcut-process-new-strings" title="gcut_process_new_strings ()"><code class="function">gcut_process_new_strings()</code></a> and so
on. External command isn't run at the
time. <a class="link" href="GCutProcess.html#gcut-process-run" title="gcut_process_run ()"><code class="function">gcut_process_run()</code></a> runs specified external command.
</p>
<p>
Standard/Error outputs of external command are passed by
<a class="link" href="GCutProcess.html#GCutProcess-output-received" title='The "output-received" signal'><span class="type">"output-received"</span></a>/<a class="link" href="GCutProcess.html#GCutProcess-error-received" title='The "error-received" signal'><span class="type">"error-received"</span></a> signals
or <span class="type">GIOChannel</span> returned by
<code class="function">gcut_process_get_output()</code>/<code class="function">gcut_process_get_error()</code>.
<a class="link" href="GCutProcess.html#gcut-process-write" title="gcut_process_write ()"><code class="function">gcut_process_write()</code></a> writes a chunk to standard input of
external command.
</p>
<p>
To wait external command finished, <a class="link" href="GCutProcess.html#gcut-process-wait" title="gcut_process_wait ()"><code class="function">gcut_process_wait()</code></a> can be
used. It accepts timeout to avoid infinite waiting.
</p>
<p>
e.g.:
</p>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">static</span> GString <span class="symbol">*</span>output_string<span class="symbol">;</span>
<span class="gtkdoc kwb">static</span> GCutProcess <span class="symbol">*</span>process<span class="symbol">;</span>

<span class="gtkdoc kwb">void</span>
<span class="function"><a href="../cutter/cutter-Cutter.html#cut-setup">cut_setup</a></span> <span class="symbol">(</span><span class="gtkdoc kwb">void</span><span class="symbol">)</span>
<span class="symbol">{</span>
    output_string <span class="symbol">=</span> <span class="function">g_string_new</span><span class="symbol">(</span>NULL<span class="symbol">);</span>
    process <span class="symbol">=</span> NULL<span class="symbol">;</span>
<span class="symbol">}</span>

<span class="gtkdoc kwb">void</span>
<span class="function"><a href="../cutter/cutter-Cutter.html#cut-teardown">cut_teardown</a></span> <span class="symbol">(</span><span class="gtkdoc kwb">void</span><span class="symbol">)</span>
<span class="symbol">{</span>
    <span class="keyword">if</span> <span class="symbol">(</span>output_string<span class="symbol">)</span>
        <span class="function">g_string_free</span><span class="symbol">(</span>output_string<span class="symbol">,</span> TRUE<span class="symbol">);</span>
    <span class="keyword">if</span> <span class="symbol">(</span>process<span class="symbol">)</span>
        <span class="function">g_object_unref</span><span class="symbol">(</span>process<span class="symbol">);</span>
<span class="symbol">}</span>

<span class="gtkdoc kwb">static void</span>
<span class="function">cb_output_received</span> <span class="symbol">(</span>GCutProcess <span class="symbol">*</span>process<span class="symbol">,</span> <span class="gtkdoc kwb">const</span> gchar <span class="symbol">*</span>chunk<span class="symbol">,</span> gsize size<span class="symbol">,</span>
                    gpointer user_data<span class="symbol">)</span>
<span class="symbol">{</span>
    <span class="function">g_string_append_len</span><span class="symbol">(</span>output_string<span class="symbol">,</span> chunk<span class="symbol">,</span> size<span class="symbol">);</span>
<span class="symbol">}</span>

<span class="gtkdoc kwb">void</span>
<span class="function">test_echo</span> <span class="symbol">(</span><span class="gtkdoc kwb">void</span><span class="symbol">)</span>
<span class="symbol">{</span>
    GError <span class="symbol">*</span>error <span class="symbol">=</span> NULL<span class="symbol">;</span>

    process <span class="symbol">=</span> <span class="function"><a href="../cutter/GCutProcess.html#gcut-process-new">gcut_process_new</a></span><span class="symbol">(</span><span class="string">&quot;echo&quot;</span><span class="symbol">,</span> <span class="string">&quot;XXX&quot;</span><span class="symbol">,</span> NULL<span class="symbol">);</span>
    <span class="function">g_signal_connect</span><span class="symbol">(</span>process<span class="symbol">,</span> <span class="string">&quot;receive-output&quot;</span><span class="symbol">,</span>
                     <span class="function">G_CALLBACK</span><span class="symbol">(</span>cb_output_received<span class="symbol">),</span> NULL<span class="symbol">);</span>

    <span class="function"><a href="../cutter/GCutProcess.html#gcut-process-run">gcut_process_run</a></span><span class="symbol">(</span>process<span class="symbol">, &amp;</span>error<span class="symbol">);</span>
    <span class="function"><a href="../cutter/cutter-Assertions-with-GLib-support.html#gcut-assert-error">gcut_assert_error</a></span><span class="symbol">(</span>error<span class="symbol">);</span>

    <span class="function"><a href="../cutter/GCutProcess.html#gcut-process-wait">gcut_process_wait</a></span><span class="symbol">(</span>process<span class="symbol">,</span> <span class="number">1000</span><span class="symbol">, &amp;</span>error<span class="symbol">);</span>
    <span class="function"><a href="../cutter/cutter-Assertions-with-GLib-support.html#gcut-assert-error">gcut_assert_error</a></span><span class="symbol">(</span>error<span class="symbol">);</span>
    <span class="function"><a href="../cutter/cutter-Assertions.html#cut-assert-equal-string">cut_assert_equal_string</a></span><span class="symbol">(</span><span class="string">&quot;XXX</span><span class="gtkdoc esc">\n</span><span class="string">&quot;</span><span class="symbol">,</span> output_string<span class="symbol">-&gt;</span>str<span class="symbol">);</span>
<span class="symbol">}</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p>
</p>
</div>
<div class="refsect1" title="Details">
<a name="GCutProcess.details"></a><h2>Details</h2>
<div class="refsect2" title="GCUT_PROCESS_ERROR">
<a name="GCUT-PROCESS-ERROR:CAPS"></a><h3>GCUT_PROCESS_ERROR</h3>
<pre class="programlisting">#define GCUT_PROCESS_ERROR           (gcut_process_error_quark())
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="GCutProcess">
<a name="GCutProcess-struct"></a><h3>GCutProcess</h3>
<pre class="programlisting">typedef struct _GCutProcess GCutProcess;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="GCutProcessClass">
<a name="GCutProcessClass"></a><h3>GCutProcessClass</h3>
<pre class="programlisting">typedef struct {
    GObjectClass parent_class;

    void (*output_received) (GCutProcess *process,
                             const gchar *chunk,
                             gsize        size);
    void (*error_received)  (GCutProcess *process,
                             const gchar *chunk,
                             gsize        size);
    void (*reaped)          (GCutProcess *process,
                             gint         status);
    void (*error)           (GCutProcess *process,
                             GError      *error);
} GCutProcessClass;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="enum GCutProcessError">
<a name="GCutProcessError"></a><h3>enum GCutProcessError</h3>
<pre class="programlisting">typedef enum
{
    GCUT_PROCESS_ERROR_COMMAND_LINE,
    GCUT_PROCESS_ERROR_IO_ERROR,
    GCUT_PROCESS_ERROR_ALREADY_RUNNING,
    GCUT_PROCESS_ERROR_NOT_RUNNING,
    GCUT_PROCESS_ERROR_INVALID_OBJECT,
    GCUT_PROCESS_ERROR_INVALID_SIGNAL,
    GCUT_PROCESS_ERROR_PERMISSION_DENIED,
    GCUT_PROCESS_ERROR_TIMEOUT
} GCutProcessError;
</pre>
<p>
Error codes returned by <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> related operations.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="GCUT-PROCESS-ERROR-COMMAND-LINE:CAPS"></a><span class="term"><code class="literal">GCUT_PROCESS_ERROR_COMMAND_LINE</code></span></p></td>
<td>Command line related error.
</td>
</tr>
<tr>
<td><p><a name="GCUT-PROCESS-ERROR-IO-ERROR:CAPS"></a><span class="term"><code class="literal">GCUT_PROCESS_ERROR_IO_ERROR</code></span></p></td>
<td>IO error.
</td>
</tr>
<tr>
<td><p><a name="GCUT-PROCESS-ERROR-ALREADY-RUNNING:CAPS"></a><span class="term"><code class="literal">GCUT_PROCESS_ERROR_ALREADY_RUNNING</code></span></p></td>
<td>External command is already running.
</td>
</tr>
<tr>
<td><p><a name="GCUT-PROCESS-ERROR-NOT-RUNNING:CAPS"></a><span class="term"><code class="literal">GCUT_PROCESS_ERROR_NOT_RUNNING</code></span></p></td>
<td>External command isn't running.
</td>
</tr>
<tr>
<td><p><a name="GCUT-PROCESS-ERROR-INVALID-OBJECT:CAPS"></a><span class="term"><code class="literal">GCUT_PROCESS_ERROR_INVALID_OBJECT</code></span></p></td>
<td>Invalid <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> object is passed.
</td>
</tr>
<tr>
<td><p><a name="GCUT-PROCESS-ERROR-INVALID-SIGNAL:CAPS"></a><span class="term"><code class="literal">GCUT_PROCESS_ERROR_INVALID_SIGNAL</code></span></p></td>
<td>Invalid signal is passed.
</td>
</tr>
<tr>
<td><p><a name="GCUT-PROCESS-ERROR-PERMISSION-DENIED:CAPS"></a><span class="term"><code class="literal">GCUT_PROCESS_ERROR_PERMISSION_DENIED</code></span></p></td>
<td>Permission denied.
</td>
</tr>
<tr>
<td><p><a name="GCUT-PROCESS-ERROR-TIMEOUT:CAPS"></a><span class="term"><code class="literal">GCUT_PROCESS_ERROR_TIMEOUT</code></span></p></td>
<td>Timeout.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_error_quark ()">
<a name="gcut-process-error-quark"></a><h3>gcut_process_error_quark ()</h3>
<pre class="programlisting"><span class="returnvalue">GQuark</span>              gcut_process_error_quark            (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="gcut_process_new ()">
<a name="gcut-process-new"></a><h3>gcut_process_new ()</h3>
<pre class="programlisting"><a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       gcut_process_new                    (<em class="parameter"><code>const <span class="type">gchar</span> *command</code></em>,
                                                         <em class="parameter"><code>...</code></em>);</pre>
<p>
Creates a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> object that runs <em class="parameter"><code>command</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>command</code></em> :</span></p></td>
<td>the external command name to be ran
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>the arguments for <em class="parameter"><code>command</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_new_command_line ()">
<a name="gcut-process-new-command-line"></a><h3>gcut_process_new_command_line ()</h3>
<pre class="programlisting"><a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       gcut_process_new_command_line       (<em class="parameter"><code>const <span class="type">gchar</span> *command_line</code></em>);</pre>
<p>
Creates a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> object that runs <em class="parameter"><code>command_line</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>command_line</code></em> :</span></p></td>
<td>a command line
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_new_va_list ()">
<a name="gcut-process-new-va-list"></a><h3>gcut_process_new_va_list ()</h3>
<pre class="programlisting"><a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       gcut_process_new_va_list            (<em class="parameter"><code>const <span class="type">gchar</span> *command</code></em>,
                                                         <em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre>
<p>
Creates a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> object that runs <em class="parameter"><code>command</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>command</code></em> :</span></p></td>
<td>the external command name to be ran
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
<td>arguments for <em class="parameter"><code>command</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_new_argv ()">
<a name="gcut-process-new-argv"></a><h3>gcut_process_new_argv ()</h3>
<pre class="programlisting"><a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       gcut_process_new_argv               (<em class="parameter"><code><span class="type">gint</span> argc</code></em>,
                                                         <em class="parameter"><code><span class="type">gchar</span> **argv</code></em>);</pre>
<p>
Creates a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> object that runs <em class="parameter"><code>command</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>argc</code></em> :</span></p></td>
<td>the number of elements of <em class="parameter"><code>argv</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>argv</code></em> :</span></p></td>
<td>the external command name to be ran and arguments
of it.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_new_strings ()">
<a name="gcut-process-new-strings"></a><h3>gcut_process_new_strings ()</h3>
<pre class="programlisting"><a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       gcut_process_new_strings            (<em class="parameter"><code>const <span class="type">gchar</span> **command</code></em>);</pre>
<p>
Creates a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> object that runs <em class="parameter"><code>command</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>command</code></em> :</span></p></td>
<td>the external command name to be ran and
arguments of it. <code class="literal">NULL</code>-terminated.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_new_array ()">
<a name="gcut-process-new-array"></a><h3>gcut_process_new_array ()</h3>
<pre class="programlisting"><a class="link" href="GCutProcess.html" title="External command"><span class="returnvalue">GCutProcess</span></a> *       gcut_process_new_array              (<em class="parameter"><code><span class="type">GArray</span> *command</code></em>);</pre>
<p>
Creates a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> object that runs <em class="parameter"><code>command</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>command</code></em> :</span></p></td>
<td>the external command name to be ran and
arguments of it. The <span class="type">GArray</span> should be zero-terminated.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_set_flags ()">
<a name="gcut-process-set-flags"></a><h3>gcut_process_set_flags ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gcut_process_set_flags              (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">GSpawnFlags</span> flags</code></em>);</pre>
<p>
Sets <em class="parameter"><code>flags</code></em> for spawning.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>the flags to be passed to <code class="function">g_spawn_async_with_pipes()</code>.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_flags ()">
<a name="gcut-process-get-flags"></a><h3>gcut_process_get_flags ()</h3>
<pre class="programlisting"><span class="returnvalue">GSpawnFlags</span>         gcut_process_get_flags              (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<p>
Gets <em class="parameter"><code>flags</code></em> for spawning.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the flags for spawning.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_set_env ()">
<a name="gcut-process-set-env"></a><h3>gcut_process_set_env ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gcut_process_set_env                (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
                                                         <em class="parameter"><code>...</code></em>);</pre>
<p>
Sets environment variable for external command.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>the first environment name.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>the value of <em class="parameter"><code>name</code></em>, followed by name and value
pairs. <code class="literal">NULL</code>-terminated.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_env ()">
<a name="gcut-process-get-env"></a><h3>gcut_process_get_env ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> **            gcut_process_get_env                (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<p>
Gets environment variable for external command.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a newly-allocated <code class="literal">NULL</code>-terminated environment
variables. ("NAME1=VALUE1", "NAME2=VALUE2",
..., <code class="literal">NULL</code>) It should be freed by <code class="function">g_strfreev()</code> when no longer
needed.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_run ()">
<a name="gcut-process-run"></a><h3>gcut_process_run ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gcut_process_run                    (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Runs a new external process.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for an error, or <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">TRUE</code> on success, otherwise <code class="literal">FALSE</code>

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_pid ()">
<a name="gcut-process-get-pid"></a><h3>gcut_process_get_pid ()</h3>
<pre class="programlisting"><span class="returnvalue">GPid</span>                gcut_process_get_pid                (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<p>
Gets the process ID of running external process. If
external process isn't running, 0 is returned.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the process ID of running external process if
external process is running, otherwise 0.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_wait ()">
<a name="gcut-process-wait"></a><h3>gcut_process_wait ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                gcut_process_wait                   (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> timeout</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Waits running external process is finished while <em class="parameter"><code>timeout</code></em>
milliseconds. If external process isn't finished while
<em class="parameter"><code>timeout</code></em> milliseconds, <a class="link" href="GCutProcess.html#GCUT-PROCESS-ERROR-TIMEOUT:CAPS"><code class="literal">GCUT_PROCESS_ERROR_TIMEOUT</code></a> error is
set and -1 is returned. If external process isn't
running, <a class="link" href="GCutProcess.html#GCUT-PROCESS-ERROR-NOT-RUNNING:CAPS"><code class="literal">GCUT_PROCESS_ERROR_NOT_RUNNING</code></a> error is set and -1
is returned.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>timeout</code></em> :</span></p></td>
<td>the timeout period in milliseconds
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for an error, or <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> an exit status of external process on success,
otherwise -1.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_kill ()">
<a name="gcut-process-kill"></a><h3>gcut_process_kill ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gcut_process_kill                   (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> signal_number</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Sends <em class="parameter"><code>signal_number</code></em> signal to external process.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_number</code></em> :</span></p></td>
<td>the signal number to be sent to external process
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for an error, or <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">TRUE</code> on success, otherwise <code class="literal">FALSE</code>

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_write ()">
<a name="gcut-process-write"></a><h3>gcut_process_write ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gcut_process_write                  (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *chunk</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> size</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Writes <em class="parameter"><code>chunk</code></em> to external process's standard input.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>chunk</code></em> :</span></p></td>
<td>the data to be wrote
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the size of <em class="parameter"><code>chunk</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for an error, or <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">TRUE</code> on success, otherwise <code class="literal">FALSE</code>

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_flush ()">
<a name="gcut-process-flush"></a><h3>gcut_process_flush ()</h3>
<pre class="programlisting"><span class="returnvalue">GIOStatus</span>           gcut_process_flush                  (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Flush buffered external process's standard input.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for an error, or <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the status of the operation: One of
         <code class="literal">G_IO_STATUS_NORMAL</code>, <code class="literal">G_IO_STATUS_AGAIN</code>, or
         <code class="literal">G_IO_STATUS_ERROR</code>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_output_string ()">
<a name="gcut-process-get-output-string"></a><h3>gcut_process_get_output_string ()</h3>
<pre class="programlisting"><span class="returnvalue">GString</span> *           gcut_process_get_output_string      (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a <span class="type">GString</span> that has all result of standard
output of external process.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_error_string ()">
<a name="gcut-process-get-error-string"></a><h3>gcut_process_get_error_string ()</h3>
<pre class="programlisting"><span class="returnvalue">GString</span> *           gcut_process_get_error_string       (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a <span class="type">GString</span> that has all result of standard
error of external process.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_input_channel ()">
<a name="gcut-process-get-input-channel"></a><h3>gcut_process_get_input_channel ()</h3>
<pre class="programlisting"><span class="returnvalue">GIOChannel</span> *        gcut_process_get_input_channel      (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<p>
Gets a <span class="type">GIOChannel</span> connected with standard input of
external process.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a <span class="type">GIOChannel</span> if external process is running,
otherwise <code class="literal">NULL</code>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_output_channel ()">
<a name="gcut-process-get-output-channel"></a><h3>gcut_process_get_output_channel ()</h3>
<pre class="programlisting"><span class="returnvalue">GIOChannel</span> *        gcut_process_get_output_channel     (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<p>
Gets a <span class="type">GIOChannel</span> connected with standard output of
external process.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a <span class="type">GIOChannel</span> if external process is running,
otherwise <code class="literal">NULL</code>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_error_channel ()">
<a name="gcut-process-get-error-channel"></a><h3>gcut_process_get_error_channel ()</h3>
<pre class="programlisting"><span class="returnvalue">GIOChannel</span> *        gcut_process_get_error_channel      (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<p>
Gets a <span class="type">GIOChannel</span> connected with standard error output
of external process.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a <span class="type">GIOChannel</span> if external process is running,
otherwise <code class="literal">NULL</code>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_output_stream ()">
<a name="gcut-process-get-output-stream"></a><h3>gcut_process_get_output_stream ()</h3>
<pre class="programlisting"><span class="returnvalue">GInputStream</span> *      gcut_process_get_output_stream      (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<p>
Gets a <span class="type">GInputStream</span> connected with standard output of
external process.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a <span class="type">GInputStream</span> if external process is running,
otherwise <code class="literal">NULL</code>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_error_stream ()">
<a name="gcut-process-get-error-stream"></a><h3>gcut_process_get_error_stream ()</h3>
<pre class="programlisting"><span class="returnvalue">GInputStream</span> *      gcut_process_get_error_stream       (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<p>
Gets a <span class="type">GInputStream</span> connected with standard error output
of external process.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a <span class="type">GInputStream</span> if external process is running,
otherwise <code class="literal">NULL</code>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_forced_termination_wait_time ()">
<a name="gcut-process-get-forced-termination-wait-time"></a><h3>gcut_process_get_forced_termination_wait_time ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>               gcut_process_get_forced_termination_wait_time
                                                        (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<p>
Gets a wait time in milliseconds for forced termination
on dispose.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a timeout value for waiting forced terminated
external command on dispose.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_set_forced_termination_wait_time ()">
<a name="gcut-process-set-forced-termination-wait-time"></a><h3>gcut_process_set_forced_termination_wait_time ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gcut_process_set_forced_termination_wait_time
                                                        (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> timeout</code></em>);</pre>
<p>
Sets a wait time in milliseconds for forced termination
on dispose. If <em class="parameter"><code>timeout</code></em> is 0, it doesn't wait
termination of external process. The default value is 10.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>timeout</code></em> :</span></p></td>
<td>the timeout value in milliseconds
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_get_event_loop ()">
<a name="gcut-process-get-event-loop"></a><h3>gcut_process_get_event_loop ()</h3>
<pre class="programlisting"><a class="link" href="GCutEventLoop.html" title="Abstracted event loop"><span class="returnvalue">GCutEventLoop</span></a> *     gcut_process_get_event_loop         (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>);</pre>
<p>
Gets a event loop using by the <em class="parameter"><code>process</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a <a class="link" href="GCutEventLoop.html" title="Abstracted event loop"><span class="type">GCutEventLoop</span></a>.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.6</p>
</div>
<hr>
<div class="refsect2" title="gcut_process_set_event_loop ()">
<a name="gcut-process-set-event-loop"></a><h3>gcut_process_set_event_loop ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gcut_process_set_event_loop         (<em class="parameter"><code><a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GCutEventLoop.html" title="Abstracted event loop"><span class="type">GCutEventLoop</span></a> *loop</code></em>);</pre>
<p>
Sets a event loop for the <em class="parameter"><code>process</code></em>. If <em class="parameter"><code>loop</code></em> is <code class="literal">NULL</code>,
the default GLib event loop will be used.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>a <a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>loop</code></em> :</span></p></td>
<td>the event loop or <code class="literal">NULL</code>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.6</p>
</div>
</div>
<div class="refsect1" title="Property Details">
<a name="GCutProcess.property-details"></a><h2>Property Details</h2>
<div class="refsect2" title='The "command" property'>
<a name="GCutProcess--command"></a><h3>The <code class="literal">"command"</code> property</h3>
<pre class="programlisting">  "command"                  <span class="type">gpointer</span>              : Read / Write</pre>
<p>The command to be ran by the process.</p>
</div>
</div>
<div class="refsect1" title="Signal Details">
<a name="GCutProcess.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2" title='The "error" signal'>
<a name="GCutProcess-error"></a><h3>The <code class="literal">"error"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process,
                                                        <span class="type">gpointer</span>     error,
                                                        <span class="type">gpointer</span>     user_data)      : Run Last</pre>
<p>
It is emitted each time an external process causes an
error. (e.g. IO error)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>the error of an external process. (<code class="literal">GError</code>)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title='The "error-received" signal'>
<a name="GCutProcess-error-received"></a><h3>The <code class="literal">"error-received"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process,
                                                        <span class="type">gchar</span>       *chunk,
                                                        <span class="type">guint64</span>      size,
                                                        <span class="type">gpointer</span>     user_data)      : Run Last</pre>
<p>
It is emitted each time an external process outputs
something to its standard error output and it is
read.
</p>
<p>
Note that you need to run GLib's main loop by
<code class="function">g_main_loop_run()</code>, <code class="function">g_main_context_iteration()</code> and so
on for detecting an external process's output is
readable.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>chunk</code></em> :</span></p></td>
<td>the chunk read from an external process's
        standard error output.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the size of <em class="parameter"><code>chunk</code></em>. (<code class="literal">gsize</code>)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title='The "output-received" signal'>
<a name="GCutProcess-output-received"></a><h3>The <code class="literal">"output-received"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process,
                                                        <span class="type">gchar</span>       *chunk,
                                                        <span class="type">guint64</span>      size,
                                                        <span class="type">gpointer</span>     user_data)      : Run Last</pre>
<p>
It is emitted each time an external process outputs
something to its standard output and it is read.
</p>
<p>
Note that you need to run GLib's main loop by
<code class="function">g_main_loop_run()</code>, <code class="function">g_main_context_iteration()</code> and so
on for detecting an external process's output is
readable.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>chunk</code></em> :</span></p></td>
<td>the chunk read from an external process's
        standard output.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the size of <em class="parameter"><code>chunk</code></em>. (<code class="literal">gsize</code>)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
<hr>
<div class="refsect2" title='The "reaped" signal'>
<a name="GCutProcess-reaped"></a><h3>The <code class="literal">"reaped"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GCutProcess.html" title="External command"><span class="type">GCutProcess</span></a> *process,
                                                        <span class="type">gint</span>         status,
                                                        <span class="type">gpointer</span>     user_data)      : Run Last</pre>
<p>
It is emitted when an external process is exited.
</p>
<p>
Note that you need to run GLib's main loop by
<code class="function">g_main_loop_run()</code>, <code class="function">g_main_context_iteration()</code> and so
on for detecting an external process is exited.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>process</code></em> :</span></p></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>status</code></em> :</span></p></td>
<td>the exit status of an external process.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.1.5</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.15</div>
</body>
</html>