Giter VIP home page Giter VIP logo

Comments (4)

cernekee avatar cernekee commented on August 30, 2024

It works for me on Linux using the glibc getopt_long() implementation. Is your environment similar, or are you using e.g. OSX or FreeBSD?

$ stoken export --random --sdtid > test.sdtid
$ stoken import --file=test.sdtid
Enter new password: 
Confirm new password: 
$ stoken tokencode
Enter PIN:
56546770
$ stoken import --file=/tmp/test.sdtid --force
Enter new password: 
Confirm new password: 
$ stoken show --token='http://127.0.0.1/securid/ctf?ctfData=289385623946556325275542035322617770216351434464255242044173127202777436671633701'
Serial number           : 893856239465
Encrypted w/password    : no
Encrypted w/devid       : no
Expiration date         : 2016/04/20
Key length              : 128
Tokencode digits        : 8
PIN mode                : 3
Seconds per tokencode   : 60
App-derived             : no
Feature bit 4           : no
Time-derived            : yes
Feature bit 6           : no
$ stoken show --file test.sdtid
Serial number           : 893856239465
Encrypted w/password    : no
Encrypted w/devid       : no
Expiration date         : 2016/04/20
Key length              : 128
Tokencode digits        : 8
PIN mode                : 3
Seconds per tokencode   : 60
App-derived             : no
Feature bit 4           : no
Time-derived            : yes
Feature bit 6           : no

from stoken.

colinwd avatar colinwd commented on August 30, 2024

Ah okay I think I narrowed the issue down further. I was starting my path with ~ and it doesn't seem to like that. A fully qualified home directory path seems to work fine. ~ does still work when you leave out the = though

from stoken.

mtmiller avatar mtmiller commented on August 30, 2024

That is completely an artifact of the bash (or other) shell. The ~ is evaluated by the shell, and only when it's at the beginning of a (space-delimited) word.

from stoken.

colinwd avatar colinwd commented on August 30, 2024

Ah okay, learned something new! Thanks for your time.

from stoken.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.