Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run in different directories #45

Open
SonGokussj4 opened this issue Aug 24, 2022 · 5 comments
Open

Unable to run in different directories #45

SonGokussj4 opened this issue Aug 24, 2022 · 5 comments
Labels
question Further information is requested

Comments

@SonGokussj4
Copy link

I've downloaded the tar, unpacked and moved the executable (Rocky Linux 8.6) into my ~/bin folder.
When I run it anywhere, nothing happens (diskusage -h works) unless I go to ~/bin folder and run it there.

If I want to check diskusage of /my/interesting/path, I would need to copy this file into that path and then run it there.

@chenquan
Copy link
Owner

Thank you for your attention and use, it may be that there are many files, so it takes a long time to run.

@chenquan chenquan added the question Further information is requested label Aug 25, 2022
@chenquan
Copy link
Owner

@SonGokussj4
Hi! my friend. Have you solved your problem?

@SonGokussj4
Copy link
Author

It behaves... Interestingly.

  • If I open my terminal at home ~, type diskusage, it displays nothing and it's finished right away
  • If I go to ~/GIT where my projects are and type diskusage, it correctly displays all files/folders as it should
  • It work in my "user" folder on remote disk (linux mounted)
  • But on the same disk in different folder where there are terabytes of data when I run it, it ends right away and nothing happens

I'm not sure what's happening but I'm missing some error/exception/logging management that tells me where is the problem, why it didn't even start to gather info.

Oh and when it ends, it returns classical 1, so no error code.

@chenquan
Copy link
Owner

Try using sudo diskage

@SonGokussj4
Copy link
Author

It works with sudo.

But that shouldn't be the way it works.
If I needed to do that for testing purposes, that's ok.
But this kind of program should, even partly, without sudo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants