Giter VIP home page Giter VIP logo

Comments (6)

nmbooker avatar nmbooker commented on July 24, 2024

I'm aware of that. I'll have to consider the best way to support that.

There are a few possibilities for how aria2q could read in the username and password:

  • take them as command line switches
  • take them from environment variables
  • prompt for them interactively
  • save them in a file in home directory or /etc and get the login info from there

Which method would be most useful to you?

from aria2-tools.

deepesh-agarwal avatar deepesh-agarwal commented on July 24, 2024

I guess the best way should be to define them as variables in aria2cq.

from aria2-tools.

nmbooker avatar nmbooker commented on July 24, 2024

Do you mean you want to hard-code your username and password directly in
the script?

If so, then no, hard-coding usernames and passwords in a publicly-shared
script is always a bad idea.

In absence of any other preferences, I think I'll get it to take them from
a file in your home directory. Might be a while though because I'm short
on time at the moment.

On 19 July 2013 04:32, deepesh-agarwal [email protected] wrote:

I guess the best way should be to define them as variables in aria2cq.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-21229703
.

from aria2-tools.

deepesh-agarwal avatar deepesh-agarwal commented on July 24, 2024

Yes, that will be another good option. The script wont be public on user
system and since we are not dealing with any "such sensitive" information
it should be ok.

Regards,
Deepesh Agarwal

On Sat, Jul 20, 2013 at 12:02 AM, Nick Booker [email protected]:

Do you mean you want to hard-code your username and password directly in
the script?

If so, then no, hard-coding usernames and passwords in a publicly-shared
script is always a bad idea.

In absence of any other preferences, I think I'll get it to take them from
a file in your home directory. Might be a while though because I'm short
on time at the moment.

On 19 July 2013 04:32, deepesh-agarwal [email protected] wrote:

I guess the best way should be to define them as variables in aria2cq.


Reply to this email directly or view it on GitHub<
https://github.com/nmbooker/aria2-tools/issues/3#issuecomment-21229703>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-21268410
.

from aria2-tools.

nmbooker avatar nmbooker commented on July 24, 2024

I've added code to fetch the connection URL from the ARIA2Q_URL environment variable if set. You can include your username and password in there.

For example

$ export ARIA2Q_URL=http://user:password@localhost:6800/rpc
$ aria2q

In the same stroke, I've also enabled connecting to different hostnames via different ports.

You can put the export ARIA2Q_URL=etc... line into your .bashrc or .profile if you don't want to set it manually each time.

Hope it helps

Nick

from aria2-tools.

deepesh-agarwal avatar deepesh-agarwal commented on July 24, 2024

Thanks :)

from aria2-tools.

Related Issues (4)

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.