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

command result maximum size is 512 MB #84

Open
nadimgeagea95 opened this issue Mar 17, 2023 · 0 comments
Open

command result maximum size is 512 MB #84

nadimgeagea95 opened this issue Mar 17, 2023 · 0 comments

Comments

@nadimgeagea95
Copy link

nadimgeagea95 commented Mar 17, 2023

I'm using cat - grep combination because i don't want to use sftp to download the whole file as it is too large.
The issue is that that there is a limit on how much a command can return.
I'm writing the result of the command in a file and the size of the file is always 512 MB even though i'm sure that the command returns more than 512 MB.
Is there a way to increase the limit ?

This is my code:

import SSH2Promise = require('ssh2-promise');
const ssh = new SSH2Promise({ uniqueId: id,  ...sshConfig });
const commandResult = await ssh.exec(command);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant