Search Results

Search: Posts Made By: psysc0rpi0n
5,711
Posted By psysc0rpi0n
Hello... I've started to try something new...
Hello...

I've started to try something new for my script.
I'm trying to iterate over a JSON object, search for a specific value in all keys present in that object and finally, add those values....
5,711
Posted By psysc0rpi0n
Anyone still around? I'm trying to cut off...
Anyone still around?

I'm trying to cut off global variables in my script but looks like there aren't that many variables I can change scope.
5,711
Posted By psysc0rpi0n
@stomp thanks for the suggestions and...
@stomp

thanks for the suggestions and explanations.

There is no confusion about different ways of coding. I absolutely understand both approaches.

I'm also aware of global and local...
5,711
Posted By psysc0rpi0n
Yes, I understand your suggestion but I would...
Yes, I understand your suggestion but I would like to know what is wrong with the 'test' I'm using there! It's so simple that I can't understand why it's not working!

Edited;
In the meantime I...
5,711
Posted By psysc0rpi0n
Hello. Yesterday I couldn't test the code. I...
Hello.

Yesterday I couldn't test the code. I was too tired and didn't even came to my laptop.

Today I tested it and the variable "$used_net" is correctly set! I echo'ed it right before testing...
5,711
Posted By psysc0rpi0n
Ok, I'll try that later today. You want to...
Ok, I'll try that later today.

You want to explain how bash processes 2 variable atributions within the same line of code? Probably following some rule like left to right or right to left. But...
5,711
Posted By psysc0rpi0n
Hello peeps... I've been changing my script...
Hello peeps...

I've been changing my script in several ways until I'm good with it.

I'm now trying to run a command depending on the value of a variable but this is not working.
The code that...
5,711
Posted By psysc0rpi0n
I finally reached my goal... Some changes in...
I finally reached my goal...

Some changes in the script in the meantime.

I share the link in github:
TugaRevoBTC/TugaRevoTestnet.sh at master . PsySc0rpi0n/TugaRevoBTC . GitHub...
5,711
Posted By psysc0rpi0n
Ok, I'm going to try your examples. This is not...
Ok, I'm going to try your examples. This is not trivial for a starter. I've just been reading but not practicing much, so this is not clear at first sight!

--- Post updated at 10:02 PM ---


...
5,711
Posted By psysc0rpi0n
In bitcoin core docs, says that the amount can be...
In bitcoin core docs, says that the amount can be strings too.

Later after work, I'll look into this.
Thanks
Psy
5,711
Posted By psysc0rpi0n
But I still need to understand something else....
But I still need to understand something else. But it's something related with the way bitcoin core processes the command.

Stomp functions don't add any backslashes and the script don't return any...
5,711
Posted By psysc0rpi0n
I'm home now and almost going bed. That's my...
I'm home now and almost going bed. That's my life. Today free time is about 1h...

I have just tested the json object and array created by the functions using 'jq' tool. I think this is a pretty...
5,711
Posted By psysc0rpi0n
Ok, I'll do that later when I get home. I'll...
Ok, I'll do that later when I get home.

I'll evaluate the list and array as suggested using 'jq' and will post results here!
Then I'll proceed to the 'set -x' thing.

Thanks.
Psy
5,711
Posted By psysc0rpi0n
Yeah, I've been trying to do something like that...
Yeah, I've been trying to do something like that sometimes. I also printf and echo many things to try to see where results go wrong.

I think I made it with the json list. I used your 2 functions...
5,711
Posted By psysc0rpi0n
Ok, I'll read about eval more. I just know one of...
Ok, I'll read about eval more. I just know one of its usages which I think it is to append "parameters" to build a command. When I say this, it may also mean to add/append whatever you want to...
5,711
Posted By psysc0rpi0n
I found the primary problem. I forgot to call one...
I found the primary problem. I forgot to call one of my functions after introducing your functions to my code!

I don't know if you still willing to give me casual explanations about details in...
5,711
Posted By psysc0rpi0n
Please, just let me know if your code is ready to...
Please, just let me know if your code is ready to work and it's me that need more study about bash scripting or is it still something about the functions you wrote?

Thanks
Psy
5,711
Posted By psysc0rpi0n
Hello. I can't make this to work. I get an...
Hello.

I can't make this to work. I get an "stdin" error.

This is the code I actually have:
TugaRevoBTC/TugaRevoTestnet.sh at master . PsySc0rpi0n/TugaRevoBTC . GitHub...
5,711
Posted By psysc0rpi0n
You mean to add double quotes when I run the...
You mean to add double quotes when I run the command? Because I have already added double quotes when I assigned the variable due to the existence of 2 separate words.

Won't "$comment" expand to...
5,711
Posted By psysc0rpi0n
Hello. I'm trying to apply the code to my...
Hello.

I'm trying to apply the code to my specific case, and I think I have the same problem.
How can I add as many item pairs as lines that are loaded from the file?
The examples you posted are...
5,711
Posted By psysc0rpi0n
Ok, I'll have to go through your code and adapt...
Ok, I'll have to go through your code and adapt it to my specific case. Later when I'm home, I'll try it.

Thanks
PsySc0rpi0n
5,711
Posted By psysc0rpi0n
Ok, I might have gotten somewhere. Check my...
Ok, I might have gotten somewhere.

Check my github repository named TugaRevoBTC for the entire code.


send_many(){
load_addr_data
count=0
backcptb='""'
min_conf=6
...
5,711
Posted By psysc0rpi0n
But I cannot do it this way because this...
But I cannot do it this way because this "com_params" variable that I set to store the command parameters is seen as a single long string, and if I do it this way, the app that parses the command to...
5,711
Posted By psysc0rpi0n
Hello again. Well, I'm already using it...
Hello again.

Well, I'm already using it (since yesterday which was when I found it - jq I mean).

So, I'll be a little bit more accurate about the thing.
The app is to process bitcoin payments...
5,711
Posted By psysc0rpi0n
Thank you for replying... Well, in fact it...
Thank you for replying...

Well, in fact it looks alot like that. However I can assure it's not an homework. I have already graduated earlier this year in February. And I'm not someone that just...
Showing results 1 to 25 of 26

 
All times are GMT -4. The time now is 07:00 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy