Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Command Line

  1. #1
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Command Line

    So I am using Windows XP Pro. Many of you may have seen the thead about my truecrypt thing. I am wanting to figure out this, if I have a program open, is there a way to throw commands at it. Right now I can open up truecrypt feed it a command to open a container, change the password, dismount, etc. But when I am done it closes.

    The program I am running will take a long time to run, opening, guessing, closing, loop forever lol. So is there a way to feed an open program commands?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    42

    Re: Command Line

    if it's a cli-program (command line interface program) then you just add a menu that loops around...
    __________________________________________
    I study Information Systems at Karlstad University when I'm not on CodeCall

  4. #3
    Jordan Guest

    Re: Command Line

    That depends on how it is coded, really. I've seen some programs have a telnet like backend that you can access and feed commands but they were specifically built with that feature/purpose.

  5. #4
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: Command Line

    It accepts "cli" things which is the basis of my program. Do you have any examples? I think it has a max number of inputs it can take tho.

    truecrypt /v file.tc /p password /q

    Thats the basis of it. The "truecrypt" part starts the program, the v is the volume, and the q to quit which is required I think. I can add a few more passwords but then it just closes on me.

  6. #5
    Jordan Guest

    Re: Command Line

    Well, sorry, I guess CLI params wasn't the right term. You want to pass params to it after it has loaded, correct? You'll need some kind of CLI backend, like a basic telnet client that is a new thread in truecrypt. As it receives commands it changes the frontend or whatever you want it to do.

  7. #6
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: Command Line

    Do you have any links on how I would do this? I do not know much about telnet or ssh things.

  8. #7
    Jordan Guest

    Re: Command Line

    I might, what language?

  9. #8
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: Command Line

    Since its the command line wouldnt it be more operating system based? I am using C++

  10. #9
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: Command Line

    The program is extremely slow on this computer. It did 58^3 requests in one day. Roughly 195,112 requests. Thats the last 3 characters have changed, for the forth character to change all the way through itll take 58 times that which is 58 days... thats just for 4 characters... (11,316,496 requests) and I am trying to go up to 58^22-58^18 which is obviously a ton!

  11. #10
    Jordan Guest

    Re: Command Line

    Quote Originally Posted by BlaineSch View Post
    Since its the command line wouldnt it be more operating system based? I am using C++
    You still have to write the backend interface though, right? You could, instead of using the backend server idea, just write the program in such a way that if it is already running, it just finds the thread it is running on and sends it a signal.

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Windows command line vs. MS-DOS
    By AIGuy in forum The Lounge
    Replies: 10
    Last Post: 10-27-2010, 08:12 AM
  2. Tired of command line
    By untitled_1 in forum C and C++
    Replies: 1
    Last Post: 09-28-2010, 09:56 AM
  3. Command line
    By Papi in forum Ruby Programming
    Replies: 4
    Last Post: 11-07-2009, 05:47 PM
  4. Command line - %currentuser% type command
    By flipz in forum General Programming
    Replies: 0
    Last Post: 02-09-2009, 06:30 AM
  5. PHP command Line
    By dirkfirst in forum PHP Development
    Replies: 1
    Last Post: 10-26-2006, 08:31 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts