Jump to content

- - - - -

Tips & Tricks: Use CopyCmd without username and password

Copy CopyCmd Linux command line

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 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




Hope this helps,