Joplin set .. argument list too long

I'm trying to import some text files as note content (not as attachment but as text).

I previlously used Evernote which have approx 5 Mb limit for note text.

I only found one way to set note content - joplin set body
this results in error message 'argument list too long' if size of is >128 Kb
Is there other ways to pass note content to Joplin without using command line ? Like reading new body from stdin?
is there way to overcome this limitation of command line passing?

Linux RIARU 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
joplin 1.6.3 (prod)

edit:updated about possible use of stdin

What command do you use when you get this error?

TITLE="Size test"

joplin use ${NOTEBOOK}
joplin mknote ${TITLE}
NOTEID=`joplin ls -l | head -n1 | cut -d " " -f1`

echo "NoteID is ${NOTEID}|"
echo "Geneting ~1MB random file"
dd if=<(strings </dev/urandom) bs=4K count=256 of=$TEMP_FILE
tbody=$(cat "$TEMP_FILE")
joplin set ${NOTEID} body "${tbody}"  
joplin sync 
dkzm@RIARU:~$ ./
NoteID is 0a6e0|
Geneting ~1MB random file
256+0 records in
256+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.392004 s, 2.7 MB/s
./ line 17: /home/dkzm/.nvm/versions/node/v14.15.4/bin/joplin: Argument list too long


Hmm, yes it always feels a bit archaic that in 2021 transferring a few KB of data to a local program is not possible. The app doesn't support taking data from stdin, so you would either need to increase the arg size limit on your shell, or use the data API. Otherwise I would accept a PR that adds support for stdin input.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.