mersenneforum.org  

Go Back   mersenneforum.org > Search Forums

Showing results 1 to 21 of 21
Search took 0.01 seconds.
Search: Posts Made By: EdH
Forum: Programming 2021-10-15, 22:07
Replies: 41
Views: 3,876
Posted By EdH
Thanks! That is important.

Thanks! That is important.
Forum: Programming 2021-10-15, 18:48
Replies: 41
Views: 3,876
Posted By EdH
Just a final note to my "adventure," since there...

Just a final note to my "adventure," since there is a conclusion:

First, YAFU was never "portable" enough for my need. I found that even changing to a parallel directory caused it to output...
Forum: Programming 2021-10-06, 17:58
Replies: 41
Views: 3,876
Posted By EdH
Well, unfortunately, in practice, it just doesn't...

Well, unfortunately, in practice, it just doesn't work!

From the command line, the stand alone script works as it should. But, as a function within the bigger script, or as a call to the working...
Forum: Programming 2021-10-05, 14:25
Replies: 41
Views: 3,876
Posted By EdH
I've successfully coded a stand alone script that...

I've successfully coded a stand alone script that works well. I have not attempted to incorporate the code into a function in the main script. Perhaps a little later.

Thanks for all the help.
Forum: Programming 2021-10-05, 02:43
Replies: 41
Views: 3,876
Posted By EdH
#!/bin/bash a="31363920 948583258055568...

#!/bin/bash

a="31363920 948583258055568 -21094061301960794201597 -101781123694367174730692456309"
echo "$a" > testcase
echo "22$a" >> testcase
c="31363920"
m="3"

printf "\nYAFU says $c*$m...
Forum: Programming 2021-10-05, 02:19
Replies: 41
Views: 3,876
Posted By EdH
Excellent! But, I'm still a bit confused as to...

Excellent! But, I'm still a bit confused as to how to read subsequent lines from testcase. In my original version, I'm trying to use:exec <"testcase"
while read line
do
...
Forum: Programming 2021-10-04, 22:27
Replies: 41
Views: 3,876
Posted By EdH
YAFU says 31363920*3 is ytestW-N.sh: command...

YAFU says 31363920*3 is ytestW-N.sh: command substitution: line 15: syntax error near unexpected token `('
ytestW-N.sh: command substitution: line 15: `../../yafu/yafu \"expr($c\*$m)\" -silent)'You...
Forum: Programming 2021-10-04, 22:15
Replies: 41
Views: 3,876
Posted By EdH
Without file read:YAFU says 31363920*3 is...

Without file read:YAFU says 31363920*3 is ytestW-N.sh: command substitution: line 15: syntax error near unexpected token `('
ytestW-N.sh: command substitution: line 15: `../../yafu/yafu...
Forum: Programming 2021-10-04, 21:59
Replies: 41
Views: 3,876
Posted By EdH
YAFU expects./yafu "expr(number*number)"...

YAFU expects./yafu "expr(number*number)" <options> for its "expr()" call. The quotes tell YAFU the function (in this case expr) to invoke. Then the <options> are added outside the quotes.
Forum: Programming 2021-10-04, 21:31
Replies: 41
Views: 3,876
Posted By EdH
However, as proven in the supplied script,...

However, as proven in the supplied script, neither is necessary for the call to succeed:../../yafu/yafu "expr($c*$m)" -silentworks just fine as long as I haven't opened a file, and spaces and \*, as...
Forum: Programming 2021-10-04, 21:07
Replies: 41
Views: 3,876
Posted By EdH
I'm missing something. I'm really tall, but...

I'm missing something. I'm really tall, but somethings is just going right over my head.:sad::confused:
Forum: Programming 2021-10-04, 18:42
Replies: 41
Views: 3,876
Posted By EdH
This doesn't work in the posted script:YAFU says...

This doesn't work in the posted script:YAFU says 31363920*3 is unrecognized variable or function 'factor94091760'or:YAFU says 31363920*3 is unrecognized character in input: -1Thanks!
Forum: Programming 2021-10-04, 18:31
Replies: 41
Views: 3,876
Posted By EdH
Ok, this is starting to make sense, then, since...

Ok, this is starting to make sense, then, since I'm trying to call YAFU while reading lines from an open file. You're saying YAFU is simply noting that a file is open, but not recognizing it is not...
Forum: Programming 2021-10-04, 17:53
Replies: 41
Views: 3,876
Posted By EdH
I've tried to use strace in the past and would...

I've tried to use strace in the past and would need to be more familiar with it for any successful results. It might come to that.
Forum: Programming 2021-10-04, 17:50
Replies: 41
Views: 3,876
Posted By EdH
Actually, I just wrote a small script that...

Actually, I just wrote a small script that displays the exact behavior between working and not, by un/commenting two lines. The problem is definitely generated globally for the script, by reading a...
Forum: Programming 2021-10-03, 18:07
Replies: 41
Views: 3,876
Posted By EdH
Well, set -x showed that the exact same...

Well, set -x showed that the exact same expression is sent to YAFU, but with different results:+ ../../yafu/yafu 'expr(756756*3)' -silent
2270268
...
+ ../../yafu/yafu 'expr(756756*3)' -silent
no...
Forum: Programming 2021-10-03, 17:00
Replies: 41
Views: 3,876
Posted By EdH
Thanks - I'll play with this and see what it...

Thanks - I'll play with this and see what it shows.

For the time being, unless the above gets me some good info, I have come up with a solution in the following way:

I know the...
Forum: Programming 2021-10-03, 15:28
Replies: 41
Views: 3,876
Posted By EdH
I've tried lots of variations including \*, but...

I've tried lots of variations including \*, but mostly, they don't work with YAFU.

I'm still confused as to what the difference may be between a specific variable initialization and the variable...
Forum: Programming 2021-10-03, 12:20
Replies: 41
Views: 3,876
Posted By EdH
I'm guessing it's my personal gremlin screwing...

I'm guessing it's my personal gremlin screwing with me. I wrote a separate script just to perform the task for my main program and it won't work, either. The only difference I can think of is the...
Forum: Programming 2021-10-02, 20:18
Replies: 41
Views: 3,876
Posted By EdH
I cannot detect a difference. Script that...

I cannot detect a difference. Script that works:c4 is 2346021463111956 and am is 3
c4 is 2346021463111956 and c4m is expr(2346021463111956*3) -silent
c4 is 2346021463111956 and c4m is...
Forum: Programming 2021-10-02, 16:20
Replies: 41
Views: 3,876
Posted By EdH
BASH script segment won't work in larger script

I have the following in a BASH script: echo "c4 is $c4 and am is $am"
c4m=$(../../yafu/yafu "expr($c4*$am)" -silent)
echo "c4 is $c4 and c4m is $c4m"It doesn't work anywhere* in...
Showing results 1 to 21 of 21

 
All times are UTC. The time now is 08:17.


Thu Jun 30 08:17:25 UTC 2022 up 77 days, 6:18, 0 users, load averages: 1.63, 1.83, 1.71

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔