Executing files in java and writing arguments
Results 1 to 3 of 3

Thread: Executing files in java and writing arguments

  1. #1
    Banned
    Join Date
    Aug 2003
    Posts
    130

    Executing files in java and writing arguments

    Can someone give me the code in java (or c++) for executing a command-line program like telnet and then sending arguments to the program like:
    >o
    >localhost

  2. #2
    Banned
    Join Date
    Aug 2003
    Posts
    130
    Change the "writing" in the title to "sending".

  3. #3
    Senior Member
    Join Date
    Jun 2003
    Posts
    772
    Something like this?

    In Java: Runtime.getRuntime().exec("telnet ahost 25");

    I think in c++ it's: System("telnet ahost 25");

    Cheers
    The above sentences are produced by the propaganda and indoctrination of people manipulating my mind since 1987, hence, I cannot be held responsible for this post\'s content - me

    www.elhalf.com

Posting Permissions

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