Jump to content


Photo
- - - - -

Tips & Tricks: Use CopyCmd without username and password

Copy CopyCmd Linux command line

  • Please log in to reply
No replies to this topic

#1 Darren

Darren
  • Members
  • 6 posts

Posted 04 June 2015 - 08:40 AM

I use CopyCmd on the command line and in a few scripts on a Linux host.  I got to thinking that having to specify the username and password each time and in scripts that make use of CopyCmd is sub-optimal.  After several unsuccessful attempts at using the poorly documented authClient and authToken options (see spoiler below) I found a simple workaround:

$ CopyConsole -u=USER -p=PASS -r=/some/dir/path

Interrupt with CTRL-C when syncing begins and delete /some/dir/path

 

Thereafter you can issue CopyCmd commands on the command line or in scripts without specifying a user or password:

$ CopyCmd Cloud ls

 

Spoiler

 

Hope this helps,

--

Darren