Comments (2)
FYI for those of you that are interested. The current workaround I'm using is the spawn command script.
#!/usr/bin/expect
spawn pcloudcc -u username -p -s
expect "Please, enter password "
send "password\r"
interact
from console-client.
I have done a more complete version of this, keeping the passwords in 1password.
https://gist.github.com/christian-oudard/3c26d90651b7eb142008267d289e966a
#! /usr/bin/bash
# Account information.
OP_EMAIL=<email>
OP_MOUNTPOINT=/home/<username>/pCloudDrive
OP_USER_ID=<user-id> # Gotten from `op account list`.
# Stop server.
if [[ $1 == 'stop' ]]; then
expect -f - >/dev/null <<END_EXPECT
spawn pcloudcc --commands_only
expect "pCloud console client v.2.0.1\r
Supported commands are:\r
startcrypto <crypto pass>, stopcrypto, finalize, q, quit\r
> "
send -- "finalize\r"
expect eof
END_EXPECT
exit 0
fi
# Get passwords.
op whoami >/dev/null 2>&1
if [[ $? == 1 ]]; then
eval $(op signin --account $OP_USER_ID)
export "OP_SESSION_$OP_USER_ID"
fi
PASSWORD=$(op item get pcloud --fields label="password")
CRYPTO_PASS=$(op item get pcloud --fields label="crypto pass")
# Start server.
expect -f - >/dev/null <<END_EXPECT
spawn pcloudcc --daemonize --username=$OP_EMAIL --mountpoint $OP_MOUNTPOINT --password --crypto
expect "pCloud console client v.2.0.1\r
Please, enter password\r
"
send -- "$PASSWORD\r"
expect "Enter crypto password.\r
Please, enter password\r
"
send -- "$CRYPTO_PASS\r"
expect eof
END_EXPECT
from console-client.
Related Issues (20)
- How do I exclude a folder or a file from syncing in Cli? HOT 1
- pcloudcc don't save password HOT 1
- Feature request: Sync to CC
- Nothing shows up where it should load the p drive. HOT 1
- Destination of pCloudDrive folder (consent is essential, even in software) HOT 1
- How to connect to pCloud with Google Account HOT 2
- pCloud CLI for ARM HOT 4
- BAD_LOGIN_DATA HOT 2
- IPv6-Only access of pcloud not possible HOT 2
- psync_err.log just grows and grows and grows
- Problem with fuse mounting HOT 2
- Used rsync and now there are 9k files stuck on Cache for a very long time. HOT 1
- Problem with startcrypto HOT 2
- Cannot build on RPi OS HOT 4
- Problem mounting pcloud path to docker container HOT 1
- "debuild -i -us -uc -b" gives errors on debian 11 HOT 1
- Readme.md Formatting Issue
- Suggestion: refer to rclone HOT 4
- how to compile on openSuse Leap? HOT 1
- Difference between pcloud and pcloudcom GitHub
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from console-client.