summaryrefslogtreecommitdiff
blob: 9af60b7c515242c4ae29a830c8e29d73885f8a41 (plain)
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
diff --git a/ccp4i/crank/plugins/prep/crank_prep.tcl b/ccp4i/crank/plugins/prep/crank_prep.tcl
index 7d05905..d01f1dc 100755
--- a/ccp4i/crank/plugins/prep/crank_prep.tcl
+++ b/ccp4i/crank/plugins/prep/crank_prep.tcl
@@ -226,7 +226,7 @@ proc run_truncate { i j } {
     set script "$script\n$labout"
     set script "$script\nEND\n"
 	
-    set run_command "truncate $command << \"$script\""
+    set run_command "ftruncate $command << \"$script\""
     puts $run_command
     catch {eval exec $run_command } output 
     puts $output
diff --git a/ccp4i/scripts/dtrek2mtz.script b/ccp4i/scripts/dtrek2mtz.script
index e74aa0d..a2a1adb 100755
--- a/ccp4i/scripts/dtrek2mtz.script
+++ b/ccp4i/scripts/dtrek2mtz.script
@@ -36,7 +36,7 @@
     set HKL_TRUNCATE [GetTmpFileName -ext mtz]
 
     CreateComScript truncate truncate_script
-    set cmd "[BinPath truncate] HKLIN \"$HKLTMP\" HKLOUT \"$HKL_TRUNCATE\""
+    set cmd "[BinPath ftruncate] HKLIN \"$HKLTMP\" HKLOUT \"$HKL_TRUNCATE\""
     set status [Execute $cmd $truncate_script program_status report]
 
     HandleHarvestFile $HARVEST_MODE $HARVEST_PNAME $HARVEST_DNAME truncate
diff --git a/ccp4i/scripts/import.script b/ccp4i/scripts/import.script
index 90cba83..1c90c33 100755
--- a/ccp4i/scripts/import.script
+++ b/ccp4i/scripts/import.script
@@ -144,7 +144,7 @@ if { $FORMAT ==  "MTZ" } {
 
     set truncatemtz [GetTmpFileName -ext mtz ]
     CreateComScript truncate truncate_script
-    set cmd "[BinPath truncate] HKLIN \"$tmpmtz\" HKLOUT \"$truncatemtz\""
+    set cmd "[BinPath ftruncate] HKLIN \"$tmpmtz\" HKLOUT \"$truncatemtz\""
     set status [Execute $cmd $truncate_script program_status report]
 
 
diff --git a/ccp4i/scripts/import_scaled.script b/ccp4i/scripts/import_scaled.script
index dcc619b..7250513 100755
--- a/ccp4i/scripts/import_scaled.script
+++ b/ccp4i/scripts/import_scaled.script
@@ -62,7 +62,7 @@
 
     } else {
       CreateComScript truncate truncate_script
-      set cmd "[BinPath truncate] HKLIN \"$HKLTMP\" HKLOUT \"$HKL_TRUNCATE\""
+      set cmd "[BinPath ftruncate] HKLIN \"$HKLTMP\" HKLOUT \"$HKL_TRUNCATE\""
       set status [Execute $cmd $truncate_script program_status report]
 
       HandleHarvestFile $HARVEST_MODE $HARVEST_PNAME $HARVEST_DNAME truncate
diff --git a/ccp4i/scripts/scala.script b/ccp4i/scripts/scala.script
index 6940ccd..bde10d6 100755
--- a/ccp4i/scripts/scala.script
+++ b/ccp4i/scripts/scala.script
@@ -275,7 +275,7 @@ END"
 
       } else {
         CreateComScript truncate truncate_script
-        set cmd "[BinPath truncate] HKLIN \"$HKLTMP\" HKLOUT \"$HKL_TRUNCATE\""  
+        set cmd "[BinPath ftruncate] HKLIN \"$HKLTMP\" HKLOUT \"$HKL_TRUNCATE\""  
         set status [Execute $cmd $truncate_script $LOG_FILE  program_status report  ]
       }
           
diff --git a/ccp4i/scripts/scalepack2mtz.script b/ccp4i/scripts/scalepack2mtz.script
index 986e06c..a1947a6 100755
--- a/ccp4i/scripts/scalepack2mtz.script
+++ b/ccp4i/scripts/scalepack2mtz.script
@@ -35,7 +35,7 @@
 
     set HKL_TRUNCATE [GetTmpFileName -ext mtz]
     CreateComScript truncate truncate_script
-    set cmd "[BinPath truncate] HKLIN \"$HKLTMP\" HKLOUT \"$HKL_TRUNCATE\""
+    set cmd "[BinPath ftruncate] HKLIN \"$HKLTMP\" HKLOUT \"$HKL_TRUNCATE\""
     set status [Execute $cmd $truncate_script program_status report]
 
     HandleHarvestFile $HARVEST_MODE $HARVEST_PNAME $HARVEST_DNAME truncate
diff --git a/ccp4i/scripts/truncate.script b/ccp4i/scripts/truncate.script
index e0e09ce..2d448a2 100755
--- a/ccp4i/scripts/truncate.script
+++ b/ccp4i/scripts/truncate.script
@@ -45,7 +45,7 @@
 
   CreateComScript truncate truncate_script
 
-  set cmd "[BinPath truncate] HKLIN \"$HKLIN\""
+  set cmd "[BinPath ftruncate] HKLIN \"$HKLIN\""
   if { ![StringSame $INPUT_DATA AMPLITUDES] } {
     append cmd " HKLOUT \"$HKL_TRUNCATE\""
   }