Giter VIP home page Giter VIP logo

Comments (13)

gitmachtl avatar gitmachtl commented on September 4, 2024

First, you don't have to run 00_common.sh, you may source it but in general, 00_common.sh is only called from the other scripts.

Do you have a common.inc somewhere? All entries in there overwrite your entries in the 00_common.sh.

from scripts.

gitmachtl avatar gitmachtl commented on September 4, 2024

Can you please download the version from the testnet folder here and rerun it? This should now output the path the script is looking for.

https://github.com/gitmachtl/scripts/blob/master/cardano/testnet/00_common.sh

from scripts.

Xevrac avatar Xevrac commented on September 4, 2024

from scripts.

Xevrac avatar Xevrac commented on September 4, 2024

Hi @gitmachtl, I updated the script and the issue persisted but now with your path output I worked out your problem. Your script automatically adjusts the path from defined path to a altered path including a "/cardano/" directory. This does not exist in my case. See below;

My defined path in the common.sh = "/home/cnode/config/mainnet-shelley-genesis.json"
The path that it's being output when error = "/home**/cardano/**cnode/config/mainnet-shelley-genesis.json"

from scripts.

Xevrac avatar Xevrac commented on September 4, 2024

Attempting to run commands for eg. 02_genPaymentAddrOnly.sh myWallet cli ls -al

Presents me with the same error, what shall I do to fix this?

from scripts.

gitmachtl avatar gitmachtl commented on September 4, 2024

This is strange because there is no hardcoded directory in any of those scripts.

Do you have a common.inc file in your script directory, in your current directory or a .common.inc file in your $HOME directory?

from scripts.

gitmachtl avatar gitmachtl commented on September 4, 2024

Any news about your issue?

from scripts.

Xevrac avatar Xevrac commented on September 4, 2024

Any news about your issue?

Hi, I sent an email. It mustnt of gone through it appears. I'll screenshot and send here directly

from scripts.

Xevrac avatar Xevrac commented on September 4, 2024

Not that I can see no.. where else can I look for such a file. It may be clashing with your script perhaps? Here's all my directories. Unless I'm missing something. I really hope you can help me get to the bottom of this. Thank you

malafjcjppbalppe
phgmoaeghbcccbbh
oideigeknlcinfjk

from scripts.

gitmachtl avatar gitmachtl commented on September 4, 2024

image

from scripts.

Xevrac avatar Xevrac commented on September 4, 2024

image

OH lol, I'll have a look into that file and adjust file path if referenced in there. Sorry to be all newbie at this. I am familiar with linux to an extent.

Would you mind educating me on the purpose of this file and its point in linking to other scripts?

from scripts.

gitmachtl avatar gitmachtl commented on September 4, 2024

you can delete this file if you don't need it. the common.inc and .common.inc files are here for you to help you storing your personal settings. you can adjust them of course in the 00_common.sh, but if you update the scripts the 00_common.sh will be overwritten with a new version with more features. so to keep your personal settings you can have a common.inc file in a subdirectory somewhere together with your keys and addresses for example. the 00_common.sh reaches out on every call to include those files before execution. so if you wanna safe your cardano-cli/node path for example or your genesis path and be able to do easy script updates, you can put theses values into the common.inc and it will not be overwritten by a scripts-update.

from scripts.

Xevrac avatar Xevrac commented on September 4, 2024

from scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.